Skip to content

Instantly share code, notes, and snippets.

@mtnielsen
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mtnielsen/9a3c249559bdcc9f022f to your computer and use it in GitHub Desktop.
Save mtnielsen/9a3c249559bdcc9f022f to your computer and use it in GitHub Desktop.
2015 July Scripting Games
'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