Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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:… – Ryan Michela Mar 3 '11 at 22:56

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.