How does CPM manage accounts using WMI

How does CPM manage accounts using WMI

87
Created On 11/10/26 11:01 AM - Last Modified 11/10/26 12:59 PM


Question


How does CPM manage accounts using WMI?


Environment


9.10;10.10;11.1;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;12.6;13.0 Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM)

Answer


It is recommended to manually simulate the CPM actions while taking into consideration the following:

1. Error Codes can be found using the following link:
http://msdn.microsoft.com/en-us/library/aa394574(VS.85).aspx


2. Local administration of CPM machine is not supported (only remote machines)


3. Use only DNS name as the address (not IP Address). Make sure the DNS is resolved to the correct IP Address


4. Service of Windows Management Instruments must run.


5. Affecting components (Additional information MSDN):
a) Windows Firewall
b) DCOM settings
c) GPO for Namespace permissions (WMI control->Properties->Security) (example of namespace: DEFAULT, CIMV2 d) UAC (see the documentation for requirements)


6. Use Wbemtest to open WMI GUI and simulate the action (Start | Run, type "wbemtest" and press "Enter").
The following provides instruction for simulation of retrieving registry key:
a) Click “Connect”
b) In the top field, enter namespace to connect (for registry plug-in, CPM uses the “default” namespace): \\<MachineAddress>\root\default
c) In the credentials section enter the User: <Domain>\<UserName> and provide the password
d) Click “Execute Method”
e) Enter “Object Path”: “StdRegProv” and click “OK”
f) Select the “Method”: “GetStringValue”
g) Click “Edit In Parameters”
h) To enter a value for a parameter, double click, select “Not NULL”, enter value and click “Save Property”
I) Set “hDefKey”:
* “H80000002” for HKLM
* “H80000003” for HKU
j) Set “sSubKeyName” with the path to the relevant key.
k) Set “sValueName” with the name of the value
l) Click “Save Object” and then “Execute!”
m) A popup message will indicate if the execution completed successfully
n) Click “OK” and then “Edit Out Parameters” to view the output returned from the command:
* “ReturnValue” provides the value returned (0 for success or other for failure)
* “sValue” provide the Value returned by the “GetStringValue” command



Additional Information


Details

Q:
How does CPM manage accounts using WMI?
 
A:
It is recommended to manually simulate the CPM actions while taking into consideration the following:
  1. Error Codes can be found using the following link: http://msdn.microsoft.com/en-us/library/aa394574(VS.85).aspx
  2. Local administration of CPM machine is not supported (only remote machines)
  3. Use only DNS name as the address (not IP Address). Make sure the DNS is resolved to the correct IP Address
  4. Service of Windows Management Instruments must run
  5.  Affecting components (Additional information MSDN):
    1. Windows FireWall
    2. DCOM settings
    3. GPO for Namespace permissions (WMI control->Properties->Security) (example of namespace: DEFAULT, CIMV2
    4. UAC (see documentation for requirements)
  6. Use Wbemtest to open WMI GUI and simulate the action (Start | Run, type "wbemtest" and press "Enter").
    The following provides instruction for simulation of retrieving registry key:
    1. Click “Connect”
    2. In the top field, enter namespace to connect (for registry plug-in, CPM uses the “default” namespace): \\<MachineAddress>\root\default
    3. In the credentials section enter the User: <Domain>\<UserName> and provide the password
    4. Click “Execute Method”
    5. Enter “Object Path”: “StdRegProv” and click “OK”
    6. Select the “Method”: “GetStringValue”
    7. Click “Edit In Parameters”
    8. To enter a value for a parameter, double click, select “Not NULL”, enter value and click “Save Property”
    9. Set “hDefKey”:
      1. “H80000002” for HKLM
      2. “H80000003” for HKU
    10. Set “sSubKeyName” with the path to the relevant key
    11. Set “sValueName” with the name of the value
    12. Click “Save Object” and then “Execute!”
    13. A popup message will indicate if the execution completed successfully
    14. Click “OK” and then “Edit Out Parameters” to view the output returned from the command:
      1. “ReturnValue” provides the value returned (0 for success or other for failure)
      2. “sValue” provide the Value returned by the “GetStringValue” command



Actions
  • Print
  • Copy Link

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