How to Set Up Disk Defragmenter Context Menu Shortcuts in Windows 11

Conserving your disk defragmented is an effective strategy to preserve it working optimally. This is the way to create a context menu shortcut for the defragmenter device.


A hard disk

Home windows 11 features a built-in Defragment and Optimize Drives utility (previously referred to as Disk Defragmenter) for drive optimization. This device defrags your arduous drive by reorganizing fragmented information on it. In consequence, it enhances information retrieval effectivity in your PC.

As such, it’s value defragging your PC’s main storage drive every so often. You possibly can add various disk defragmenter shortcuts to the drive and desktop context menus in Home windows 11. Such shortcuts will prevent from having to seek for the defrag device. That is how one can arrange handy defragment context menu choices in two alternative ways.


File Explorer’s This PC part features a C: drive icon you may click on to delve into the native disk. That drive icon’s context menu is the proper place for a Defragment choice, however guess what: it doesn’t have one! Nonetheless, you may nonetheless add a defrag shortcut to the Native Disk icon’s context menu by modifying the registry like this.

  1. Click on the search device’s magnifying glass taskbar icon.
  2. Kind Registry Editor within the textual content field, and click on the Run as administrator choice for its search outcome.
  3. Navigate to the HKEY_CLASSES_ROOTDriveshell key throughout the Registry Editor.
  4. Proper-click shell on the left of the Registry Editor to pick New > Key.
    The New and Key options
  5. Enter the identify runas for the brand new key.
  6. Choose the runas key, and double-click its (Default) string.
  7. Enter Defragment within the Edit String’s textual content field, and click on the OK button.
    An Edit String window for the runas key's Default string
  8. Proper-click runas and choose the New and Key context menu choices.
  9. Kind command to be the brand new key’s title.
    A runas key
  10. Click on the brand new command key to pick it.
  11. Double-click (Default) on the fitting aspect of the Registry Editor.
  12. Enter defrag.exe /u /v %1 within the Edit String’s window Knowledge worth field like within the screenshot immediately under.
    The Edit String window
  13. Choose OK to exit the Edit String window, and shut the Registry Editor.

MAKEUSEOF VIDEO OF THE DAY

Now it’s time to check out the brand new Defragment shortcut. Open File Explorer, and click on This PC throughout the left navigation pane. Proper-click Native Drive and choose the Defragment context menu shortcut proven immediately under. Choosing that choice will defrag the drive and open a basic command-line window that shows the outcomes.


The Defragment option

This registry tweak additionally provides a Defragment choice to the basic context menu, which implies it really works for Home windows 10. To open the basic context menu for the drive icon in Home windows 11 File Explorer, choose Native Disk and press the Shift + F10 hotkey. Then you may choose Defragment from the basic menu.


The defrag command window

Learn additionally: Methods to Customise File Explorer in Home windows 11

Home windows 11’s desktop context menu is one other place we are able to add a shortcut for the Defragment and Optimize Drives device to. By including a shortcut there, you’ll be capable to entry the defrag device immediately out of your desktop. That is how one can arrange a desktop context menu shortcut that opens the graphical (GUI) Optimize Drives window.

  1. Open the Registry Editor (as administrator).
  2. Open the ComputerHKEY_CLASSES_ROOTDirectoryBackgroundshell key.
  3. Proper-click shell to open its context menu and choose New > Key.
    The Key option
  4. Give the brand new key a Disk Defragmenter title.
  5. Proper-click Disk Defragmenter to pick the New and Key choices.
  6. Enter command to be the subkey’s title.
    A command subkey for the Disk Defragmenter key
  7. Choose the brand new command subkey, and double-click the (Default) string for it.
  8. Enter “C:WindowsSystem32dfrgui.exe” throughout the Edit String window’s textual content field as within the screenshot immediately under.
    The dfrgui.exe path value
  9. Press the OK button, and shut the Registry Editor.

To pick out the brand new Disk Defragmenter shortcut, open the basic context menu by right-clicking the Home windows 11 desktop and deciding on Present extra choices. Clicking the brand new Disk Defragmenter choice there’ll open the Optimize Drives window under. There you may choose your C: drive and click on Optimize to defrag it.


The Optimize Drives window

Learn additionally: Methods to Add Software program Shortcuts to Home windows 11’s Desktop Context Menu

These context menu shortcuts will provide you with extra direct entry to the Defragment and Optimize Drives device in Home windows 11. The primary methodology provides a right-click menu choice to Explorer’s Native Disk icon that defrags your PC’s C: drive when chosen.

Should you choose a shortcut that simply opens the Optimize Drives window, with out defragging something, add that choice to the desktop context menu as outlined for the second methodology.


Bronze hard drive disk with dark background
Pc Storage: A Transient Historical past of Storing Your Private Knowledge

Pc storage has come a good distance, and has an interesting historical past.

Learn Subsequent


About The Writer

Leave a Comment