PC Review


Reply
Thread Tools Rate Thread

Disable scheduled tasks using comand line

 
 
Mario Alvares
Guest
Posts: n/a
 
      3rd Feb 2006
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/d.../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/window...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
 
Reply With Quote
 
 
 
 
New Member
Join Date: Jan 2012
Posts: 1
 
      27th Jan 2012
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"
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
List scheduled tasks from the command line? Enkidu Microsoft Windows 2000 1 9th Nov 2006 09:53 AM
Need Comand line or VB =?Utf-8?B?Q2hyaXM=?= Microsoft Excel Programming 1 11th Oct 2006 02:02 AM
winXP taskill runs via the cmd line but not via scheduled tasks or Explorer war_wheelan@yahoo.com Windows XP General 6 19th Apr 2006 10:49 PM
Scheduled Tasks scheduled time automatically changing Chris Windows XP Performance 0 24th Dec 2003 08:24 PM
Scheduled Tasks - Command line (other than AT)? RJ Microsoft Windows 2000 CMD Promt 2 17th Dec 2003 04:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:16 PM.