Auto-complete is one feature that makes executing the same or similar commands easy. Whether you are typing in the Command Prompt or on Run prompt if what you are typing matches with the previously executed command, you save a lot of time. This small feature is so beautifully implemented that you can use the up, and down arrow keys to navigate through the set of commands in the run prompt or hit the down arrow button on the Run prompt to see all of them. During an active CMD session, you can also press F7 to see the history of the commands. If all of a sudden, you are not able to see the saved history, what do you do?
If your Run command is not saving History in Windows 10, then this post will show you how to enable it and make Windows save Run command History, by tweaking the Registry.
Run command not saving History
Windows 10 has implemented a ton of privacy features which turned of some of the features which were previously enabled by default. Issues around audio not working, microphone in webcams turned off are few popular ones.
The same has happened with the Run command history. Let’s figure out how to fix this:
- Click on the Start button, and on the left of it look for a cog icon. This will open Windows 10 Settings.
- Then click on Privacy > General
- Turn on the option which says ‘Let Windows Track app launches to improve Start and Search results.’
If this is greyed out for you, then you need to change one key in the Registry.
Type Regedit in Run prompt, and navigate to the following key-
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced
Look for the Start_TrackProgs DWORD and then double-click to open and set the value to 1.
If the DWORD is not there, right-click on an empty area on the left pane, select New > DWORD. Enter the name as Start_TrackProgs and set the value as 1.
Click OK, and reboot your computer.
Now type few commands in the Run prompt, and use the arrow keys to see if they are saved in the list. I am sure this is going to solve your problem.
Whenever you update anything in Windows Privacy settings, it has its effect at many places. So make sure you choose your options wisely as it may affect your day to day usage.
PS: If Start Menu is not showing Recent app history, you can enable it from the Show Apps settings