Windows - 11 Wmic
wmic product where name="Software Name" call uninstall
This command retrieves the caption, version, and build number of the operating system. windows 11 wmic
| Task | Legacy WMIC Command | PowerShell (CIM) Alternative | |------|---------------------|-------------------------------| | Get OS name and version | wmic os get caption,version | Get-CimInstance Win32_OperatingSystem \| Select-Object Caption, Version | | Get BIOS serial number | wmic bios get serialnumber | Get-CimInstance Win32_BIOS \| Select-Object SerialNumber | | List running processes | wmic process list brief | Get-Process (or Get-CimInstance Win32_Process ) | | Kill a process by name | wmic process where name="notepad.exe" delete | Stop-Process -Name "notepad" | | Get CPU information | wmic cpu get name, maxclockspeed | Get-CimInstance Win32_Processor \| Select-Object Name, MaxClockSpeed | | Get disk drive size | wmic diskdrive get size | Get-CimInstance Win32_DiskDrive \| Select-Object Size | | Query remote computer | wmic /node:ComputerName os get caption | Get-CimInstance -ComputerName ComputerName -ClassName Win32_OperatingSystem | wmic product where name="Software Name" call uninstall This
If you have legacy batch scripts that rely on WMIC and cannot be immediately rewritten: windows 11 wmic
The following table provides a direct mapping from common WMIC commands to PowerShell equivalents: