Last active
August 29, 2015 14:24
-
-
Save mtnielsen/9a3c249559bdcc9f022f to your computer and use it in GitHub Desktop.
2015 July Scripting Games
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'micro','localhost' | Get-CimInstance -Query 'SELECT ServicePackMajorVersion, Version FROM Win32_OperatingSystem' | Select-Object PSComputerName, ServicePackMajorVersion, Version, @{ Name = 'BIOSSerial'; Expression = { Get-CimInstance -ComputerName $_.PSComputerName -Query 'SELECT SerialNumber FROM Win32_BIOS' | Select-Object -ExpandProperty SerialNumber } } | |
PSComputerName ServicePackMajorVersion Version BIOSSerial | |
-------------- ----------------------- ------- ---------- | |
localhost 0 6.3.9600 System Serial Number | |
micro 0 6.3.9600 5C7137P2J2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment