PoshTip #51 – Clear Windows Run History

Windows stores the commands that you have executed from the Run window in the registry. It means that you can easily clear this history.

Click on the drop down list in Run window:

Open the Registry Editorand navigate to the following path:

You can change the MRUList value to create your own history order. You also can create an entry directly from the registry but remember to add the « \1 » at the end of the value.

Now you can easily clear the history using PowerShell:

 

 

Thanks for reading! You can follow me on Twitter @PrigentNico

 

About Nicolas 230 Articles
I work as a System Engineer, based in Switzerland with a primary focus on Microsoft technologies. I have 7 years experience in administering Windows Servers. . I am a Microsoft MVP for Cloud & Datacenter Management. I also received the PowerShell Hero 2016 award by PowerShell.0rg. And finally, I am "MCSA: Windows Server 2012" and "Administering & Deploying SCCM" certified.