Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Windows 7 Pro machine that won't maintain a record of all the commands I enter via Start -> Run. I have UAC disabled, but there is still some setting that's wiping out that list right after I enter a command. How can I tell the OS to preserve the command history?

share|improve this question

migrated from Feb 22 '10 at 15:06

This question came from our site for system and network administrators.

This sort of question would be better suited to – Sam Feb 22 '10 at 10:43
up vote 2 down vote accepted

I had the same problem and was able to get the recent items in the Run command to be kept by double-clicking the Start Menu, Properties, Start Menu tab and checking "Store and display recently opened programs in the Start menu".

share|improve this answer
That worked. I had that option unchecked. – Chris Tybur Nov 4 '10 at 14:44

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced Start_JumpListItems

This is the recent opened programs list, check to make sure this number is set to something more then say 0, it can be set as high as 60.

This also sets the recent programs list in the start menu.

Also make sure you are not nuking it via group policy. (gpedit.msc)

share|improve this answer
I didn't have that value in my registry so I added it. It does control the number of items in the Start menu, but doesn't seem to affect saving the command line history. There isn't any special group policy being applied, but maybe there's one that by default is clearing the Run history. Any idea what that policy might be called? – Chris Tybur Feb 23 '10 at 1:45

I had this same issue and there was an old GPO clearing out my run command history.

In the GPO editor it's under User Configuration -> Policies -> Administrative Templates -> Start Menu and Taskbar. The policy is called "Clear history of recently open documents on exit".

"Disabled" or "Not Configured" will keep your Recent Items and Jumplists intact.

share|improve this answer
Pardon my ignorance. What is a GPO? – Kazark Mar 12 '13 at 20:47
@Kazark GPO is short for Group Policy Object. It's the settings that admins can use to restrict or configure a group of computers. – frozenkoi Mar 12 '13 at 21:10
Thanks @frozenkoi. +1 to your comment and Tim's answer. – Kazark Mar 12 '13 at 21:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.