CPM - Failure to Change Scheduled Task Password
394
Created On 11/10/26 10:56 AM - Last Modified 11/10/26 12:59 PM
Symptom
CPM fails to change the password of a Scheduled Task usage. The error generated in the debug log will look like the following:
"Failed to connect to remote machine of task (Task Name) on (Address) with user (Master Object User name) at domain (domain name or Address). Error: 0x80070005 Message: Access is denied."
Environment
Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM)
Cause
The user running the Scheduled Task does not have the permission of 'Full control'. In order to change the Scheduled Task password, this user needs 'Full control' of the task file.
Resolution
Option 1: Use a Logon Account with 'Full control' permissions.
Option 2: Change the permission of the user running the task. This can be accomplished by the following steps:
a) Navigate to C:\Windows\System32\Tasks
b) Right-click on the task file in question and select Properties.
c) Select the Security tab.
d) Select the user who runs the task and click Edit.
e) Tick the box next to 'Full control', and then click OK.
Additional Information
Details
SYMPTOM:
CPM fails to change the password of a Scheduled Task. The following error is written in the pm_error.log and in the ThirdParty log:"Failed to connect to remote machine of task (Task Name) on (Address) with user (Master Object User name) at domain (domain name or Address). Error: 0x80070005 Message: Access is denied."
PROBLEM:
The User running the Scheduled Task does not have the permissions of Full Control. In order to change the Scheduled Task password, this user needs Full Control of the ".job" file.
SOLUTION:
Option 1: Use a Logon Account with permissions, so the Task User can remain without permissions.
Option 2: Change the permission of the Task User. This can be accomplished by the following steps:
Right-click the JOB file, selecting Properties, clicking the "Security" tab, and checking the "Full Control" check box for the User running the Scheduled Task.
You can also use Windows CACLS to check (and implement) the permissons of the User:
C:\WINDOWS\Tasks>cacls "Adobe Reader 8.job"
LAPTOP123\Guest:C
Domain\FredCoupling:F
BUILTIN\Administrators:F
NT AUTHORITY\SYSTEM:F
Full Control is designated by "F". Password change do not work if the Scheduled Task User has only Change permission, which is designated by "C".
Please note : The location might be change on environment of 32-bit and on 64-bit.
32-bit : %systemroot%\Tasks
64-bit : %systemroot%\System32\Tasks
*Note:
IF CPM is in a Workgroup environment, hardened and uses a Service account other than Local System for Idira Password Manager service, perform the same steps as mentioned above for the service account.