Asked by:
Updating task on Windows 2008 R2 produces reference account lockout

-
We are trying to create a scheduled task on.
Reference account is a user id which has local admin rights on the server. The task is set to "Run whether user is logged in or not" and the actions includes running a .vbs file
Initial instances of the tasks were running fine.
Now,we updated a trigger setting of the task post which task is running successfully but not working as expected.
VB Script file is made to copy attachments from a specific mail id to a local folder.
VB Script is running properly using command prompt but not with task scheduler though same .vbs file is used under action tab.
Log file for this task shows "Task Completed" status but the attachments are not copied to the destination folder which is working perfectly using Command prompt.
The very next instance, when we tried updating the task and clicked apply , it gave below error:-
"An error has occurred for task Test. Error message: The following error was reported: The referenced account is currently locked out and may not be logged on to.."
We are stuck as
(1) We don't understand why the task was not working when the same vbs file was working with Command prompt.
(2) Even on entering correct password, why task gave the "reference account locked" error.
Any insights on how to resolve this would be very much appreciated.
Question
All replies
-
Hi,
Regarding vb script not running in scheduled task, please check if you have specified the full path of script in the "Start In" field of the task.
And please have a try to use group account running the task which you could do that by the "change user or group" option on the general tab.
Also, check run with highest privilege form the task scheduler job setting under general tab to try it.
>> "An error has occurred for task Test. Error message: The following error was reported: The referenced account is currently locked out and may not be logged on to.."
Please have a try the following hotfix to see if it works for you: https://support.microsoft.com/en-us/help/2548120/account-is-incorrectly-locked-after-you-create-or-change-multiple-scheduled-tasks-in-windows-7,-in-windows-server-2008-r2,-in-windows-vista-or-in-windows-server-2008
Best regards,
Wendy
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.- Edited by Wendy JiangModerator Wednesday, March 15, 2017 7:03 AM
- Proposed as answer by Wendy JiangModerator Tuesday, March 21, 2017 9:10 AM
-
Hi,
Just checking in to see if the information provided was helpful. And if the replies as above are helpful, we would appreciate you to mark them as answers, please let us know if you would like further assistance.
Best Regards,
Wendy
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.