Disable Windows defrag utility

Posted on 2007-07-30
Last Modified: 2007-12-19
I am running several  Windows XP SP2 PCs on a Windows 2003 Server domain and I am having problems with an ecryption program (safeboot). If the system is defagmented it will destroy the ecryption and all data. is there any way to disable the  Windows defragment utility through group policy?
Question by:jackflex
    LVL 19

    Expert Comment

    by:Stephen Manderson
    You could disable the running of the following program via GPO, cant remember off the top of my head but you can disable access to the running of set programs.

    Windows Defrag Utility


    Author Comment

    using GPEDIT I went to .....
    User Config\Admin templates\ System\ Don't run specified Windows applications
    I added dfrg.msc and dfrgntfs.exe but they still run. I double checked RSOP.msc to see if they were applied, and they were. Any other ideas?????
    LVL 19

    Expert Comment

    by:Stephen Manderson
    Im sure there is another option in which you can disable programs from running.

    Also the defrag utility is a snap in

    and can be run also via adding the snapin to mmc.


    Accepted Solution

    You could deny access to C:\WINDOWS\system32\dfrgsnap.dll
    Add Everyone, Deny Read & Execute.

    If its only a few machines, probably easier to do it manually.

    If you still want to use GPO, this link should help to do the above:
    LVL 1

    Expert Comment

    You need to add entry for exe file not its dll.

    you will have to add this at the place shown in the image at this link.

    though this image is for a local system policy...but its available under domain policy.

    see in the image, I too have added some programs.
    LVL 2

    Expert Comment

    Have you tried to just delete the dfrg.msc file?
    LVL 1

    Expert Comment

    deleting the msc file won't help

    msc is just an mmc file...its the exe file and the dll responsible  for the crap.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    The use of stolen credentials is a hot commodity this year allowing threat actors to move laterally within the network in order to avoid breach detection.
    Join Greg Farro and Ethan Banks from Packet Pushers ( and Greg Ross from Paessler ( for a discussion about smart network …
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now