Skip to content

Instantly share code, notes, and snippets.

@MVKozlov

MVKozlov/SGP201507

Last active Aug 29, 2015
Embed
What would you like to do?
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
You can’t perform that action at this time.