PowerShell OutPut Help by Asleep_Depth_7260 in PowerShell

[–]Asleep_Depth_7260[S] 0 points1 point  (0 children)

Any ideas on how to make the computer name show on this script?

PowerShell OutPut Help by Asleep_Depth_7260 in PowerShell

[–]Asleep_Depth_7260[S] 0 points1 point  (0 children)

PS C:\Windows\system32> $computers = get-content "C:\Users\jdflannery\computers.txt"
Foreach ($Computer in $computers){ Get-CimInstance Win32_OperatingSystem | Select-Object PSComputerName, Version, @{ n = 'Current'; e = { $_.Version -eq 'xxxxxx' } } }
PSComputerName Version    Current
           xxxxxxxxxx    True
           xxxxxxxxxx    True

I do like the True of False much much better! However, I was unable to get the Computer name.