瑞星卡卡安全论坛

首页 » 技术交流区 » 系统软件 » 求救
lyq_145 - 2008-9-25 19:08:00
wmi损坏,如何修复 ?不想重装系统,系统还原一直关着

用户系统信息:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)
激流涌进 - 2008-9-25 19:14:00
类似这种情况是由于C:\Windows\System32\WbemRepository目录下的文件损坏引起的,解决方法有两步:
1、右击"我的电脑",选择"管理"菜单,依次定位到"计算机管理(本地)服务和应用程序服务"项,在右边窗口中找到"Windows Management Instrumentation"一项,双击打开,在弹出的窗口中单击"停止"按钮。
2、进入本地磁盘的C:WindowsSystem32Wbem\Repository目录,删除该目录下的所有文件后,重新启动计算机。登录后,系统会重新在该目录拷贝建立所需要的文件,并且自动启动刚才停止的WMI服务 。
楼主试试!:default7:
最爱阿财 - 2008-9-25 23:16:00
将下列代码存入记事本然后保存为.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
1
查看完整版本: 求救