系统没有WMI服务怎么办、WMI错误修复方法
时间:2022-09-24 05:22:06
WMI是一项核心的Windows管理技术,WMI作为一种规范和基础结构,通过它可以访问、配置、管理和监视几乎所有的Windows资源
WMI是一项核心的Windows管理技术,WMI作为一种规范和基础结构,通过它可以访问、配置、管理和监视几乎所有的Windows资源,比如用户可以在远程计算机器上启动一个进程;设定一个在特定日期和时间运行的进程;远程启动计算机;获得本地或远程计算机的已安装程序列表;查询本地或远程计算机的Windows事件日志等等。
系统没有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
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Win11安装不了是因为什么?
![](https://img.aspxhome.com/file/2023/27/a238306_0s.png)
如何修复Win11上的时钟不同步?Win11时钟不同步修复方法
![](https://img.aspxhome.com/file/2023/27/a236858_0s.png)
Win10快速预览版升级Build 15055下载失败提示0x80070228的解决办法
![](https://img.aspxhome.com/file/2023/28/a242439_0s.jpg)
word怎么在页眉中添加图片 word文档在页眉添加图片的方法教程
![](https://img.aspxhome.com/file/2023/8/24108_0s.jpg)
Excel中MULTINOMIAL函数的语法和用法
![](https://img.aspxhome.com/file/2023/2/a155882_0s.jpg)
excel 分段统计应用实例教程 excel统计多个区间对应人数
![](https://img.aspxhome.com/file/2023/8/a162538_0s.jpg)
如何在Word中使用突出显示的功能
Win7屏幕色彩校准怎么做?Win7校准屏幕颜色的方法
![](https://img.aspxhome.com/file/2023/28/a243932_0s.jpg)
Mac新手使用技巧——Mac电脑如何使用“隔空投送”
![](https://img.aspxhome.com/file/2023/7/a204217_0s.png)
轻松制作三维动画的必备神器,千万不要错过哦!
![](https://img.aspxhome.com/file/2023/4/a210124_0s.jpeg)
怎样给Excel2007设置表格密码?
如何在Excel插入打勾复选框 Excel插入打勾复选框图解教程
![](https://img.aspxhome.com/file/2023/4/a155714_0s.jpg)
Excel如何提取一串数字中的几位数字(字符)
Win7系统下蓝牙耳机连接电脑听音乐的详细图解
![](https://img.aspxhome.com/file/2023/29/a255145_0s.jpg)
Win10 10575预览版正在内部测试中 即将发布
![](https://img.aspxhome.com/file/2023/28/a246724_0s.png)
Win10系统任务栏假死怎么办?教你用指令来修复无响应问题
![](https://img.aspxhome.com/file/2023/3/48943_0s.jpg)
Excel 中如何从Vlookup函数查找中返回满足条件的行号
![](https://img.aspxhome.com/file/2023/7/a161917_0s.png)
mac清理日志解决终端启动慢的问题
WPS文档中给形状添加透视投影效果的图文教程
![](https://img.aspxhome.com/file/2023/5/a165795_0s.jpg)
WPS文字中怎么绘制田字格操作方法教学
![](https://img.aspxhome.com/file/2023/6/a182596_0s.png)