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:
- Start the registry editor.
- Navigate to the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit registry subkey.
- Select LastKey.
- 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.
- Remove Full Control access and grant Read-only access.
- 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.