Home > Windows Server Tips > Windows Systems and Network Administration > Repairing damaged WMI
Windows Server Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

WINDOWS SYSTEMS AND NETWORK ADMINISTRATION

Repairing damaged WMI


Serdar Yegulalp, Contributor
01.18.2006
Rating: -4.86- (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


WMI, or Windows Management Instrumentation, is a Microsoft Windows component that publishes information about system objects. It's commonly used to perform tasks like gathering statistics about system behavior or retrieving metadata about the computer or its applications (such as reading system logs, obtaining or modifying Registry values, manipulating remote desktops, and so on).

Unfortunately, it's easy for WMI to become damaged, and if that happens, the system may begin behaving very strangely. You may start seeing errors, some of them with the notice "Windows Management Instrumentation might be corrupted." (That message usually occurs if you're trying to edit WMI properties.)

One quick way to find out if WMI is broken is to enter wmimgmt.msc into the Start | Run box. This launches the WMI Management Infrastructure console, and if you get an error doing this, odds are WMI is broken.

On to the next question: If WMI is broken, how can it be fixed? The only Microsoft-endorsed way to repair WMI is to reinstall Windows. But for most of us, that isn't a practical approach. Another method is to force WMI to repair itself. Of all the WMI repair techniques I've seen, this five-step approach seems to work the best. (However, it may not work on all systems.)

1. At the command line, type net stop winmgmt. You may get a warning that other services need to be stopped as well; type Y and continue.
2. Open Explorer and go to the folder called %SystemRoot%\System32\WBEM\Repository.
3. Delete tha...


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



RELATED CONTENT
Microsoft Systems and Network Troubleshooting
DNS troubleshooting best practices
Troubleshooting tops Windows admins' most tedious tasks
Troubleshooting Windows application crashes or hangs
Troubleshooting poor Windows logon performance in Active Directory environments
Immediate steps for Windows disaster recovery
Quick hits: Troubleshooting service account failure, batch job execution
Case Study: Troubleshooting Windows service dependency failures
Troubleshooting common Windows service failures
How can I boot to a floppy and receive a command prompt without being directed to the system drive?
RRAS utility in Windows Server 2003 traces network problems

Windows Management Instrumentation (WMI) Scripting
Windows scripting tutorials for systems administrators
Windows scripting secrets for disk quota management
Working with WMI providers to PowerShell
Customizing a mapped drive inventory
Vista's Windows kill switch: What to do if RFM kicks in
Why you should care about Windows PowerShell
Defrag script for all volumes
Christa Anderson's Scripting School for Windows administrators
Microsoft tool exposes WMI namespaces and properties
Microsoft utility helps admins diagnose WMI services

Windows Systems and Network Administration
How to use Group Policy to centralize system configurations
Troubleshooting Windows application crashes or hangs
Converting VMware ESX machines to Hyper-V format
Using DFSR for SYSVOL replication in Windows Server 2008
Top 25 Windows PowerShell commands for administrators
Key DFS improvements in Windows Server 2008 R2
Free Windows security tools every admin must have
Group Policy makes strides in Windows Server 2008 R2
Quick tips for troubleshooting NTFS permissions
Common causes of Windows server security vulnerabilities

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


t folder and everything in it.
4. Reboot the system normally.
5. On the next login, open a command prompt and type the following commands in this order:
winmgmt /clearadap
winmgmt /kill
winmgmt /unregserver
winmgmt /regserver
winmgmt /resyncperf

This procedure will force the WINMGMT service to re-register itself as well, although, if WMI is damaged, re-registering can be a problem. If this approach does not work, an in-place upgrade (i.e., a reinstall) might be required.

(If you're curious about the full potential of WMI, Microsoft's own technical documentation about how to use it comes with plenty of examples of free scripts.)


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 SearchWinSystems.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 ExchangeTipsNewsMultimediaWhite 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