Skip to content

Instantly share code, notes, and snippets.

@jeepasaurus
jeepasaurus / gist:7c7c44e8cb12e960622a
Last active August 29, 2015 14:24
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}}