Skip to content

Instantly share code, notes, and snippets.

@jeepasaurus
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 jeepasaurus/7c7c44e8cb12e960622a to your computer and use it in GitHub Desktop.
Save jeepasaurus/7c7c44e8cb12e960622a to your computer and use it in GitHub Desktop.
ScriptingGames_2015-07
# 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