How To Delete, Enable, Or Disable Run Command History In Windows 11, 10

How To Delete Enable Or Disable Run Command History In Windows 11 10How To Delete Enable Or Disable Run Command History In Windows 11 10

The Run Command box has been around since Windows 95. It is an excellent tool to instantly access other Windows tools, files and folders, apps, and programs, and even modify the Windows Registry. By default, all Windows OS versions store the history of the commands entered into the Run Command box . You can then use the stored history later to provide the same text and command quickly. This feature is known as “auto-suggestion.”

When you start typing in another command, a dropdown will appear with recently used entries. Here is an example:

Run Command Box autosuggestion
Run Command Box autosuggestion
Delete large files and folders quic...
Delete large files and folders quickly in Windows

You can then use your mouse or the up/down arrow keys to scroll through similar suggestions, and then hit “Enter” on the command that you want to run again.

However, in some cases, the auto-suggestion feature might be turned off by the owner of the PC, or your organization. In other instances, you may want to disable the auto-suggestions feature of the Run Command box simply because the list is too long or you wish to keep it enabled and only clear the history for a fresh start.

In this article, we will show you how to delete/clear the Run dialog box history, and how to enable or disable the feature completely.

Clear Run Command History

If you only want to clear the Command history, you can use the following steps to do it. Performing these steps will clear your current history and create room for new and fresh commands to be saved. The given method works for Windows 7, Windows 8 and 8.1, and Windows 10 and 11.

Note: The following steps involve manual changes to the Windows Registry. Misconfiguration of critical values in the system’s registry could be fatal for your operating system. Therefore, we insist that you create a system restore point before proceeding forward with the process.

You can also use our top selection of disk imaging and backup software so you never lose your data or operating system again.

  1. Open the Windows Registry Editor by typing in “regedit” in the Run Command box.

    Open the Registry Editor
    Open the Registry Editor
  2. Paste the following into the address bar for quick navigation:

    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RunMRU
    Navigate to the RunMRU Registry key
    Navigate to the RunMRU Registry key

    Here, you will see the command history saved in the right-hand pane inside different string values.

  3. Right-click the “RunMRU” key and click “Delete” from the context menu.

    Delete the RunMRU key
    Delete the RunMRU key
  4. When asked for confirmation, click Yes.

    Confirm action
    Confirm action
  5. Close the Registry editor.

Now, when you open the Run Command box, you will notice that the text field is empty, and so are all of the suggestions.

Empty suggestion box in Run Command box 1
Empty suggestion box in Run Command box

Disable Run Command History

If you want to enable or disable the auto-suggestions feature, there are two methods for it. One is achieved using the Settings app, while the other involves modifying the Windows Registry. We suggest you only use it if the former method doesn’t work for you.

Disable Run Command History from Settings

Perform the following steps to enable or disable the Run Command history using the Settings app. Note that this method is only valid for Windows 8, 10, and Windows 11 since the Settings app isn’t available on Windows 7.

  1. Go to the following:

    Settings app >> Privacy & security >> General
  2. Toggle the slider in front of “Let Windows improve Start and Search Results by tracking app launches” into the respective position to enable or disable the auto-suggestion feature:

    • To enable history, toggle the slider into the On position.

      Enable Run Command box history from Settings app
      Enable Run Command box history from Settings app
    • To disable history, toggle the slider into the Off position.

      Disable Run Command box history from Settings app
      Disable the Run Command box history from the Settings app

If you have just enabled the Run Command box’s history, every command you enter from now on will be saved. If you just disable it, you will find the text field empty in the Run Command box, as will the drop-down menu.

Enable or Disable Run Command History from Registry

If your organization or system administrator manages your Windows Settings, you can use the following steps to enable or disable the feature by tweaking the Windows Registry. These steps can be used in all Windows versions launched since (and including) Windows 7.

  1. Open the Windows Registry Editor by typing in “regedit” in the Run Command box.

    Open the Registry Editor
    Open the Registry Editor
  2. Paste the following into the address bar for quick navigation:

    Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
    Navigate to the Advanced Registry key
    Navigate to the Advanced Registry key
  3. Double-click the “Start_TrackProgs” value and change its Value Data to the following number, depending on whether you want to enable or disable the history.

    • Change the Value Data to “1” to enable Run Command history

      Enable Run Command box history from Windows Registry
      Enable Run Command box history from Windows Registry
    • Change the Value Data to “0” to disable the Run Command history

      Disable Run Command box history from Windows Registry
      Disable Run Command box history from Windows Registry
  4. Close Registry Editor.

If you have just enabled the Run Command box’s history, every command you enter from now on will be saved. If you just disable it, you will find the text field in the Run Command box is empty, as will the drop-down menu.

Note that performing these steps inside the Windows Registry does not require a system reboot. Additionally, you can still manage the settings from the Settings app, as given in the steps above.

Closing Thoughts

This article highlights the methods to manage the Command Box’s history storage on a Windows PC. You can either clear the history, enable or disable the feature altogether. Do not confuse this article with disabling the Run Command box; that is a different thing.

That said, we found that some online tutorials also ask you to disable the “Show most used apps” feature in Settings >> Personalization >> Start. Note that enabling or disabling this feature will have no effect on the Run Command box’s history. However, the methods discussed in this post have been tried and tested to work effectively.

If you liked this post, Share it on:

Get Updates in Your Inbox

Sign up for the regular updates and be the first to know about the latest tech information

Subhan Zafar is an established IT professional with interests in Windows and Server infrastructure testing and research, and is currently working with Itechtics as a research consultant. He has studied Electrical Engineering and is also certified by Huawei (HCNA & HCNP Routing and Switching).

Leave the first comment