PSM - FAILED TO INITIATE WINDOWS SESSION AUDIT on Windows
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
- Disable Remote UAC from the registry on the Windows Server 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