none
Disabling disk defragmenter - possible? RRS feed

  • Pertanyaan

  • We have just moved to SSDs in our workplace.  However, we are still on XP workstations for the next 6 months, and XP does not disable defrag like Win 7.  Is there a way to administratively lock or disable disk defragmenter to keep some of our 'smart enough to be dangerous' users away from it and prevent them from ruining their SSDs?
    • Diedit oleh E B F Minggu, 30 Juni 2013 13.39
    Minggu, 30 Juni 2013 12.58

Jawaban

  • You could try using Software Restriction Policies - see

    http://technet.microsoft.com/en-us/library/bb457006.aspx

    There might be an easier way but I finally blocked myself by using :

    1. A path rule (paste the path - don't use Browse) to disallow

    C:\Documents and Settings\All Users\Start Menu\Programs\Accessories\System Tools\Disk Defragmenter.lnk

    2. A hash rule to prevent double click on dfrg.msc in Explorer

    C:\WINDOWS\System32\dfrg.msc

    3. A hash rule to prevent use of command line defrag

    C:\WINDOWS\System32\defrag.exe

    4. Setting the Enforcement properties to All Users and if necessary (see below) All Files - includes dll's

    At first I thought the first hash rule should be sufficient to prevent the use of the defrag gui by opening the shortcut but surprisingly it wasn't. (It does work for .exe's)

    Unfortunately this approach does not stop me from opening Explorer and using Send To -> Desktop (Create Shortcut)

    What did help is also adding hash rules for all the obvious dlls associated with defrag so that even when I managed to open the gui, it was disabled.

    A completely different approach might be to restrict the "Perform volume maintenance tasks" policy but that also affects other things like the use of disk cleanup.

    For better help with gp's consider posting in this forum :

    http://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverGP


    • Diedit oleh mystifeid Rabu, 03 Juli 2013 02.24 more spaces
    • Ditandai sebagai Jawaban oleh E B F Kamis, 11 Juli 2013 19.57
    Rabu, 03 Juli 2013 02.18

Semua Balasan

  • For a good guide to XP on an SSD see the OCZ info @ http://www.ocztechnologyforum.com/forum/showthread.php?43460-Making-XP-pro-SSD-friendly   I used this info when installing XP on an SSD several years ago.  Partition alignment is probably the most important tweak since it cuts down on unnecessary reading and writing.

    More info links:

    http://www.ocztechnologyforum.com/forum/showthread.php?49779-SSD-Tweak-Utility

    http://www.ocztechnologyforum.com/forum/showthread.php?42487-Solution-Core-SSD-s-freezing-and-stuttering%28WinXP%29&highlight=Windows%20Eee

    http://www.ocztechnologyforum.com/forum/showthread.php?47244-XP32-64-SSD-Windows-Registry-Tweaks

    http://www.ocztechnologyforum.com/forum/showthread.php?51522-SSD-Tweaking-and-Diagnostics-Tools


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

    Minggu, 30 Juni 2013 16.08
  • Thank you for the informational post, we will certainly be looking into deploying these tweaks. However, I was unable to find an answer to my question in any of them.  What would be the best way to prevent users from accessing the disk defragmenter? Is there administrative policy that could be used to do so, or can the disk defragmenter be uninstalled somehow? All of our users are solely on SSDs so there is no need for them to access it at all.
    Senin, 01 Juli 2013 17.56
  • The uitlity @ http://www.ocztechnologyforum.com/forum/showthread.php?49779-SSD-Tweak-Utility can be used.

    To the best of my knowledge Microsoft has not published anything dealing with running Windows XP on an SSD.  Everything I found on it was by doing an internet search and reading the various SSD forums.


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

    Senin, 01 Juli 2013 19.04
  • What would be the best way to prevent users from accessing the disk defragmenter?  
    Use GPO to change the desktop wallpapers of all XP machines.  The wallpaper image should be a simple powder blue with a message in bold red 96 point font: "NOTICE: Until all XP machines are upgraded to Windows 7, anyone caught running the Defragmenter Tool on an SSD will be docked the amount of money required to replace the drive.  No, we are not kidding and yes, this means you."
    Selasa, 02 Juli 2013 22.31
  • You could try using Software Restriction Policies - see

    http://technet.microsoft.com/en-us/library/bb457006.aspx

    There might be an easier way but I finally blocked myself by using :

    1. A path rule (paste the path - don't use Browse) to disallow

    C:\Documents and Settings\All Users\Start Menu\Programs\Accessories\System Tools\Disk Defragmenter.lnk

    2. A hash rule to prevent double click on dfrg.msc in Explorer

    C:\WINDOWS\System32\dfrg.msc

    3. A hash rule to prevent use of command line defrag

    C:\WINDOWS\System32\defrag.exe

    4. Setting the Enforcement properties to All Users and if necessary (see below) All Files - includes dll's

    At first I thought the first hash rule should be sufficient to prevent the use of the defrag gui by opening the shortcut but surprisingly it wasn't. (It does work for .exe's)

    Unfortunately this approach does not stop me from opening Explorer and using Send To -> Desktop (Create Shortcut)

    What did help is also adding hash rules for all the obvious dlls associated with defrag so that even when I managed to open the gui, it was disabled.

    A completely different approach might be to restrict the "Perform volume maintenance tasks" policy but that also affects other things like the use of disk cleanup.

    For better help with gp's consider posting in this forum :

    http://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverGP


    • Diedit oleh mystifeid Rabu, 03 Juli 2013 02.24 more spaces
    • Ditandai sebagai Jawaban oleh E B F Kamis, 11 Juli 2013 19.57
    Rabu, 03 Juli 2013 02.18
  • Tried deleting %windir%\system32\dfrgui.exe, ie. the exe file? You can use vb script for this.

    Arnav Sharma | Facebook | Twitter Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    Minggu, 07 Juli 2013 14.19
    Moderator
  • I see this is a very old forum. Today, I did come across this issue due to maintaining a very old database.

    The answer is to simply set dfrg.msc to open in Notepad.

    IT WILL NEVER RUN!!  You'll just get to read about it.

    Enjoy!!

    Jumat, 08 November 2019 00.00