Jump to content

Defragmentation in Windows PE 2.1?


jdash

Recommended Posts

Is there any way to make Windows Vista Defragmentation tool in GUI (Dfrgui.exe) to work in Windows PE 2.1? and integrate it to the drive properties dialog box in the Tools tab?

I have made the command line version to work but the GUI version doesn't seem to work.

Link to comment
Share on other sites


So right now you need to run a compatibility check. Make sure the architecture version matches between the app and the PE. Also run it on Depends (Dependency Walker) and Process Monitor to see if you are missing any files. If this program requires .NET Framework files, you might be out of luck.

Link to comment
Share on other sites

  • 4 weeks later...
Is there any way to make Windows Vista Defragmentation tool in GUI (Dfrgui.exe) to work in Windows PE 2.1? and integrate it to the drive properties dialog box in the Tools tab?

I have made the command line version to work but the GUI version doesn't seem to work.

For those that don't know how to add Defrag command line to Windows PE, Here is how you can do it. You can see the full version of it at OS Attack. As far as making the GUI work I am sure that it is possible (I don't think its .net based) but it has multiple dependencies you would also have to add and that gets out of control for the pay-off of a GUI.

Registry Keys To Add To WinPE:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\EXTERNALSOFTWARE\Classes\CLSID\{80EE4901-33A8-11d1-A213-0080C88593A5}] @=”Defrag NTFS engine”

[HKEY_LOCAL_MACHINE\EXTERNALSOFTWARE\Classes\CLSID\{80EE4901-33A8-11d1-A213-0080C88593A5}\LocalServer32] @=hex(2):25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,6f,00,74,00,25,\ 00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,44,00,66,00,\ 72,00,67,00,4e,00,74,00,66,00,73,00,2e,00,65,00,78,00,65,00,00,00

[HKEY_LOCAL_MACHINE\EXTERNALSOFTWARE\Classes\CLSID\{80EE4902-33A8-11d1-A213-0080C88593A5}] @=”Defrag FAT engine”

[HKEY_LOCAL_MACHINE\EXTERNALSOFTWARE\Classes\CLSID\{80EE4902-33A8-11d1-A213-0080C88593A5}\LocalServer32] @=hex(2):25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,6f,00,74,00,25,\ 00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,44,00,66,00,\ 72,00,67,00,46,00,61,00,74,00,2e,00,65,00,78,00,65,00,00,00

For these files you can copy them from a Vista machine but make sure that the Vista service pack version matches the WinPE service pack version. Make sure to place them in the same locations as they are located on Vista.

Files To Add:

Windows\System32\Defrag.exe

Windows\System32\dfrgfat.exe

Windows\System32\DfrgNtfs.exe

Windows\System32\DfrgRes.dll

Windows\System32\en-US\Defrag.exe.mui

Windows\System32\en-US\DfrgFat.exe.mui

Windows\System32\en-US\DfrgNtfs.exe.mui

Windows\System32\en-US\DfrgRes.dll.mui

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...