Announcement Announcement Module
No announcement yet.
Disable scheduled tasks Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Disable scheduled tasks

    Is there an easy way to disable scheduled tasks, for instance when you're only running an integration test? I have configured some using the @Scheduled annotation.

  • #2
    Step 1

    Start the Windows Registry Editor. Click the Windows Start button and select Run. This is normally the second option from the bottom of the menu, just above Shut Down. Type "Regedt32" (without the quotation marks) in the dialog box that pops up and click OK.

    Step 2

    Locate the registry value that requires modification. In the left-hand panel of the Registry Editor, locate the top-level folder named HKEY_LOCAL_MACHINE and double-click it. Then double-click on SYSTEM, and after that on CurrentControlSet. Next double-click on Control, and then on Session Manager. If you look in the right panel you will now notice the second item from the top named BootExecute. This is the registry entry that needs changing.

    Step 3

    Change the BootExecute value. Double-click on BootExecute in the right panel of the Registry Editor. The value should read "autocheck autochk * /r\DosDevice\c:" where "c:" is the drive(s) upon which CHKDSK runs. To disable the scheduled CHKDSK, change this value to the following: "autocheck autochk *" (without quotation marks) and click OK. Close the Registry Editor. You have successfully disabled CHKDSK.