Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm running a few VMs, and suddenly I noticed my CPU fan was spinning louder than usual. I tracked it down to Windows 8 doing some "automatic maintenance":

enter image description here

enter image description here

How can I turn this completely off? I found a way to set the time, but not a way to turn it off completely.

share|improve this question
3  
I haven't researched it enough to answer definitively (So @Luke don't worry I won't make this an answer) so instead I'll say it's in scheduled tasks, but it's going to be in several places under Task Scheduler Library\Microsoft\Windows such as Diagnosis, Maintenance, etc. It's probably a bad idea to disable any of it, maybe instead schedule it for sometime when you can pause your VMs or something. Good luck. –  Mark Allen Nov 1 '12 at 7:41
    
I would recommend not shutting it off completely. It's there for a reason. –  Trevor Sullivan Nov 8 '12 at 16:50
    
There are times when maintenance is completely useless and just a waste of power. In our case we have an automated test system that starts a VM from a certain snapshot, runs some tests and then reverts the VM to the snapshot. Whatever changes the OS make to itself in this time frame will be lost. The only "win" is that our tests takes >300% longer to execute. Since the maintenance task(s) also sets the "Run task as soon as possible..." option, just scheduling at another time doesn't feel solid. Besides as our tests grow, we may soon not have any other time to schedule it to. –  Andreas Magnusson Oct 2 at 7:59

7 Answers 7

up vote 35 down vote accepted
+50

You can do it by task scheduler. For this open the task scheduler by typing task on the Modern UI under the Apps and you will find the Task Scheduler at the left side click it and open. Now go to following path

Task Scheduler > Microsoft > Windows > Task Scheduler

Here you have to right click on the Idle Maintenance & Regular Maintenance and select the option disable, that's it!

enter image description here

enter image description here

If you want to enable it again then just do the reverse.

share|improve this answer
    
Thanks, this is exactly what I was looking for! –  houbysoft Nov 11 '12 at 0:10
2  
I don't have a Windows 8 at hand to test on, but on Windows Server 2012, the task gets re-enabled next time the task "Maintenance Configurator" runs, e.g. when rebooting. Also, that particular task can apparently not be disabled. –  abstrask May 3 '13 at 12:29
    
Sorry dude now I'm also off from Windows8 so can't help you at the moment. –  avirk May 4 '13 at 9:43
1  
Windows 8.1 - the task also is reenabled after 2-3 minutes! –  jitbit Jul 1 at 14:20

Automatic maintenance does too many functions, like the updating of Windows software etc. so that turning it totally off is not advisable (or possible).

To complete the answer by nhinkle, one could at least disable it from waking your PC.

This is done in Action Center / Maintenance section / Change maintenance settings, uncheck "Allow scheduled maintenance to wake up my computer".

Together with setting the scheduled time to late at night or a time that it won't be a bother (3 AM is the default), is about the maximum possible solution.

share|improve this answer

The Automatic Maintenance task is a built-in scheduled task, but if you think you can just open task scheduler as an administrator and disable it you’re wrong. It will just re-enable itself on Servre 2012 as @abstrask pointed out. You'll need to use the psexec utility (Sysinternals) together with schtasks.exe, and you need to run the command as SYSTEM. Use the following command:

psexec \\SERVERNAME -s schtasks /change /tn "\Microsoft\Windows\TaskScheduler\Maintenance Configurator" /DISABLE

In my scenario, I was testing this on my Hyper-V host, so I simply skipped the \SERVERNAME switch.

psexec -s schtasks /change /tn "\Microsoft\Windows\TaskScheduler\Maintenance Configurator" /DISABLE

Command to run Command to run

After you run the command, you can verify the task is now disabled in the Task Scheduler After you run the command, you can verify the task is now disabled in the Task Scheduler

share|improve this answer

There is no supported way to disable automatic maintenance altogether.

You can make changes in Group Policy to determine when maintenance should occur, and to implement a random delay to help avoid all VMs running maintenance at the same time. To open group policy settings editor, run gpedit.msc from the run dialog. These settings are under Computer Configuration > Administrative Templates > Windows Components > Maintenance Scheduler.

The scheduled tasks show up in the task scheduler (to open, type that in from the start menu) under Microsoft > Windows > Diagnostics and Microsoft > Windows > Maintenance. The events don't have any triggers specifically defined though, and the actions are "custom handlers" that can't be edited.

I did find that the executable for the maintenance tasks is MSchedExe.exe. You could potentially write a scheduled task to run shortly after the scheduled maintenance time to kill that executable right after it starts up. Not sure how reliable that would be though.

share|improve this answer

OK, I had this invasive Auto Maintenance cause crashes, break network connections requiring reinstall of devices, and I've read about other people having all their solid state memory de-fragmented so as to reduce theri life.

Disaabling it in Task Scheduler doesn't work, it gets enabled. Try this:

ComputerMng>TaskScheduler>Microsoft>Windows>TaskScheduler>

RClick RegularMaintenance>Properties
  Conditions> "change Start the task only if idle" from 0 to 1 minute,
    else you get a "must be greater than 0" error message when saving.
  Triggers> select default 3am trigger> Edit>
    uncheck "Enabled", set to start 01/01/2111, every 100 days
  Settings> uncheck "Run ASAP after schedule missed"

If you don't like it because you think you'll still be around in 2111, then bully for you.

share|improve this answer
    
Does the tasks get re-enabled, if you also disable the "Maintenance Configurator" task? –  abstrask May 3 '13 at 12:23

While you can disable the "Idle Maintenance" and "Maintenance Configurator" tasks, under \Microsoft\Windows\TaskScheduler, they will get re-enabled by the "Maintenance Configurator" task, which by default runs at 01:00 every day. In addition, it has two custom triggers, which cannot be viewed or edited using the Task Scheduler console.

Even as an admin, you don't have permission to disable the "Maintenance Configurator" task, though I haven't tried any "tricks" to do so - If Microsoft has gone through these lengths to prevent you from disabling it, it's probably a bad idea to do.

The relatively "clean" way I found to disable Idle and Regular Maintenance, that seems to still work after the "Maintenance Configurator" task has run, is to disable the triggers of the "Idle Maintenance" and "Maintenance Configurator" tasks.

The task will remain enabled, but with triggers disabled, it won't actually start.

(My answer is based on Windows Server 2012, which also has this "feature". I'm assuming it's setup the same way. Correct if I'm wrong)

share|improve this answer

There is a way turn off completely automatic maintenance. Delete from Task scheduler and that's it. No more maintenance. When I'm only disabled, after restart system maintenance start again, but if I delete it`s not working anymore.

share|improve this answer
    
Deleting built-in tasks might lead to weird problems in the future, event if you don't plan on using these tasks –  abstrask May 3 '13 at 12:13
    
Does the tasks get re-enabled, if you also disable the "Maintenance Configurator" task? –  abstrask May 3 '13 at 12:22

protected by Community Mar 19 '13 at 7:29

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.