Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run schtasks.exe as backup operator

Status
Not open for further replies.

snootalope

IS-IT--Management
Jun 28, 2001
1,706
US
I'm trying to run a scheduled tasks as a user that is a member of the backup operators group. If I go to scheduled services app and right click and run the task, it works just fine. However, if I try to call the scheduled task from a command line like so:

C:\schtasks /Run /TN "task"

I get the error:
ERROR: Unable to start the task scheduler service.

If I make this user a member of the Administrators group, it runs just fine from the command line. Thing is, I can't have this user being an admin.

I've also tried the Run As in the scheduled task properties and set it to run as admin, same result. Works by using the gui, but through the command line it fails with the same error.

Anyone encountered this before?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top