views:

14

answers:

0

Hi, I have an old scripts which kicks off a scheduled task:

schtasks /end /tn MyTaskName /s HOSTNAME

I am now trying to use it on Windows 2008, but it doesn't work. I think it's to do with the fact that the new Task Scheduler allows you to specify subfolders under the main "Task Scheduler Library" and I have put MyTaskName in a subfolder called MyTasks. What's the correct syntax to use with schtasks?