学习 / 电脑 · 2023年7月3日 0

powershell查看电脑硬件信息

Get-CimInstance(更好)=Get-WMIObject

CPU

Get-CimInstance -Class Win32_Processor | select *

BIOS

Get-CimInstance -Class Win32_BIOS | select *

MEMORY

Get-CimInstance -Class Win32_PhysicalMemory | select *

DISK

Get-CimInstance -Class Win32_DiskDrive | select *

BOARD

Get-CimInstance -Class Win32_BaseBoard | select *

OperratingSystem

Get-CimInstance -Class Win32_OperatingSystem | select *