During my SCCM OS Deployment I tattoo the registry with the task sequence version which varies depending on type, ie desktop, laptop laptop_french or kiosk. I have written a simple script that provides the user with some basic information and I am trying
to write an "if/then" statement that will detect the correct registry entry.
- HKLM:\SOFTWARE\TrueBlue\Desktop\Task Sequence Name
- HKLM:\SOFTWARE\TrueBlue\Laptop\Task Sequence Name
- HKLM:\SOFTWARE\TrueBlue\Laptop_FR\Task Sequence Name
- HKLM:\SOFTWARE\TrueBlue\Kiosk\Task Sequence Name
Write-Host -NoNewLine "Image Version: " -ForegroundColor Green
Get-ItemPropertyValue -Path HKLM:\SOFTWARE\TrueBlue\Desktop* -Name "Task Sequence Name" -ErrorAction Ignore
I have trie several formats but am unable to get it to work.
DHeinz