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?

Ryan Michela
  • 1,147
  • 4
  • 16
  • 23
  • 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 06:59

2 Answers2

0

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

Daniel
  • 101
  • 1
0

Check your Windows Firewall is off or not blocking.

Mark Broadbent
  • 399
  • 1
  • 4
  • Yeah...I found that out for this problem: http://serverfault.com/questions/241825/schtasks-cant-administer-remote-tasks – Ryan Michela Mar 03 '11 at 22:56