If the Run dialog (Win+R) in Windows 10 stops remembering the commands you type, the fix is to re-enable the “Store recently used commands” setting in Group Policy or adjust the corresponding registry value. This article explains why the history disappears, how to restore it, and how to prevent it from being cleared again.
Why Run History Stops Being Saved
The Run dialog in Windows 10 keeps a list of the commands you’ve entered, stored in the registry under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU. This history is normally saved automatically and is also used by the Windows Search box’s “Run commands” suggestions.
However, several things can cause the history to stop being recorded or to be wiped clean:
- Group Policy setting: The policy “Don’t retain history of recently used commands” can be enabled, which disables the history entirely.
- Registry value: The same setting exists as a DWORD value named
NoRunMRUunder the Explorer key. If set to 1, history is not saved. - Privacy settings: Windows 10’s “Let Windows track app launches to improve Start and search results” option, if turned off, can also stop the Run history from being recorded.
- Third-party cleaners: Tools like CCleaner or Windows Disk Cleanup (if configured to clean “Run history”) can delete the MRU list.
- Corrupted registry or system files: Rarely, the RunMRU key itself can become corrupted.
How the Run History Works
When you type a command in the Run dialog and press Enter, Windows appends that string to the RunMRU registry key. The key contains values named a, b, c, etc., each holding a command string, and a MRUList value that defines the order. The most recent command is placed at the top of the list.
This history is per-user (stored in HKCU), so each user account has its own. It is also used by the Start menu’s search box: when you type a command name, it may appear under “Run commands” in the search results.
How to Enable Run History via Group Policy
The most direct fix is to ensure the Group Policy setting is not blocking the history. This applies to Windows 10 Pro, Enterprise, and Education editions (Home edition doesn’t include gpedit.msc).
- Press Win + R, type
gpedit.msc, and press Enter. - Navigate to User Configuration > Administrative Templates > Start Menu and Taskbar.
- Find the policy named “Don’t retain history of recently used commands”.
- Double-click it and set it to Not Configured or Disabled.
- Click OK and restart the Run dialog (or log off and back on).
If the policy was already Not Configured, the issue may be elsewhere.
How to Enable Run History via Registry
If you’re on Windows 10 Home, or if Group Policy didn’t help, you can edit the registry directly. Always back up the registry before making changes.
- Press Win + R, type
regedit, and press Enter. - Navigate to
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer. - Look for a DWORD value named
NoRunMRU. If it exists, double-click it and set its value to 0 (or delete it). - If the
Policies\Explorerkey doesn’t exist, right-click onPolicies, select New > Key, name itExplorer, and then create a DWORDNoRunMRUwith value 0. - Close the Registry Editor and restart the Run dialog.
Additional Privacy Settings That Affect History
Windows 10’s privacy settings can also prevent the Run history from being saved. To check this:
- Open Settings > Privacy > General.
- Make sure “Let Windows track app launches to improve Start and search results” is turned On.
- Also ensure “Show me suggested content in Settings app” is not interfering (though this is less relevant).
If it was off, turn it on and test the Run dialog again. This setting is tied to the Start_TrackProgs registry value under HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced.
What to Do If History Is Still Not Saved
If the above steps don’t restore the history, try these additional troubleshooting steps:
- Run Disk Cleanup: Open Disk Cleanup, select your system drive, and ensure “Run history” is unchecked under the Files to delete list. If it’s checked, uncheck it and run the cleanup.
- Check for third-party cleaners: If you use CCleaner or similar, disable the “Run history” cleaning option in their settings.
- Repair the RunMRU key: Sometimes the key can be corrupted. You can delete the entire
RunMRUkey and let Windows recreate it (you’ll lose existing history, but it should start saving again). - Run System File Checker: Open Command Prompt as administrator and run
sfc /scannowto repair system files. - Create a new user profile: If the issue persists only for your account, creating a new user profile may resolve it.
How to Clear Run History Manually
Sometimes you want the opposite: to clear the history. You can do this without any third-party tools:
- Open the Run dialog (Win+R).
- Type nothing, but press Ctrl + Shift + Enter? No, that doesn’t work. Instead, simply delete the contents of the RunMRU registry key.
- In regedit, navigate to
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU. - Right-click the
RunMRUkey and select Delete. Confirm. - Restart Explorer or log off/on. The history will be empty.
Note: Windows will recreate the key when you next use the Run dialog.
Frequently Asked Questions
Why does my Run history keep disappearing after reboot?
If the history is cleared every time you reboot, it’s likely a third-party cleaner or a Group Policy setting that runs at startup. Check your startup programs for cleaners, and verify the Group Policy setting is not set to clear history on exit.
Does enabling Run history affect privacy?
Yes, it stores the commands you type, which could be seen by anyone with access to your user account. If you share a computer, you may prefer to keep it disabled. You can always clear the history manually.
Can I recover deleted Run history?
If you’ve deleted the RunMRU key, the history is gone. There is no built-in way to recover it unless you have a system restore point or a registry backup. Tools like Recuva might recover the registry hive, but it’s not straightforward.
Does this fix work on Windows 11?
The same steps generally apply to Windows 11, as the Run dialog and registry structure are similar. However, the Group Policy path may be slightly different, and the privacy settings are under the same location.
Why is there no RunMRU key in my registry?
If the key doesn’t exist, Windows hasn’t saved any history yet. It’s created the first time you use the Run dialog. If you’ve used it and the key is still missing, the NoRunMRU policy might be active.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- How to Move Data to a New Samsung Galaxy Phone
- Pixel C vs Surface Pro: Key Differences
- iPhone X vs iPhone: Key Differences Explained
- Chromebook Won’t Charge: How to Fix
- How to Delete Photos on Google Drive
- Firefox Bookmark Management Tips & Tricks