ActiveXperts Knowledge Base Article 7260015

Q7260015 - How to verify WMI access through WinRM?

 

Verify that WinRM is enabled

To confirm that WinRM is enabled, type the followng command:

winrm e winrm/config/listener

You should see output that shows that the listener is running and that the firewall is not blocking the connection.
Additionaly, you can check the port using the 'netstat' command. See: FAQ #Q7260024

To test whether you can connect to the remote computer using WinRM, run the following command in Powershell:

Test-WSMan -ComputerName REMOTEMACHINE -Authentication default

or (with alternate credentials):

Test-WSMan -ComputerName REMOTEMACHINE -Credential "DOMAIN\USER" -Authentication default

 

Verify WMI through WinRM

Once you have access to the remote computer through WinRM, run the following Powershell command to verify access to WMI from WinRM:

Get-WSManInstance -ComputerName REMOTEMACHINE -Enumerate -ResourceURI wmicimv2/* -Filter "SELECT * FROM Win32_ComputerSystem"

or (with alternate credentials):

Get-WSManInstance -ComputerName REMOTEMACHINE -Credential "DOMAIN\USER" -Enumerate -ResourceURI wmicimv2/* -Filter "SELECT * FROM Win32_ComputerSystem"

Contact Support

If you cannot find an answer to your question(s) in our Knowledge Base, or if you need additional information or assistance, please contact our Customer Support using the Contact Support form:
Contact Support »

M