Home
Windows Registry Tweaks
Index Page
Hardware
Disk Drives
Mice and Keyboards
Modems and Communications
Printers and Plotters
Processor and Motherboard
Video and Graphics
Network
Clients
Internet and Remote Access
Protocols
TCP/IP
WINS
Servers
Security
Active Desktop
Control Panel
Display
Network
Passwords
Printers
System
Desktop and Explorer
Login and Authentication
Network
Privacy
Remote Access
Start Menu and Taskbar
Documents and Folders
System
Software
Internet Explorer
Appearance
Network and Connections
Search Features
Security
Media Player
Microsoft Office
Outlook
Netmeeting
Outlook Express
pcAnywhere
Windows CE
Windows Messenger
Tips and Tricks
Configuration Files
AUTOEXEC.BAT
BOOT.INI
CONFIG.SYS
MSDOS.SYS
SYSTEM.INI
Customization
Keyboard Shortcuts
Windows
Accessories
Command Processor
Dr Watson
Registry Editor
Task Scheduler
Windows Installer
Appearance and Display
Icons and Fonts
Menus And Windows
Desktop
Explorer
File System
Caching and Memory
Files and Shortcuts
Maintenance
Login and Authentication
Start Menu and Taskbar
Documents and Folders
Taskbar
Startup and Shutdown
System
Scripts
Services
Windows File Checker
Troubleshooting
Crash Control
Logging
Repair
Registry FAQ
Dreamage
Book List
Downloads
Support Forums
Newsletter
Download Updates
Subscribe
Registry Guide for Windows Registry Guide for Windows
Part of the Dreamage Network
Dreamage Network and Software
Registry tweaks, tricks & hacks to optimize, enhance and secure Microsoft Windows.

Prevent Regedit from Saving the Last Location (Windows 2000/XP)
Category: Home > Windows > Accessories > Registry Editor

By default, when you start Regedit.exe, it displays the last key you accessed the last time you ran Regedit. This tweak describes how to prevent this behavior.

  1. Open your registry using Regedt32.exe and find the key:
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit]
  2. Double-click the "LastKey" value, clear the entry in the String box, and then click OK.
  3. Highlight the key, and then click Permissions on the Security menu.
  4. Remove Full Control access for any user who does not want Regedit to display the last key the user accessed in the previous Regedit session, and then click OK. (Please note that if permissions cannot be removed, they may need to be denied.)
  5. Quit Regedt32.exe.

Note: If you do not want to deny access to users, there is an easy way to close all keys and hives after you start Regedit. After you start Regedit, press and hold down SHIFT+LEFT ARROW to collapse all the entries back to the My Computer entry. You must do this each time you start Regedit.

Registry Editor Example
|NameTypeData|
|(Default)REG_SZ(value not set)|
|LastKeyREG_SZ|
-
|HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit|
-

Settings:
User Key: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\
Regedit]

Name: LastKey
Type: REG_SZ (String Value)

Disclaimer: Modifying the registry can cause serious problems that may require you to reinstall your operating system. We cannot guarantee that problems resulting from modifications to the registry can be solved. Use the information provided at your own risk.

Last Modified: October 10, 2002

 Return to Index Copyright © 1998-2003. All Rights Reserved.  License