1

I have a batch file which restarts a service.

net stop "Spider"
net start "Spider"

I execute this with admin privileges as "Run as administrator" without problem, but when I try to schedule this with "Task Scheduler" I am getting an error 0x2.

This is how I configurate task scheduler, even with "run with highest privileges" I can't execute it. The user dferre is an administrator.

enter image description here

talendguy
  • 81
  • 1
  • 9
  • Do you provide credentials when running as administrator? – Bali C Apr 10 '17 at 11:23
  • When I execute the .bat without the task scheduler I just have to run as administrator and say "ok". The user itself is an administrator – talendguy Apr 11 '17 at 07:55
  • but you still have to enter the credentials when you select the user who executes the task. It asks for it when finishing the task – David Trevor Aug 29 '17 at 09:24

0 Answers0