Skip to content

Instantly share code, notes, and snippets.

@MVKozlov
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 MVKozlov/336be112ea37f82d77d7 to your computer and use it in GitHub Desktop.
Save MVKozlov/336be112ea37f82d77d7 to your computer and use it in GitHub Desktop.
2015-July Scripting Games Puzzle
#local computer
&{param($c='.')gwmi CIM_OperatingSystem -cn $c|Select PSC*,*j*,V*,@{n='BIOSSerial';e={(gwmi Win32_Bios -cn $_.csname).SerialNumber}}}
#remote Computer(s)
&{param($c='.')gwmi CIM_OperatingSystem -cn $c|Select PSC*,*j*,V*,@{n='BIOSSerial';e={(gwmi Win32_Bios -cn $_.csname).SerialNumber}}} comp1,comp2
#less powershelly(imho) but shorter
&{param($c='.')gwmi CIM_OperatingSystem -cn $c|ft PSC*,*j*,V*,@{n='BIOSSerial';e={(gwmi Win32_Bios -cn $_.csname).SerialNumber}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment