Admin-Ahead Community

Windows => General Windows => Topic started by: vinayakk on January 31, 2014, 10:50:57 am

Title: Disable Automatic Maintenance in Windows Server 2012
Post by: vinayakk on January 31, 2014, 10:50:57 am
The automatic maintenance job is visible in the Action Center, but the configuration are limited to say the least in that UI.  It’s way better to go straight to the source which in Windows Server 2012 R2 is scheduled tasks. Below is a screenshot of the Action Center / Automatic Maintenance, but to disable it, jump to the next section.

(http://www.deploymentresearch.com/Portals/0/Blog/Files/1/143/Windows-Live-Writer-a11caa86f683_12299-image_thumb.png)

Note: Disabling this task also stops the Windows update task, so please only do this on demo machines you use for presentations etc. NOT for production environments.

Since 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. You need to use the psexec utility (Sysinternals) together with schtasks.exe, and you need to run the command as Administrator.

Use the following command:

Code: [Select]
psexec \\SERVERNAME -s schtasks /change /tn "\Microsoft\Windows\TaskScheduler\Maintenance Configurator" /DISABLE
This disables the Maintenance Configurator task in Task Scheduler. You can check it in Windows Task Scheduler
 Task Scheduler Library ---> Microsoft ---> Windows ---> TaskScheduler.

 :)