PSM - FAILED TO INITIATE WINDOWS SESSION AUDIT on Windows

PSM - FAILED TO INITIATE WINDOWS SESSION AUDIT on Windows

695
Created On 11/10/26 10:54 AM - Last Modified 11/10/26 13:00 PM


Symptom


While being part of the administrators group on the target machine. The WindowsAudit still fails.

In the RDP logs you can find the following error:

|  ::  | PSMOS024I Attempting to copy file [C:\Program Files (x86)\CyberArk\PSM\Components\PSMWinAgent.exe] to [\\10.10.1.155\admin$\PSMWinAgent
|  ::  | PSMOS001E OS Objects exception occurred. PSMOS003E Failed to copy [C:\Program Files (x86)\CyberArk\PSM\Components\PSMWinAgent.exe] to remote machine resource [\\10.10.1.155\admin$\PSMWinAgent.exe] (System error [5]: Access is denied.) (Codes: -1, 5)
|  ::  | PSMRD002E PSM RDP exception occurred. PSMRD133E Failed to copy audit agent to the target machine. Reason: PSMOS003E Failed to copy [C:\Program Files (x86)\CyberArk\PSM\Components\PSMWinAgent.exe] to remote machine resource [\\10.10.1.155\admin$\PSMWinAgent.exe] (System error [5]: Access is denied.) (Codes: -1, 0)
|  ::  | PSMRD123E An error occurred while trying to deploy audit agent. Reason: PSMRD133E Failed to copy audit agent to the target machine. Reason: PSMOS003E Failed to copy [C:\Program Files (x86)\CyberArk\PSM\Components\PSMWinAgent.exe] to remote machine resource [\\10.10.1.155\admin$\PSMWinAgent.exe] (System error [5]: Access is denied.)
|  ::  | PSMPR036I Audit session client is sending audit data (Audit data source: [WindowsTitle], Audit data: [FAILED TO INITIATE WINDOWS SESSION AUDIT])



Environment


10.5;10.10;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;12.6;13.0;14.2;14.6 Privileged Access Manager (PAM, self-hosted);Privilege Cloud PSM;Privileged Session Management (PSM) PSM

Cause


WindowsEventsAudit does not work although the account used is part of the administrators group on a Windows target server. 

UAC is enabled on the target machine for Administrators. 



Resolution


  1. Disable Remote UAC from the registry on the Windows Server targets. 
  2. Open the registry editor on the target server. Run: Regedit 
  3. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system 
  4. Add a DWORD value LocalAccountTokenFilterPolicy with value 1
  5. Restart the target server 


Additional Information


Details

SYMPTOM:
While being part of the administrators group on the target machine. The WindowsAudit still fails.
In the RDP logs you can find the following error:
 
|  ::  | PSMOS024I Attempting to copy file [C:\Program Files (x86)\CyberArk\PSM\Components\PSMWinAgent.exe] to [\\10.10.1.155\admin$\PSMWinAgent
|  ::  | PSMOS001E OS Objects exception occurred. PSMOS003E Failed to copy [C:\Program Files (x86)\CyberArk\PSM\Components\PSMWinAgent.exe] to remote machine resource [\\10.10.1.155\admin$\PSMWinAgent.exe] (System error [5]: Access is denied.) (Codes: -1, 5)
|  ::  | PSMRD002E PSM RDP exception occurred. PSMRD133E Failed to copy audit agent to the target machine. Reason: PSMOS003E Failed to copy [C:\Program Files (x86)\CyberArk\PSM\Components\PSMWinAgent.exe] to remote machine resource [\\10.10.1.155\admin$\PSMWinAgent.exe] (System error [5]: Access is denied.) (Codes: -1, 0)
|  ::  | PSMRD123E An error occurred while trying to deploy audit agent. Reason: PSMRD133E Failed to copy audit agent to the target machine. Reason: PSMOS003E Failed to copy [C:\Program Files (x86)\CyberArk\PSM\Components\PSMWinAgent.exe] to remote machine resource [\\10.10.1.155\admin$\PSMWinAgent.exe] (System error [5]: Access is denied.)
|  ::  | PSMPR036I Audit session client is sending audit data (Audit data source: [WindowsTitle], Audit data: [FAILED TO INITIATE WINDOWS SESSION AUDIT])
 
PROBLEM:
WindowsEventsAudit does not work although the account used is part of the administrators group on a Windows 2012 target server. 
UAC is enabled on the target machine for Administrators. 
 
SOLUTION:
 
Disable Remote UAC from the registry on the Windows Server 2012 targets. 
Open the registry editor on the target server. Run->Regedit 
Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system 
Add a DWORD value LocalAccountTokenFilterPolicy with value 1
Restart the target server 



Actions
  • Print
  • Copy Link

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