Disable scheduled tasks using comand line

M

Mario Alvares

Hello,

I am using Windows XP Pro SP2.

I need to enable/disable a scheduled task from the command line.
I checked the documentation for 'schtasks.exe' (command line version of
Scheduled Tasks) on this page :
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/
en-us/schtasks.mspx

But the '/change' option which allows you to change the properties of a
task, does not have a parameter to enable or disable a task.

It seems the version of schtasks.exe that ships with Windows Server 2003
has a "/change (/ENABLE|DISABLE)" option according to this documentation:
http://technet2.microsoft.com/windowsserver/en/library//1d284efa-9d11-
46c2-a8ef-87b297c68d171033.mspx

But this option does not seem to work in XP Pro, and the docs for XP Pro
don't make any mention of this option too.

So, does anyone know how to enable/disable a scheduled tasks from the
command-line in Win XP Pro ?

Any help would be appreciated.

Thanks,
Mario
 
Joined
Jan 27, 2012
Messages
1
Reaction score
0
To Disble the Schedular job
Rename .job in to .bak
move "C:WINDOWS\Tasks\TEST TASK.job" "C:WINDOWS\Tasks\TEST TASK.bak"

To Enable the Schedular job
Rename .bak in to .job
move "C:WINDOWS\Tasks\TEST TASK.bak" "C:\WINDOWS\Tasks\TEST TASK.job"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top