TechRepublic : A ZDNet Tech Community

IT Security

Host: Chad Perrin
Contact

A long time ago, in a land forgotten by time (before Microsoft Windows 95), Windows computers and their programs had .ini (configuration) files that stored information. These files determined how a program ran, its environment, and a host of other things.

Then the Windows Registry came onto the scene, with each key in the registry being similar to a bracketed heading in the old .ini file and values similar to entries under the .ini headings. However, registry keys can have nested subkeys with string or binary data that .ini files don’t support. Does the registry periodically need cleaning? Let’s take a look.

Hives and keys?

A registry hive is a group of keys, subkeys, and values in the registry that has a set of supporting files that contain backups of its data. The registry has gone through very little changes, so if you’re interested in learning more about it, check out “What’s all the buzz about registry hives?

If you’re not too familiar with the registry and how it works, there are a slew of different companies that would like to sell you a registry cleaner. Do you need to clean your registry? Let’s look at the facts.

What registry cleaners claim to do

What do registry cleaners claim to accomplish? Well, some of them claim to reduce the size of the registry and remove orphaned entries to speed up Windows. Sure, removing orphaned entries will reduce the size, but today’s hard drives have gigabytes of free space and 10 MB isn’t going to make a difference.

Besides, no one can give you a benchmark telling you how much speed you’ll gain. The reason they can’t tell you how much faster your system will run is because the size of the registry has nothing to do with the speed at which your machine operates.

The .ini files are flat text files, which require sequential searching. Registry files are database files, complete with indexing. If the index is up to date — and the system rebuilds it after each change, so it probably is — then size makes no difference.

Other registry cleaners say they’ll remove invalid registry entries that can cause errors in other installed programs. Programs keep registry entries in their own keys and rarely reference keys written by other programs. They also include an uninstall routine that deletes the entries when you remove the program.

Many older programs may not work this way, and maybe some of today’s programs don’t do the best job of clearing their entries. However, the system will never reference the data that they leave behind.

Some registry cleaners claim that they correct problems with Windows crashes and error messages. I’ve been an administrator on Windows machines since NT 3.5, and I’ve never traced a crash or error message to the registry — nor have I met any administrator who has.

Finally, some registry cleaners say they remove entries pointing to nonexisting files that are invalid and require deletion. If a registry entry points to a file that’s no longer present, of course you can delete them. However, if an entry points to something that doesn’t exist, then the system will never use it. Do you delete every unused file on your computer?

Who needs registry cleaners?

There are two types of people who possibly might need registry cleaners. The first are those people who open up the registry and make manual changes. These people know exactly what they’re doing; they follow precise instructions from the manufacturer, or they just like to tinker around and see what happens. This group might need to undo what they’ve done and could use a registry cleaner.

The second group of people who definitely need to clean their registries are programmers and developers. During the development of a program, you might go through hundreds of install/uninstall routines. It’s important to ensure that you’re working with a clean machine to make sure previous problems don’t interfere with the latest version of your software.

Final thoughts

If you’re a developer or someone who fiddles with the registry, then by all means find yourself a good registry cleaner. As for the rest of us, leave the registry alone, and don’t buy into the hype of needing to clean your registry.

Worried about security issues? Who isn’t? Automatically sign up for our free Security Solutions newsletter, delivered each Friday, and get hands-on advice for locking down your systems.

During his 24 years of service with the U.S. Marine Corps and the U.S. Army, Mike Mullins served as a community e-mail manager for his base while stationed in Germany. While stationed in the U.S., he was a WAN/LAN network, NT domain, Exchange, and security administrator for the Defense Information Systems Agency, and as a database administrator and assistant network administrator for the U.S. Secret Service. He has experience with Windows NT/2000/2003 networks, Exchange, intrusion detection devices, Symantec/Cisco firewalls, Cisco routing and switching in LAN and WAN environments, and Web site administration. His certifications include MCP, CCNA, MCSA, CISSP and DoD Level II Administrator. He is working on his master's and is looking forward to completing his MCSE and CCIE certifications. He is currently a consultant and serves as the Director of the Computer Emergency Response Team for the U.S. Department of Housing and Urban Development (HUD).

Print/View all Posts Comments on this blog

Registry cleaners have worked well for me. Photogenic Memory | 11/29/07
Registry Cleaners can and do work brianfagan@... | 11/30/07
I concur and..... mhbowman@... | 11/30/07
Article is Wrong mike@... | 11/30/07
RE: Article is Wrong The DOBC | 11/30/07
I'll give a couple of cent worth of credit... No name specified | 12/06/07
Unneeded Synthetic | 12/06/07
Vista Compatibility qballrail | 11/30/07
Reply is wrong Synthetic | 12/06/07
Response to the expert mike@... | 12/07/07
Couldn't agree more mreardon@... | 12/13/07
Wow, that sure is the way to answer someone... d_g_l_s@... | 12/08/07
Tell that to my Oracle software! kevaburg@... | 08/24/09
re: Windows Firewall and msconfig apotheon | 12/06/07
A small correction... No name specified | 12/06/07
A small correction... No name specified | 12/06/07
It's nice to know seanferd | 12/06/07
RegScrubXP burntfinger1@... | 11/30/07
Thanks Photogenic Memory | 11/30/07
temp files junkfoodpimp@... | 11/30/07
I use cleaners, but watch out! teamdave | 12/01/07
I use cleaners, but watch out! davekingsb@... | 12/06/07
Author must never receive spyware or trojans oledawg@... | 12/01/07
hmm...sheltered environment... No name specified | 12/06/07
Well put. Synthetic | 12/06/07
Right and you a CEO of how large an orginization? Synthetic | 12/06/07
Install/Uninstall Problems & Registry Cleaners uvbogden | 12/03/07
JV16 seanferd | 12/03/07
jv16 is pretty good, but I like regseeker bernalillo | 12/05/07
Ditto's on Regseeker caktusman@... | 12/05/07
Final version of regclean seanferd | 12/06/07
Excellent, thanks Seanferd. bernalillo | 01/02/08
Thanks for the heads-up. deepsand | 01/02/08
They have their place, but a small one. rclark@... | 12/06/07
I agree...... older **** | 07/30/09
First let me say.... older **** | 08/06/09
Although I do not use reg cleaners often The Scummy One | 11/29/07
Well said. Photogenic Memory | 11/29/07
I have used a few out there The Scummy One | 11/29/07
RE: I have used a few out there The DOBC | 11/30/07
Hmmm then maybe that wasnt it The Scummy One | 11/30/07
what tools did you use? golncor | 12/03/07
When I use Windows TiggerTwo | 11/29/07
Yep, CrapCleaner does an excellent job, Oktet | 11/30/07
Me too... JCitizen | 11/30/07
I second that.... FXEF | 12/03/07
Thirded isaac.bortman@... | 12/04/07
What is the problem if one *is* used? artfudd | 11/30/07
Any decent registry cleaner Tony Hopkinson | 11/30/07
I use CCleaner religiously, Oktet | 11/30/07
I agree sura.jan@... | 11/30/07
One of the few problems I haven't been able to fix myself.. JCitizen | 11/30/07
CCleaner and RegSeeker chris@... | 12/05/07
I do too adelacuesta | 12/06/07
This dude needs an anthiphsichotic slpctec@... | 05/10/08
Yes they can. Synthetic | 12/06/07
Can cause harm is not the same as should never be used. royhayward@... | 12/06/07
I have see system crashes from bad registry entrys since NT4 and 95 royhayward@... | 11/29/07
Yeah, I was wondering the same thing about this author? Photogenic Memory | 11/29/07
I use a really good registry cleaner cmoore55 | 11/30/07
which one is it? golncor | 12/03/07
Does Adam Brown have something against the author? tselliott@... | 11/30/07
Since Adam and I had the same reaction... royhayward@... | 11/30/07
Indicates Lack of Troubleshooting Depth David C | 02/07/08
Agreed. Rejecting these tools wholesale royhayward@... | 02/08/08
I question the authors experience on this issue. Photogenic Memory | 11/30/07
I had a VERY nasty registry bug. wyattbest@... | 08/23/09
AMEN bobm@... | 11/30/07
Rilly? Tony K | 11/30/07
Who said that? royhayward@... | 12/01/07
Oh really... Tony Hopkinson | 11/29/07
Mike, thanks for a really great post! williamjones | 11/29/07
Over promising Tony Hopkinson | 11/30/07
Hopefully without breaking it myluv2z@... | 11/30/07
A "well-reasoned argument?" deepsand | 12/05/07
Exactly What I Said... AstroCreep | 12/18/07
And, Symantec & AOL are merely poster boys ... deepsand | 12/18/07
RE: Why your registry doesn't need cleaning chauffeur2@... | 11/30/07
So why did you use the cleaner then.... Tony Hopkinson | 11/30/07
Maybe they don't over promise, but the are aggressively marketed... williamjones | 11/30/07
No argument Tony Hopkinson | 11/30/07
Agreed; performance isn't the issue for the need of this utility.(NT) JCitizen | 11/30/07
RE: Why your registry doesn't need cleaning BIGMACattack420 | 11/30/07
My Windo[z]e PC's, just work , Oktet | 11/30/07
I just did a regedit, Oktet | 11/30/07
none that work golncor | 12/03/07
Mac's Just Work?!? s31064 | 12/03/07
Yep TiggerTwo | 12/05/07
What a dire article. jshields@... | 11/30/07
Misleading article at its worst. john_galt@... | 11/30/07
compounding the error apotheon | 11/30/07
Mike Mullins!! - Get a rope! ]:) JCitizen | 11/30/07
I stand corrected! john_galt@... | 12/01/07
I forgive you (grin) (NT) JCitizen | 12/02/07
do you really work there? golncor | 12/03/07
Of course not... JCitizen | 12/03/07
I stand corrected! john_galt@... | 12/01/07
I stand corrected! john_galt@... | 12/01/07
Don't blame me for what Mike wrote (or vice versa). apotheon | 11/30/07
I disagree comp974@... | 11/30/07
A regcleaner fixed my problem Odd H. Sandvik | 11/30/07
RE: Why your registry doesn't need cleaning Blutonium Boy | 11/30/07
Cleaning is good pumaspirit2000@... | 11/30/07
RE: Why your registry doesn't need cleaning chivaago@... | 11/30/07
RE: Why your registry doesn't need cleaning Bgcooley@... | 11/30/07
jv16 powertools WNCSnoopy24 | 11/30/07
Give this a try TiggerTwo | 11/30/07
CCleaner's Great cathysgardens@... | 12/04/07
There are no dumb questions... (And Download Links) pumaspirit2000@... | 12/01/07
I couldn't disagree more with you Mike! jimt@... | 11/30/07
Meet the (former) administrator who has foringmar | 11/30/07
RE: Why your registry doesn't need cleaning jchorney@... | 11/30/07
How many of you use System Mechanic 6 or 7? fredsc@... | 11/30/07
Every since my customers started getting burned by ... JCitizen | 12/03/07
Why your registry DOES need cleaning! vohalloran@... | 11/30/07
Couldn't Agree More! WNCSnoopy24 | 11/30/07
MRUs seanferd | 12/06/07
No need to write scripts to rid MRUs... btljooz | 12/18/07
SS&D also allows for the removal of MRUs. deepsand | 12/18/07
It does? Then why... btljooz | 12/19/07
I believe you have to set it in advanced mode... JCitizen | 12/19/07
Checking for MRUs with SS&D deepsand | 12/19/07
No prob, JC ;) , And TYVM Deep... btljooz | 12/20/07
Good to know, I always thought AdAware wasn't totally.. JCitizen | 12/20/07
Author even disagrees with own hypothesis... d_g_l_s@... | 11/30/07
That's right... wmlundine | 11/30/07
Why I tend to agree with vohalloran@... GrumpyGGA@... | 12/03/07
There are good and bad registry cleaners ray@... | 11/30/07
You wrote RegVac? seanferd | 12/06/07
of course apotheon | 12/07/07
I shift around seanferd | 12/07/07
People feel strongly about this issue, but based on what? williamjones | 11/30/07
I have no strong feelings about cleaners Tony Hopkinson | 11/30/07
It's called PREVENTION as opposed to firefighting remoH | 12/29/07
Poor analogy bernalillo | 01/02/08
Registry Cleaning is firefighting Tony Hopkinson | 01/02/08
RE: Why your registry doesn't need cleaning Silver-Hawk | 11/30/07
Something is wrong here? fredsc@... | 11/30/07
Welcome to TR, Fred TiggerTwo | 11/30/07
Even tougher yesterday. (NT) JCitizen | 11/30/07
Are Registry Cleaners Needed stabp | 12/03/07
Be sure and check 6! JCitizen | 12/03/07
RE: Why your registry doesn't need cleaning dfarrich@... | 11/30/07
RE: Why your registry doesn't need cleaning GrumpyGGA@... | 11/30/07
Some Issues with TR as a whole frankmon@... | 11/30/07
Some "regcleaners" are a security risk as well as.. JCitizen | 11/30/07
RE: Some "regcleaners" are a security risk as well as.. davekingsb@... | 12/06/07
RE: Why your registry doesn't need cleaning Phasers | 11/30/07
Still a good article!! john_galt@... | 12/01/07
Sometimes a little disagreement is good for you. apotheon | 12/02/07
Suggestion :) seanferd | 12/06/07
seanferd's right; and you can start your thread easily by... JCitizen | 12/08/07
RE: Why your registry doesn't need cleaning harkiratsin@... | 12/01/07
I don't like leaving registry entries for malware.. JCitizen | 12/02/07
Defunct entries seanferd | 12/06/07
Spybot S&D may have this ability, but I haven't investigated it.. JCitizen | 12/07/07
SS&D btljooz | 12/18/07
I appologize for giving you MRU advice earlier as.. JCitizen | 12/19/07
Like I said, above...No Biggie, JC. ;) :D n/t btljooz | 12/20/07
RE: Why your registry doesn't need cleaning Presler | 12/03/07
Registry in Windows 3.11 TheSwabbie | 12/03/07
RE: Why your registry doesn't need cleaning skeech51@... | 12/03/07
Yeah, you pretty much said it. Photogenic Memory | 12/04/07
RE: Why your registry doesn't need cleaning MRMASTERCOM@... | 12/03/07
microsoft does it, why not us mike@... | 12/03/07
Yeah It Does; Ever Had to "Fix" a Computer That Had AOL on it? AstroCreep | 12/03/07
Oh man! JCitizen | 12/03/07
Yup; "A O Hell" is tough to get out of without a Reg cleaner. deepsand | 12/05/07
Talk about "invasive" seanferd | 12/06/07
Even when not installed, it may pervade the Registry Hive. deepsand | 12/12/07
So very true. seanferd | 12/13/07
AOL Dial-Up and Broadband behaved differently. deepsand | 12/15/07
This had not even occurred to me seanferd | 12/17/07
Earthlink was pulling something like that in the Denver.. JCitizen | 01/04/08
Re. orphaned Reg. entries & manual editing. deepsand | 12/15/07
Don't remember if I ever tried RFA seanferd | 12/17/07
Re. Extra, non-Registry related functions deepsand | 12/17/07
Thanks for the tip. normhaga@... | 12/18/07
normhaga: Re. RFA deepsand | 12/18/07
In a perfect world, perhaps; however, in the real one, bad advice. deepsand | 12/05/07
RE: Why your registry doesn't need cleaning bernalillo | 12/05/07
The biggest problem with most Reg. cleaners is a lack of user control. deepsand | 12/05/07
User Control john_galt@... | 12/06/07
Who is John Galt? ;) seanferd | 12/06/07
Where is John Galt? apotheon | 12/06/07
Now we just need to find seanferd | 12/06/07
Probably still in New York , as in the mind of Ayn Rand. (NT) JCitizen | 12/08/07
Howard? john_galt@... | 12/11/07
@john JCitizen | 12/19/07
John, JCitizen seanferd | 12/20/07
I always considered myself more as a libertarian... JCitizen | 12/20/07
What.... john_galt@... | 12/09/07
Ha-HA! :^0 seanferd | 12/09/07
Something like that. apotheon | 12/09/07
Speech... john_galt@... | 12/11/07
Shhhhhh.... seanferd | 12/12/07
Um, seanferd . . . apotheon | 12/12/07
That is what the ;) was for seanferd | 12/12/07
mea culpa apotheon | 12/13/07
Well, you never know. seanferd | 12/14/07
My pleasure! apotheon | 12/14/07
The man who said.... john_galt@... | 12/09/07
Re. "the novice customer" deepsand | 12/12/07
I have good performance using CCleaner on XP x64... JCitizen | 12/06/07
RE: Why your registry doesn't need cleaning gardoglee | 12/06/07
RE: Why your registry doesn't need cleaning DrMicro | 12/09/07
RE: Why your registry doesn't need cleaning bdlarson | 12/14/07
normhaga: Re. RFA Defragmenter deepsand | 12/18/07
What failed with RFA - deepsand normhaga@... | 12/19/07
Most peculiar. deepsand | 12/19/07
The test conditions. normhaga@... | 12/19/07
A possibility deepsand | 12/20/07
Standard tweak for any install I do. normhaga@... | 12/20/07
What about DPCs? deepsand | 12/22/07
Will check... normhaga@... | 12/24/07
As RFA does not Defrag on the fly, ... deepsand | 12/25/07
deepsand normhaga@... | 12/29/07
I've recently come to doubt the wisdom of frequent defragging. deepsand | 01/02/08
Deepsand. normhaga@... | 01/02/08
Re. RFA, but on a different note, ... deepsand | 01/02/08
Hummm. Good question. normhaga@... | 01/02/08
I tend to do the same thing... JCitizen | 01/03/08
Funny Idea royhayward@... | 01/03/08
Yup. normhaga@... | 01/03/08
I never miss an opportunity to bad mouth Symantec after.. JCitizen | 01/04/08
The difference between malware and crapware lies in the intent. deepsand | 01/07/08
"yet" apotheon | 01/08/08
Not necessarily true. deepsand | 01/08/08
Not necessarily . . . apotheon | 01/08/08
Does all crapware have the potential to threaten security? deepsand | 01/10/08
In that case . . . apotheon | 01/10/08
"than software people actually seek out of their own accord" deepsand | 01/11/08
You must be kidding. apotheon | 01/11/08
Your "re-phrasing" implies intent, which is where we differ. deepsand | 01/16/08
When did you decide to pretend you're me, and I'm you? apotheon | 01/18/08
Not an implication on my part, but an inference on yours. deepsand | 01/19/08
You might wish to take a view at George Ou's definitions .. deepsand | 01/19/08
three points apotheon | 01/20/08
All quite understandable. deepsand | 01/07/08
Re: ADS scanning seanferd | 12/19/07
Recent Windows Secrets article re. ADS deepsand | 12/19/07
Highly informative seanferd | 12/20/07
You are in great company re. lack of knowledge of ADS. deepsand | 12/22/07
Re. Windows Secrets deepsand | 12/22/07

What do you think?

White Papers, Webcasts, and Downloads

Recent Entries

TR on Twitter

Archives

TechRepublic Blogs



Administrator's Guide to TCP/IP, Second Edition
Maintain your critical TCP/IP system and ensure reliable, safe remote access. Get the expert advice and solutions to handle Windows networking, Cisco routing, documentation, and troubleshooting.
Buy Now
500 Things Every Technology Professional Needs to Know
Did you know Microsoft's RegClean does not work with XP but you can use shareware to clean your registry? Did you know most wireless access points don't have encryption enabled by default? Did you know there are 500 tidbits of information contained in TechRepublic's 500 Things Every Technology Professional Needs to Know that will help you become a successful IT professional.
Buy Now

SmartPlanet

Click Here