In tip 2358 ยป How do I prevent Regedit from using the last state, we altered registry permissions to prevent regedit from remembering the last key.

To prevent Regedit from remembering the last state, without the need to alter permissions:

1. Create a shortcut to a regedt.bat file that contains:

@echo off
setlocal
set regedt=HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit
reg.exe ADD %regedt% /v LastKey /d "" /f>nul 2>&1
if NOT %ERRORLEVEL% EQU 0 @echo %regedt% NOT found.
start regedit.exe
endlocal

2. Set the Icon of this shortcut to Regedit.exe.

3. Set the shortcut to run minimized.

NOTE: Reg.exe is from the Windows 2000 Support Tools or the Reg.exe that is built into Windows XP and later.