Home > Windows Server Tips > Windows Server Monitoring and Management > Troubleshooting registry-related tasks
Windows Server Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

WINDOWS SERVER MONITORING AND MANAGEMENT

Troubleshooting registry-related tasks


Rand Morimoto, Kenton Gardinier and Michael Noel
01.28.2004
Rating: -4.00- (out of 5)


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


The registry is the heart of the Windows operating system, but if you aren't careful, working with it can lead to a comatose OS. To insure that the heart of your finely tuned OS stays healthy you need to be proficient in deducing registry errors and backing up and restoring the registry. This article from InformIT's Windows Server Reference guide, takes a look at the various methods of repairing the registry.


Warning! Editing the registry may render the operating system of Server 2003 unusable, and you may even have to reinstall it! Be certain that a current backup is available. Any of the procedures described here are unsupported and are used at your own risk.

Do you think I'm going overboard with all these warnings? Think again. Server 2003 is about as robust an operating system as Microsoft has ever written, but just like heart surgery on an Olympic athlete, one wrong move can kill your patient.

So what should you do? Well, unlike a sprinter or basketball player, you can keep another heart around in case of complete failures. You do this by making a copy of the registry. The registry's usual home is in %systemroot%System32Config, where %systemroot% is the system's root directory. Usually, that's winnt.

Want to know exactly what went wrong? Compare the registry of your dead system with the backup to find differences. You can do this by dumping data from both to a text file, using the regedt32.exe menu command Registry, Save Subtree As. Next, use a text-compare tool such as windiff.exe from the Microsoft Resource Kit (ResKit) to contrast the two.

You can also use windiff.exe to compare desired and undesired registry keys. If you modify the output of the regedit.exe export registry file, cut-and-paste from a good one, and then import that file to the dead machine, you might be able to repair the problem. Depending on the problem, not accounting for variations in directory structures, user accounts, hardware and configuration, IP addresses, etc. could create more problems than are solved.

Keep in mind that several subtrees and keys are linked to others. Go into troubleshooting/repair sessions with a planned purpose and armed with knowledge. Whatever you do, never, ever use Microsoft Word or any other word processor to edit the files before cutting-and-pasting data from the text backup file. All word processors add their own instructions to a document to describe its formatting and so on. Although invisible to the eye in the word processing program, they're visible to your operating system, and your revised registry is guaranteed to fail as a result.

Once you save the key to a file and make the changes, hopefully you'll have solved your problem. If not, restore the key to its pre-fix settings. Even if the change didn't appear to hurt anything, if you don't restore the file to its original condition you may be introducing a new problem that will hide the old one.

Of course, you can always restore a previously working registry by using Backup and Emergency Repair. This is a good technique—with one big drawback. If there have been any system changes not accounted for in the backup, you stand to lose those changes on reboot. That may mean that you'll need to reinstall software, re-create user accounts and profiles, update drivers, and so on.

The solution? It comes in two parts: One, edit the registry directly only when you've run out of other options using higher-level management tools. Two, make daily backups of your registry. Trust me, you'll be glad you did.


Read more about the registry and other Windows issues at InformIT.


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.




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


RELATED CONTENT
Microsoft Windows Server 2003 Administration
How to install Windows Server 2003 patches when offline
Validating Windows server clusters with ClusPrep
Exploring the Windows Server 2003 Resource Kit: Clusfileport.dll
Exploring the Windows Server 2003 Resource Kit: Cmdhere.inf and CMGetCer.inf
Windows server security management: Security expert roundup
Windows server management with Remote Desktop
Avoid DC restoration problems with authoritative restore
Exploring the Windows Server 2003 Resource Kit: Confdisk.exe
Exploring the Windows Server 2003 Resource Kit: Compress.exe and Expand.exe
Exploring the Windows Server 2003 Resource Kit: Clusterrecovery.exe
Microsoft Windows Server 2003 Administration Research

Windows Server Monitoring and Administration
Moving dynamic disks to a new Windows server
A first look at Storage Explorer for Windows Server 2008
Tips for Windows domain controller optimization
Take control of server clusters with Microsoft's ClusDiag tool
Analyze server history with new tool in Windows 2008
Determining the cause of Windows server hang
Preparing to troubleshoot a hung Windows server
Why do Windows servers hang?
Microsoft tool simplifies Windows server cluster configuration
Exploring the Windows Server 2003 Resource Kit: Clusfileport.dll

Windows Server Monitoring and Management
How does Microsoft Hyper-V rate?
Network Access Protection in Windows Server 2008: Should you care?
Just what does Microsoft Hyper-V have to offer?
Considerations in building GeoClusters for Windows Server 2008
Can Microsoft really make an impact with Hyper-V?
Easing security concerns with Server Core for Windows 2008
Understanding quorum in Windows Server 2008 clustering
What's there to hate about Windows Server 2008?
Windows PowerShell: A backdoor to malware?
When (and when not) to use Windows server failover clustering

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

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
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




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