Use WBEMTEST to check for SQL Services on target system

Use WBEMTEST to check for SQL Services on target system

87
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 13:03 PM


Question


How can I use WBEMTEST to check the SQL Services present in the WMI Namespace for SQL Server?

Environment


Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM)

Answer


You may want to use WBEMTEST to validate the SQL Services present in the WMI Namespace for SQL Server if you are getting the following message in the Third-Party logs while trying to do a change activity for a SQL Service Account: No SQL services were found on <target system> with user <logon account> at domain <address of logon>.
 
  1. Launch WBEMTEST.exe
     

  2. Click Connect
     

  3. In the Namespace field enter (replacing <targetserver fqdn> with the correct value):
    \\<targetserver fqdn>\root\Microsoft\SqlServer

     

  4. Enter the appropriate credentials in the Credentials box: (IE the Master Account creds, or the Logon Account creds if a logon account is defined)
    User: <domain>\<account>
    Password: <password>

     

  5. Click "Connect"
     

  6. Click "Query"
     

  7. In the "Enter Query" field use:
    SELECT * FROM __namespace WHERE Name LIKE "ComputerManagement%"

     

  8. Click "Apply"
     

  9. Make note of the value returned for __NAMESPACE.Name.
    For example, "ComputerManagement12", or "ComputerManagement15"

     

  10. Click Close
     

  11. Click "Open Namespace"
     

  12. In the Object Path field, enter the value from Step 9 (without quotes).
     

  13. Click "OK"
     

  14. Click "Query"
     

  15. Use the following Query to return all SQL Services present in the WMI Namespace for SQLServer:
    SELECT * from sqlservice

     

  16. Check to see if there is a SqlService.ServiceName value that matches the desired Windows Service.  An entry must be present for the desired SQL service for the Windows Service CPM Plugin to manage it.
     

image.png



The following table lists which namespace you should expect to see returned given the version of SQL Server installed:

  SQL Server version    $namespace
  2005 & earlier  root\Microsoft\SqlServer\ComputerManagement
  2008  root\Microsoft\SqlServer\ComputerManagement10  
  2012  root\Microsoft\SqlServer\ComputerManagement11  
  2014  root\Microsoft\SqlServer\ComputerManagement12  
  2016  root\Microsoft\SqlServer\ComputerManagement13  
  2017  root\Microsoft\SqlServer\ComputerManagement14  
  2019  root\Microsoft\SqlServer\ComputerManagement15  
  2022  root\Microsoft\SqlServer\ComputerManagement16  
 

 



Additional Information


Details

Q:
How can I use WBEMTEST to check the SQL Services present in the WMI Namespace for SQL Server?
 
A:
You may want to use WBEMTEST to validate the SQL Services present in the WMI Namespace for SQL Server if you are getting the following message in the Third-Party logs while trying to do a change activity for a SQL Service Account.
 
No SQL services were found on <target system> with user <logon account> at domain <address of logon>.
 
  1. Launch WBEMTEST.exe
  2. Click Connect
  3. In the Namespace field enter: (replacing <targetserver fqdn> with the correct value)
    \\<targetserver fqdn>\root\Microsoft\SqlServer
  4. Enter the appropriate credentials in the Credentials box: (IE the Master Account creds, or the Logon Account creds if a logon account is defined)
    User: <domain>\<account>
    Password: <password>
  5. Click "Connect"
  6. Click "Query"
  7. In the "Enter Query" field use:
    SELECT * FROM __namespace WHERE Name LIKE "ComputerManagement%"
  8. Click "Apply"
  9. Make note of the value returned for __NAMESPACE.Name.
    __NAMESPACE.Name="ComputerManagement12"
  10. Click Close
  11. Click "Open Namespace"
  12. In the Object Path field, enter the value from Step 9
    ComputerManagement12
  13. Click "OK"
  14. Click "Query"
  15. Use the following Query to return all SQL Services present in the WMI Namespace for SQLServer
    SELECT * from sqlservice
  16. Check to see if there is a SqlService.ServiceName value that matches the desired Windows Service.  An entry must be present for the desired SQL service for the Windows Service CPM Plugin to manage it.
    IE.




Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001XehCAE&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail