Incorrect variable usage = blank display on write-host
Closed this issue · 0 comments
These two lines need changing:
Write-Host " -- Deploy the Configuration Baseline $($NewNoLoggedOnUserBaseline.Name) to all Windows 10 devices." -ForegroundColor Cyan Write-Host " -- Deploy the Configuration Baseline $($NewInventoryBaseline.Name) to all Windows 10 devices." -ForegroundColor Cyan
Either to:
Write-Host " -- Deploy the Configuration Baseline $($NoLoggedOnUserBaseline.Name) to all Windows 10 devices." -ForegroundColor Cyan Write-Host " -- Deploy the Configuration Baseline $($InventoryBaseline.Name) to all Windows 10 devices." -ForegroundColor Cyan
or
Write-Host " -- Deploy the Configuration Baseline $($NewNoLoggedOnUserBaseline.LocalizedDisplayName) to all Windows 10 devices." -ForegroundColor Cyan Write-Host " -- Deploy the Configuration Baseline $($NewInventoryBaseline.LocalizedDisplayName) to all Windows 10 devices." -ForegroundColor Cyan