Winsw 安装JAVA服务WMI错误解决方法
winsw
A wrapper executable that can run any executable as a Windows service, in a permissive license.
项目地址:https://gitcode.com/gh_mirrors/wi/winsw
免费下载资源
·
安装服务时候出现上图所示错误,尝试解决办法
1、 新建文本文档复制下列命令文本
@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
pause
2、将后缀改为.bat 双击运行,按提示按Y进行。
之后重新尝试安装服务,如果还不行重启电脑试试
GitHub 加速计划 / wi / winsw
11.74 K
1.55 K
下载
A wrapper executable that can run any executable as a Windows service, in a permissive license.
最近提交(Master分支:1 个月前 )
e4cf507b
1 年前
e0d4fcbe
* Update xml-config-file.md
* Update xml-config-file.md
---------
Co-authored-by: Next Turn <45985406+nxtn@users.noreply.github.com> 1 年前
更多推荐
已为社区贡献6条内容
所有评论(0)