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
## 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 |