Hardware & Resources
Commands
Get-CimInstance -ClassName Win32_ComputerSystem
System Info
Get-WmiObject -Class Win32_ComputerSystem
Computer info
Get-WmiObject -Class Win32_OperatingSystem
OS
Get-CimInstance -ClassName Win32_OperatingSystem
OS
wmic os get Caption,Version,OSArchitecture,LastBootUpTime
OS
wmic cpu get Caption, Name, NumberOfCores, NumberOfLogicalProcessors
CPU
Get-CimInstance -ClassName Win32_Processor
CPU
Get-WmiObject -Class Win32_Processor
CPU
wmic bios get Manufacturer,Name,SerialNumber,Version
BIOS
Get-CimInstance -ClassName Win32_BIOS
BIOS
Get-WmiObject -Class Win32_BIOS
BIOS
wmic memorychip get BankLabel,Capacity,Speed
Physical Memory
Get-CimInstance -ClassName Win32_PhysicalMemory
Physical Memory
Get-WmiObject -Class Win32_PhysicalMemory
Physical Memory
wmic diskdrive get Model,Size,MediaType
Disk Drives
Get-CimInstance -ClassName Win32_DiskDrive
Disk Drives
Get-WmiObject -Class Win32_DiskDrive
Disk Drives
wmic baseboard get Manufacturer,Product,SerialNumber,Version
Motherboard
Get-CimInstance -ClassName Win32_BaseBoard
Motherboard
Get-WmiObject -Class Win32_BaseBoard
Motherboard
wmic nic get Caption,Name,NetConnectionStatus,Speed,MACAddress
Network Adapters
Get-CimInstance -ClassName Win32_NetworkAdapter
Network Adapters
Get-WmiObject -Class Win32_NetworkAdapter
Network Adapters
Retrieves basic computer system information about the hardware:
Get number of processors:
Idle (CPU Time) / smss.exe (Elapsed Time) = CPU Core Count
Queries Win32_Bios:
Same as above but deprecated:
BIOS all information:
Sysinternals
coreinfo
CPU hardware information
Registry Locations
HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System
Contains detailed descriptions of system hardware components, including the BIOS, central processor, and system buses.
HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP
Provides mappings for hardware devices and their corresponding system resources.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum
Enumerates all devices installed on the system, including detailed information about hardware IDs, driver configurations, and device properties.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
Contains information about drivers and services associated with hardware components.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class
Includes settings and properties for device classes, such as display adapters, network adapters, and storage controllers.
Last updated
Was this helpful?