Skip to content

Instantly share code, notes, and snippets.

@EngineeringDon
EngineeringDon / gist:8bc8eac35fce85092ddf
Last active August 29, 2015 14:24
EngineeringDon - 2015-July Scripting Games Puzzle
## Title: 2015 - July Scripting Games
##
## Description:
## http://powershell.org/wp/2015/07/04/2015-july-scripting-games-puzzle/
##
gcim Win32_OperatingSystem -co ((read-Host "Target Computers").Split(',') | ? {if($_ -eq "$null"){Write-Error "Need at least one Computer Name to Target";break}else{$_}})|ft PSComputerName,ServicePackMajorVersion,Version,@{l="BIOSSerial";e={(gcim Win32_BIOS -co $_.PSComputerName).SerialNumber}} -au
## EXAMPLE OUTPUT:
## Target Computers: localhost,localhost