Why is defrag automatically scheduled on Windows Server 2012?


we running performance problem on our windows server 2012/sql 2012 hyper-v vm, , noticed caused defrag running.
turned out schedules run once every week.

we surprised this, because untill 2008 r2 never enabled default schedules automatically.

i wondering why defrag scheduled automatically out of box windows server 2012.

hi,

based on description, check in lab environment. say, can find same situation.

please open task scheduler. locate to: task scheduler library->microsoft-> windows-> defrag folder. find scheduleddefrag task.

in windows server 2008 r2, run time trigger trigger scheduled task.

in windows server 2012, defrag task doesn’t run on time trigger anymore. instead, defrag task a maintenance mode task. default, storage optimizer run once week during maintenance hour.

in addition, command in action tab more intelligent.

in server 2008 r2, can find command: defrag.exe –c

the “defrag –c” run traditional defrag on volumes.

in server 2012, command: defrag.exe –c –h –k –$

-h = run operation @ normal priority (default low).

-k = perform slab consolidation on specified volume

-$ = tells defrag.exe being called task scheduler.

hope helps.

best regards,

justin gu



Windows Server  >  Windows Server 2012 General



Comments

Popular posts from this blog

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

Disconnecting from a Windows Server 2012 R2 file sharing session on a Windows 7,8,10 machine

Windows 2016 RDS event 1306 Connection Broker Client failed to redirect the user... Error: NULL