Last active
August 29, 2015 14:24
-
-
Save jeepasaurus/7c7c44e8cb12e960622a to your computer and use it in GitHub Desktop.
ScriptingGames_2015-07
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
# Not the shortest... but using different ways to get the data. Using .NET, gwmi and wmic. | |
gwmi win32_operatingsystem|SELECT @{n="PSComputerName";e={[System.Net.Dns]::GetHostName()}},*j*,V*,@{n="BIOSSerial";e={wmic bios get serialnumber|WHERE{$_}|SELECT -Index 1}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment