Would you like to learn how to use Powershell to perform remote WMI queries? In this tutorial, we are going to show you how to perform a remote WMI query using the Powershell command-line on a computer running Windows.
• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 10
• Windows 7
Equipment list
The following section presents the list of equipment used to create this tutorial.
As an Amazon Associate, I earn from qualifying purchases.
Windows Related Tutorial:
On this page, we offer quick access to a list of tutorials related to Windows.
Tutorial Powershell – Remote WMI query
Access the remote computer that will answer the WMI query.
As an Administrator, start an elevated Powershell command-line.
Create firewall rules to allow remote communication using WMI.
Access the client computer that will perform the WMI query.
As an Administrator, start an elevated Powershell command-line.
Query all available WMI namespaces on the remote computer.
Here is the command output.
List all the WMI class definitions from a namespace on the remote computer.
If no namespace is specified, the system uses CIMV2 as the default.
Here is the command output.
List all properties name from a WMI class on the remote computer.
Here is the command output.
List all properties from a WMI class on the remote computer.
Here is the command output.
Query a specific property from a WMI class on the remote computer.
Here is the command output.
Get only the value of a property from a WMI class.
Here is the command output.
There are multiple ways to query only the value of a WMI property.
List multiple properties from a WMI class.
Here is the command output.
Display the WMI query result as a list instead of a table.
Here is the command output.
Congratulations! You are able to perform remote WMI queries using Powershell.