Goal WMIC may be absent on current Windows versions. Use supported CIM cmdlets for BIOS, serial, model and disk information.
Requirements
- Windows PowerShell 5.1 or PowerShell 7
- Permission to read local device information
BIOS and serial number
Modern replacement for wmic bios get serialnumber.
Get-CimInstance Win32_BIOS |
Select-Object Manufacturer,SMBIOSBIOSVersion,SerialNumberModel 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,LastBootUpTimeDisk 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,SizeCaution
Prefer CIM cmdlets instead of reinstalling WMIC. Remote queries require appropriate permissions and firewall rules.