Last active
August 29, 2015 14:24
-
-
Save MVKozlov/336be112ea37f82d77d7 to your computer and use it in GitHub Desktop.
2015-July Scripting Games Puzzle
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
#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