windows management instrumentation服务未启动-解决脚本
2016-01-20 11:28
337 查看
桌面新建.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
相关文章推荐
- MySQL 5.7.10 免安装配置
- kuangbin_MST C (POJ 2031)
- 【Android应用开发】Android 蓝牙低功耗 (BLE) ( 第一篇 . 概述 . 蓝牙低功耗文档 翻译)
- 数据库事务解析及事务四个特性
- 数据库事务解析及事务四个特性
- quartz储存方式之JDBC JobStoreTX和JNDI JobStoreCMT
- quartz储存方式之JDBC JobStoreTX和JNDI JobStoreCMT
- Masonry介绍与使用实践:快速上手Autolayout
- 【Android应用开发】Android 蓝牙低功耗 (BLE) ( 第一篇 . 概述 . 蓝牙低功耗文档 翻译)
- <设计模式>系列汇总 By python and C++
- 【LEETCODE】274-H-Index [Python]
- Uplinkfast / Backbonefast / Portfast
- 构建轻量级的Table View注意事项[UIKit]
- React-Native post和get请求
- SQL SERVER BCP导入导出
- 1.继承实例分析。。。
- 很好用的canvas
- jsonp跨域问题
- JS 添加千分位,测试可以使用
- jsp标签库(jstl)