[PSM] - Unable to run WMIC command - Invalid Operation

[PSM] - Unable to run WMIC command - Invalid Operation

166
Created On 11/10/26 11:01 AM - Last Modified 11/10/26 16:01 PM


Symptom


When changing the PSM Users to Domain Users 

CorePAS on-premise
https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/Latest/en/Content/PAS%20INST/Optional-Moving-the-PSMConnec-and-PSMAdminConnect-users-to-your-Domain.htm

Privilege Cloud
https://docs.cyberark.com/Product-Doc/OnlineHelp/PrivCloud/Latest/en/Content/PAS%20INST/Optional-Moving-the-PSMConnec-and-PSMAdminConnect-users-to-your-Domain.htm


Running the first command succeeds.
wmic.exe /namespace:\\root\CIMV2\TerminalServices PATH Win32_TSPermissionsSetting WHERE (TerminalName="RDP-Tcp") CALL AddAccount "DOMAINNAME\PSMAdminConnect",0

However, running the 2nd command fails with "Invalid Operation"
wmic.exe /namespace:\\root\cimv2\TerminalServices PATH Win32_TSAccount WHERE "TerminalName='RDP-Tcp' AND AccountName='DOMAINNAME\\PSMAdminConnect'" CALL ModifyPermissions TRUE,4


WMIC Command Logging

  1. Open Event Viewer → click "Show Analytic and Debug Logs"
  2. Locate the Trace Channel log for WMI under "Applications and Service Logs → Microsoft → Windows → WMI Activity"
  3. Right click the Trace log and select "Log Properties"
  4. Click the "Enable Logging" check box to start collecting logs via WMI event tracing


Environment


10.10;11.1;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;11.9;11.8;12.4;12.3 PSM

Cause


There is a GPO enabled that prevents the administrator to customize security permissions for the Remote Desktop Session Host server.

Resolution


Disable the GPO:

Windows Components/Remote Desktop Services/Remote Desktop Session Host/Security

Do not allow local administrators to customize permissions

Set it to Disabled or Not Configured 


NOTE: if the below key exists in the registry, delete it after updating the GPO

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services --> fWritableTSCCPermTab



Actions
  • Print
  • Copy Link

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