永发信息网

系统没有WMI服务怎么办.WMI错误修复方法

答案:2  悬赏:20  手机版
解决时间 2021-12-23 05:00
  • 提问者网友:我没有何以琛的痴心不悔
  • 2021-12-22 10:51
系统没有WMI服务怎么办.WMI错误修复方法
最佳答案
  • 五星知识达人网友:西岸风
  • 2021-12-22 11:31
是一个wmi服务损坏了,应该修复,把下面这段代码随便新建一个txt文件放在一个地方,然后把后缀名改为.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楼网友:酒醒三更
  • 2021-12-22 11:40
建议用心蓝wmi服务修复工具。 或者系统没有wmi服务,或网路适配器共享时提示wmi错误等均可使用。 使用方法以下方法:复制并保存为wmi.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
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯