When a command or script is executed by the WA Agent with a USERID, the job fails with following messages:
01/01/20XX 00:00:12.345+0000: 2. Logon failed for orgdomain\user123 due to: 1385 - Logon failure: the user has not been granted the requested logon type at this computer.
01/01/20XX 00:00:12.345+0000: Logon user failed for orgdomain\user123 due to: The user name or password is incorrect.
01/01/20XX 00:00:12.345+0000: Job WIN_JOB/MY_APP.1/MAIN failed - The user name or password is incorrect.
01/01/20XX 00:00:12.345+0000: Transmitter: Sending AFM: 20210126 14555593-0000 JavaAgent#[email protected] OS_COMPONENT WIN_JOB/MY_APP.1/MAIN State
SUBERROR Failed SetEnd Status("The user name or password is incorrect.") Cmpc(1326) JobLogId(XXXXXXXXXXXXXXXXXXXXX)
The user and password are correct.
The following error indicates issue with the permission:
"Logon failure: the user has not been granted the requested logon type at this computer."
The WA agent is unable to login to the system as that user.
Release : 11.x/12.x
Component : CA WORKLOAD AUTOMATION AGENT
The user defined in the job will require following permission via User Rights Assignments:
Allow log on locally
Allow log on through Remote Desktop Services
Reboot Windows after the permission has been granted.