系统没有WMI服务怎么办,WMI错误修复方法
答案:2 悬赏:30 手机版
解决时间 2021-02-19 17:32
- 提问者网友:世勋超人
- 2021-02-18 22:59
系统没有WMI服务怎么办,WMI错误修复方法
最佳答案
- 五星知识达人网友:鸽屿
- 2021-02-19 00:23
建议用心蓝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
或者系统没有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
全部回答
- 1楼网友:轻雾山林
- 2021-02-19 01:21
是一个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
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯