PowerShell provides the CIM (Common Information Model) cmdlets, which are the modern successor to WMI commands. The primary cmdlets are:
PowerShell includes an alias wmic that forwards to Get-CimInstance , but it does not support all legacy switches. This is not a full compatibility layer. windows 11 wmic
Here is how to replace your old wmic commands with modern equivalents. windows 11 wmic
This command retrieves the name, device ID, and number of cores of the CPU. windows 11 wmic
The wmic tool was a legacy wrapper around WMI. While it was useful for quick one-liners, it is slow and being replaced by the much faster and more powerful in PowerShell.
This command retrieves the bank label, capacity, and memory type of the memory modules.