Take the 2-minute tour ×

When I execute schtasks /query /s serverName /u serverName\user /p password I get an Access is denied error. serverName\user is in the Administrators group on server.

Any ideas?

share|improve this question
So many things can go wrong here. Could you elaborate more how you are executing this program? Is schtasks run on your PC? Do you start it in elevated mode? Do you run it in a command prompt? Do you run it in a script? Are you sure you did not misspell the password? Did you check that the user has "Logon as batch job"-rights? Why don't you use the task scheduler console? On which OS are you running the command? Do you have any logfiles that contain more information than "access denied" (Security Log on server, maybe)? –  Tom Jun 15 '12 at 6:59
add comment

2 Answers

up vote 0 down vote accepted

Check your Windows Firewall is off or not blocking.

share|improve this answer
Yeah...I found that out for this problem: serverfault.com/questions/241825/… –  Ryan Michela Mar 3 '11 at 22:56
add comment

This answer my help: unable to schedule a task (access denied).

share|improve this answer
Thanks for the tip, but that answer only applies to 2k3/2k/xp. –  Ryan Michela Mar 3 '11 at 23:05
add comment

Your Answer


