Useful WMIC and WMI Powershell commands for Windows

Microsoft has deprecated WMIC. Find the equivalent Powershell commands below.

Get computer info:

WMIC: wmic csproduct
Powershell Summary: gwmi -Class Win32_ComputerSystem
Powershell All: gwmi -Class Win32_ComputerSystem | select *

Get BIOS information (including serial #):

WMIC: wmic bios get
Powershell Summary: gwmi -Class Win32_Bios
Powershell All: gwmi -Class Win32_Bios | select *

Get disk usage:

WMIC: wmic logicaldisk get size,freespace,caption
Powershell Summary: Get-WmiObject -Class Win32_LogicalDisk
Powershell All: Get-WmiObject -Class Win32_LogicalDisk | select *

Get logical drives:

WMIC: wmic logicaldisk get caption,description,drivetype,providername,volumename
Powershell Summary: Get-WmiObject -Class Win32_LogicalDisk
Powershell All: Get-WmiObject -Class Win32_LogicalDisk | select *

Get physical disks:

wmic diskdrive list brief /format:list

Get last boot time:

WMIC: wmic os get lastbootuptime
Powershell: Get-CimInstance -ClassName Win32_OperatingSystem | select csname,lastbootuptime

Get monitor information:

wmic desktopmonitor get Caption, MonitorType, MonitorManufacturer, Name

Get display resolution:

wmic desktopmonitor get screenheight, screenwidth

Get video adapter/card type:

wmic path win32_VideoController get name

Get printers:

wmic printer list brief 

Get memory information:

wmic memorychip list full