How to use GPO to disable DiskDefrag access and Automatic Maintenance in Server 2012/2012 R2


i'm trying find way use group policy disable ability use diskdefrag , how disable automatic maintenance feature in server 2012/2012 r2.

thanks!

hi,

to disable automatic maintenance, have open task scheduler  > task scheduler library > microsoft > windows > taskscheduler. i did not found group policy disable automatic maintenance.

you can make changes in group policy determine when maintenance should occur, , implement random delay avoid vms running maintenance @ same time. open group policy settings editor, run gpedit.msc run dialog. these settings under computer configuration > administrative templates > windows components > maintenance scheduler.

for disable default disk defragmentation, try following steps:
step 1:  open notepad , paste below command in notepad , save has .bat format.(disbale.bat)
          schtasks /change /tn "microsoft\windows\defrag\scheduleddefrag" /disable
step 2: create new gpo , rename has disable default defragmentation

and right click on newly created  disable default defragmentation group policy , click on edit
go computer configuration – policies – windows settings – scripts(startup /shutdown)
click on startup , click add , add created bat file , click ok
restart client system , check defragmentation 

regards.


please remember mark replies answers if , unmark them if provide no help. if have feedback technet support, contact tnmff@microsoft.com



Windows Server  >  Group Policy



Comments

Popular posts from this blog

server manager error: ADAM.events.xml could not be enumerated.

Windows Firewall - Group Policy and local settings