Discussion Locked

Registry opens to last key

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How can I keep regedit from opening to the last key I was viewing?

7 replies

by thoreau

The Windows 2000 and ME version of regedit includes a new feature to remember the last key that was accessed before the program was closed. This script stops regedit from remembering the last key and instead opens regedit at the top "My Computer" folder.

Create a shortcut on your desktop to this script and double-click on it to launch regedit without the last key memory.

To copy the script either use the download link above or cut and paste the following code into a text document and name it regedit.vbs

' Begin code for regedit.vbs

Dim WSHShell
Set WSHShell=Wscript.CreateObject("Wscript.Shell")
WSHShell.RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit\LastKey"
WSHShell.Run "REGEDIT"

' End code

by Former member

Use regedit and drill down to

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit

Double-click the LastKey value name in the right hand pane and clear the string. Press OK.

This discussion is closed to new replies.