You are here: Home > Products > Network Inventory Explorer > User Manual > WMI Connection Diagnostics for Collecting Remote Inventory Information

WMI Connection Diagnostics for Collecting Remote Inventory Information

 

Method 1. Checking the connection via WMI using the wbemtest utility

  1. Open the wbemtest utility: Start - Run - wbemtest (or press the key combination Windows+R - wbemtest).
    Start - Run - wbemtest
  2. Click Connect.
    If you are checking the connection for the PC on which you launched the utility, you do not need to enter anything, click Connect.
    Wbemtest utility window - Connect
    • In the Namespace field, before the standard namespace, enter through \\Computer (for example, \\Comp1\root\cimv2, where Comp1 is the Name of the PC to which we are connecting).
    • In the User field, enter the Name of the user who has access to this PC.
    • In the Password field, enter the password for the user entered above.
    • Click Connect.

    Wbemtest utility window - Connection data
  3. Click the Request button.
    Wbemtest utility window - Query
  4. Enter a query to get the operating system name and click the Apply button:
    SELECT Name FROM Win32_OperatingSystem
    Wbemtest utility window - Query
    To obtain information, WMI uses the WQL query language.
    Query syntax in WQL is similar to SQL:
    SELECT (what get) FROM (where_from).
    The main difference is that instead of SCHEMA name the WMI class is used.
  5. Double-click on Win32_OperatingSystem=@.
    Wbemtest utility window - Win32_OperatingSystem=@
  6. In the Properties window, find and view the value of the Name property.
    Wbemtest utility window - Name property value

 

Method 2. Checking the WMI connection in PowerShell

  1. Open PowerShell as administrator: click START (or magnifying glass icon in Windows 10/11) - in the search line, enter PowerShell, right-click on Windows PowerShell, - Run as administrator.
    Open PowerShell as administrator
  2. In the PowerShell window, enter the query:
    Get-WmiObject -Query "SELECT * FROM Win32_OperatingSystem" -ComputerName IEWIN7 -Credential IEWIN7\Admin | ft -Property Name, BuildNumber
    Where -Query "SELECT * FROM Win32_OperatingSystem" is the query itself (get all the information about the OS), IEWIN7 is the name of the PC to which we are connecting, IEWIN7\Admin is the user who has access to the PC (preferably an administrator), -Credential is a query using the built-in Windows account manager, ft = Format-Table, -Property Name, BuildNumber is to display only the OS Name and Build Number.
  3. Enter the password for the specified user.
    Account Manager window - entering the password
  4. After entering the password, we will receive the requested information in the form of a table
    PowerShell window - information output

 

Diagnosing WMI connection problems

  1. If you are unable to connect, make sure that the Username and password you entered are correct and try connecting again.
  2. If you are sure that you entered the connection data correctly, start the following services and try connecting again:
    • Remote Procedure Call (RPC) Locator Service.
    • Remote Access Automatic Connection Manager (RasAuto) Service.
  3. If the Username and password are correct and all necessary services are running, check the Firewall settings. Typical firewall settings can be viewed on our website Configuring WMI access remotely via Group Policies starting with point 7

 

Related Links: