Run Windows batch file on schedule as non-Administrator user
Posted
by
Evgeny
on Super User
See other posts from Super User
or by Evgeny
Published on 2011-02-27T12:31:32Z
Indexed on
2011/02/27
15:27 UTC
Read the original article
Hit count: 339
I'm running Windows XP x64 SP2. I have a Windows batch file that with some Robocopy commands that I want to run on schedule. I created a scheduled task for it, running as a dedicated user (not the user I'm logged on as), but it simply did not run. I could see successful logon events in the security log, so it got that far, but the commands in the batch file definitely weren't getting executed.
After reading through all of http://social.technet.microsoft.com/Forums/en-US/winservermanager/thread/d47d116e-10b9-44f0-9a30-7406c86c2fbe/ I tried making the target user account an Administrator and that fixed it - the batch file ran just fine. Nothing else seemed to work.
The thing is, I want it to run under a low-privileged account. Does anyone know how can I get a batch file to run on schedule as a non-Administrator?
© Super User or respective owner