1

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?

1
  • 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, 2012 at 6:59

2 Answers 2

0

Check your Windows Firewall is off or not blocking.

1
0

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

1
  • Thanks for the tip, but that answer only applies to 2k3/2k/xp. Mar 3, 2011 at 23:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .