JSI Tip 6200. How do I prevent Regedit from remembering the last key, without altering registry permissions?
Jerold Schulman
January 9, 2003
1 Min Read
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_USERSoftwareMicrosoftWindowsCurrentVersionAppletsRegedit
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.
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