本站启用国内永久域名: www.LewenSky.cn,请大家使用新域名访问网站!
6月30

重建损坏的Windows Management Instrumentation(WMI)服务

| |
重建损坏的Windows Management Instrumentation(WMI)服务
当您使用 Windows XP 时,可能会收到以下错误信息之一:
Unable to view network properties.
Windows cannot display the properties of this connection.Windows Management Instrumentation (WMI) might be corrupted.
Unable to view System Information (MSinfo32)如果您尝试运行 Windows Management Instrumentation (WMI),您可能会收到以下错误信息:
Failed to connect to local computer due to WMI:Generic failure.注意:要运行 WMI,请在命令提示符下键入 wmimgmt.msc,然后按 Enter 键。
原因
当 %SystemRoot%System32WbemRepository 文件夹中的文件损坏时,会出现此行为。您可能会反复收到此错误信息,因为 Winmgmt.exe 每隔 30 至 60 秒查看一次这些文件。
解决方案
要解决此问题,请删除这些文件,然后在 %SystemRoot%System32WbemRepository 文件夹中重新创建它们。为此,请按照下列步骤操作:
引用
1. 单击开始,然后右键单击我的电脑。
2. 在快捷菜单上,单击管理。
3. 在计算机管理控制台的左窗格中,双击“服务和应用程序”。
4. 在“服务和应用程序”下,单击服务。
5. 在计算机管理控制台的右窗格中,找到然后右键单击 Windows Management Instrumentation。
6. 在快捷菜单上,单击停止。
7. 启动 Windows 资源管理器,然后找到 %SystemRoot%System32WbemRepository 文件夹。
8. 删除 %SystemRoot%System32WbemRepository 文件夹中的所有文件。
9. 重新启动计算机。重新启动计算机。

      当计算机重新启动时,删除的文件会重新创建出来。
      注意:当重新启动计算机时,Windows Management Instrumentation 服务会自动启动。
适用于:
Microsoft Windows XP Home Edition
Microsoft Windows XP Professional

方法二
当然更简单的方法就是用批处理的方式, 先打开个记事本,将下面的程序代码复制进去,再将后缀名改为.bat,然后重新启动计算机,到安全模式下运行此文件,再重启就好了~
程序代码如下:
@echo on
cd /d c:\temp
if not exist %windir%\system32\wbem goto TryInstall
cd /d %windir%\system32\wbem
net stop winmgmt
winmgmt /kill
if exist Rep_bak rd Rep_bak /s /q
rename Repository Rep_bak
for %%i in (*.dll) do RegSvr32 -s %%i
for %%i in (*.exe) do call :FixSrv %%i
for %%i in (*.mof,*.mfl) do Mofcomp %%i
net start winmgmt
goto End

:FixSrv
if /I (%1) == (wbemcntl.exe) goto SkipSrv
if /I (%1) == (wbemtest.exe) goto SkipSrv
if /I (%1) == (mofcomp.exe) goto SkipSrv
%1 /RegServer

:SkipSrv
goto End

:TryInstall
if not exist wmicore.exe goto End
wmicore /s
net start winmgmt
:End

      运行sfc /scsnnow也能修复
解决上面的问题后发现日志启动不了,
后来把%systemroot%/system32/config 下的AppEvent.evt, SecEvent.evt, SysEvent.Evt,dns.Evt的权限重设了一下就好了


出处:ゞo醉℡︶ㄣ
转载时必须以链接形式注明出处及本声明!


最新日志 随机日志 综合排行
  • OFFICE 2010 VOL...
  • 格式工厂绿色版 V2.90
  • Password Invent...
  • VideoCacheView ...
  • 电脑店U盘启动盘制作工具 3....
  • 阿里旺旺AliIM2011_7...
  • 极点五笔十周年纪念版
  • PPTV网络电视3.1.1.0...
  • WinRAR注册方法
  • 紫光华宇拼音输入法 6.8.0...
  • VMware 7.1.0 ro...
  • Windows XP SP3截...
  • QQ2010 SP3 1.56...
  • IECacheView v1....
  • PPTV网络电视 3.0.0....
  • USBDeview v1.80...
  • QQ2010 Beta(153...
  • PPTV网络电视 2.6.3....
  • 杏雨梨云U盘启动系统PE201...
  • CString的函数(收集)
  • 安装软件时出现系统提示&quo...
  • XP与XP无线共享设置(笔记本...
  • ZineMaker目录模板大集...
  • 没有不可能 轻松实现PDG转P...
  • CString转char的方法...
  • [转]MSDN精简版、MSDN...
  • 将IE、FIREFOR (火狐...
  • VC多线程编程(转)
  • MyEclipse6.5下载地...
  • Diskeeper 2010 ...
  • Tags: , ,
    阅读(4548) | 评论(1) | 引用(0)
    Robert Email
    2009/06/30 16:51
    刚刚出来租房了,和朋友合租,小区宽带,自己设置了一个交换机,一台做主机上网,就遇上这事了,还以为中病毒了呢,原来是文件坏了,运行了一下bat,就好了,呵呵,希望对有同样情况的朋友有帮助smile
    分页: 1/1 第一页 1 最后页
    发表评论
    表情
    emotemotemotemotemot
    emotemotemotemotemot
    emotemotemotemotemot
    emotemotemotemotemot
    emotemotemotemotemot
    打开HTML
    打开UBB
    打开表情
    隐藏
    记住我
    昵称   密码   游客无需密码
    网址   电邮   [注册]