Tayyip EserIT KNOWLEDGE HUB
TRin
Back to archive

Documentation · Aug 25, 2026

Replacing WMIC with PowerShell on Windows 11

Retrieving BIOS, serial, model, operating-system and disk information with CIM cmdlets.

PowerShellWindows 11Inventory

Goal WMIC may be absent on current Windows versions. Use supported CIM cmdlets for BIOS, serial, model and disk information.

01

Requirements

  • Windows PowerShell 5.1 or PowerShell 7
  • Permission to read local device information
02

BIOS and serial number

Modern replacement for wmic bios get serialnumber.

Get-CimInstance Win32_BIOS |
Select-Object Manufacturer,SMBIOSBIOSVersion,SerialNumber
03

Model and operating system

Read manufacturer, model, memory, Windows build and boot time.

Get-CimInstance Win32_ComputerSystem | Select-Object Manufacturer,Model,TotalPhysicalMemory
Get-CimInstance Win32_OperatingSystem | Select-Object Caption,Version,BuildNumber,LastBootUpTime
04

Disk information

Use physical-disk and volume cmdlets for health and free space.

Get-PhysicalDisk | Select-Object FriendlyName,MediaType,HealthStatus,Size
Get-Volume | Select-Object DriveLetter,FileSystem,HealthStatus,SizeRemaining,Size
!

Caution

Prefer CIM cmdlets instead of reinstalling WMIC. Remote queries require appropriate permissions and firewall rules.