Tuesday, July 17, 2018

Windows task Schedulars

It was pretty hard to find a command to enable and disable the windows task schedulers.
Only way to do that was to rename the job files. Job files basically resides in "Task" folder.

This folder my have below paths
C:\Windows\Tasks
or
C:\Windows\System32\Tasks\


I renamed task files. Better to backup those files before doing this.

let's take a task scheduler created inside "Test" folder and name of the task as "TestPS"

the of the file would look like
C:\Windows\System32\Tasks\Test\TestPS


Disable  - rename as .bak
---------
move "C:\Windows\System32\Tasks\Test\TestPS" "C:\Windows\System32\Tasks\Test\TestPS.bak"

Enable  - rename as original file
------------------------------
move "C:\Windows\System32\Tasks\Test\TestPS.bak" "C:\Windows\System32\Tasks\Test\TestPS" 

No comments:

Post a Comment