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:
PS > cd HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ PS HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\> Remove-Item .\RunMRU\
Thanks for reading! You can follow me on Twitter @PrigentNico