How can I prevent regedit from remembering the last registry key location I accessed under Windows XP?

John Savill

October 16, 2002

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A. In a previous FAQ, I explained how to write a script to automatically reset the last key location every time you log on to the OS. Another option for clearing the last registry key accessed is to use registry permissions to disable Write access to the key. To do so, perform the following steps:

  1. Start the registry editor.

  2. Navigate to the HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionAppletsRegedit registry subkey.

  3. Select LastKey.

  4. If you're working in XP, open the Edit menu and select Permissions; if you're working in Win2K, open the Security menu and select Permissions.

  5. Remove Full Control access and grant Read-only access.

  6. Click OK.

You'll need to repeat this process for all users who don't want regedit to remember the last key location they accessed.

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like