I am editing a Group Policy Scheduled Task. In General, Security Options "When running the task, use the following user account:" I have the following-
Updating the gpo, and checking the result on a workstation, I see that the UserDomain was set correctly, except that the Username was NOT set correctly. It actually put the Hostname of the computer instead...example result:
There are no errors, nothing in the event logs. It just will not run. I removed the %USERDOMAIN% and left just %USERNAME%, it will display "PRMRH$" in the scheduled task.
Should I be using something other than %USERNAME% ??
EDIT: MS HELP FILE STATES:
Security options Configure the security context under which the task is run.
• If the preference item is part of Computer Configuration , by default the task is run in the security context of the SYSTEM account.
• If the preference item is part of User Configuration , by default the task is run in the security context of the logged-on user. Unless you provide credentials, the task is run only if the user is logged on to the computer, but can continue after the user logs off.
• To run a task under the security context of a specified account (regardless of whether that account is logged on), click Change User or Group , enter credentials for the account, and then click Run whether user is logged on or not .