Home > Windows Server Tips > > RegDelNull deletes undeletable Windows Registry keys
Windows Server Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 


RegDelNull deletes undeletable Windows Registry keys


Serdar Yegulalp, Contributor
01.09.2006
Rating: -4.00- (out of 5)


Expert advice on Windows-based systems and hardware
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


Windows administrators rely on the simplest and most common tools to get a job done for one simple reason -- because they work. For instance, REGEDIT isn't a sophisticated program, but if all you need to do is make one quick change to the Windows Registry, it will do the job just fine.

However, there are times when, because of a problem with the key you're working with, REGEDIT won't let you make that one quick change. One instance of this is when you try to delete a Registry key that has an embedded null character in its name.

(An embedded null is a character with a binary value of zero -- not something you can type from the keyboard most of the time, but you can certainly create it programmatically.) An embedded null can wreak havoc with Registry editors, since most of them are not programmed to recognize nulls in key names.

Some "undeletable" Registry entries are merely entries that have null characters. (The inability to delete them conventionally seems to be a quirk of the Win32 API, the programming interface used by most Windows applications. After all, the Native API used by the Windows kernel internally does recognize null characters in Registry entries.)

If you're facing this problem, take a look at RegDelNull,a utility written by Mark Russinovich of Sysinternals, a Web site ...


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


for freeware, utilities, technical information and source code related to Windows NT/2000/XP/2003. This command-line utility lets you delete Registry entries with embedded nulls.

To use it, pass a Registry path as a command parameter (such as HKLM for HKEY_LOCAL_MACHINE), then provide an –s switch to tell the program to recursively search all Registry entries beneath it. As it finds each Registry entry with an embedded null character, it will prompt you to delete it. Each time the program finds a matching Registry entry, it prints the name with an asterisk (*) to denote where the null character is.


Serdar Yegulalp is editor of the Windows Power Users Newsletter. Check it out for the latest advice and musings on the world of Windows network administrators -- and please share your thoughts as well!


More information from SearchComputing.com

Rate this Tip
To rate tips, you must be a member of SearchWindowsServer.com.
Register now to start rating these tips. Log in if you are already a member.




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Server Room Design - Planning, Cooling, Maintenance
HomeTopicsBlogsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2004 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts