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}} |