Skip to content

Instantly share code, notes, and snippets.

@csandfeld
Created July 6, 2015 13:08
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 csandfeld/5bbaf3d6064235bdeada to your computer and use it in GitHub Desktop.
Save csandfeld/5bbaf3d6064235bdeada to your computer and use it in GitHub Desktop.
@csandfeld 2015-July Scripting Games Puzzle
gwmi Win32_OperatingSystem -CN((icm{while(Read-Host -Pr 'ComputerName' -OV C){$CN+=$C}$CN}))|Select PSComputerName,ServicePackMajorVersion,Version,@{l='BIOSSerial';e={(gwmi Win32_BIOS -CN $_.PSComputerName).SerialNumber}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment