Get-CimInstance -ClassName Win32_ComputerSystem | Select-Object Model
For serial number
the Win32_ComputerSystem class does not contain a property named Serial.
To obtain the serial number, you should use the Win32_BIOS class instead
Get-CimInstance Win32_BIOS | Select-Object SerialNumber
No comments:
Post a Comment