关于WMI服务的SQL Server安装错误

问题描述 投票:1回答:3

我试图安装SQL Server 2008和预必要时检查其总是失败的WMI服务“失败”。我去的事件查看器,并在那里发现了这个错误。 “无法初始化WMI核心或提供商子系统或事件子系统与错误编号0x80040154的。这可能是由于WMI的严重安装的版本,WMI库升级失败,磁盘空间不足或内存不足。”

我知道有很多在我的硬盘可用空间。此外,我试着用搜索引擎喜欢WMIFIX.bat文件之后的几件事情。该文件运行良好,但没有解决问题。有没有人有这个问题?如果是这样,你有一个解决方案?

sql-server wmi
3个回答
2
投票

运行WMI Diag(诊断)实用程序。以下是说明如何做到这一点:

Download WMIDiag

要运行WMIDiag工具: 1.打开命令提示窗口。 (使用“以管理员身份运行”,如果适用于您的操作系统版本) 2.浏览到当您运行Wmidiag.exe所创建的文件夹wmidiag。 3.键入cscript wmidiag.vbs

查看的输出是什么,并张贴它说什么。这会给你发生了什么更好的指示。

Here is a reference for the above instructions


2
投票

如果你有一个域,以便运行此命令以管理员权限

您可以在不蝙蝠复制此命令与过去的.bat扩展名。并运行它们。

Rundll32 setupapi,InstallHinfSection Ndi-Steelhead 132 %windir%\inf\netrass.inf
Netsh firewall reset
sc config SharedAccess obj= LocalSystem password= "" type= interact type= own
sc config RpcSs obj= LocalSystem password= "" type= interact type= own
sc config RpcLocator obj= LocalSystem password= "" type= interact type= own
sc config winmgmt obj= LocalSystem password= "" type= interact type= own
sc config Wmi obj= LocalSystem password= "" type= interact type= own
net start winmgmt
net start Wmi
net start RpcSs
net start RpcLocator
net start WmiApSrv
netsh firewall add portopening TCP 135 "Open Port 135"
netsh firewall add portopening TCP 445 "Open Port 445"
netsh firewall add portopening TCP 139 "Open Port 139"
netsh firewall set opmode mode=DISABLE
shutdown /r

如果你的问题没有解决,你可以执行有管理员权限..你可以复制并粘贴到记事本,并与蝙蝠extention重新命名它的运行该文件此命令,在命令提示符..


net stop winmgmt
C:
cd %systemroot%\system32\wbem

rd /S /Q repository

regsvr32 /s %systemroot%\system32\scecli.dll
regsvr32 /s %systemroot%\system32\userenv.dll

mofcomp cimwin32.mof
mofcomp cimwin32.mfl
mofcomp rsop.mof
mofcomp rsop.mfl
for /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%s
for /f %%s in ('dir /b *.mof') do mofcomp %%s
for /f %%s in ('dir /b *.mfl') do mofcomp %%s
echo DONE reboot

暂停

只是它并有一个美好的一天!!!!!


0
投票

我面对这个问题时,我试图安装的SQL Express

对我来说,下面的步骤制定出这是我从http://mikeymurph.me/fix-wmi-service-error/简称

在PowerShell中运行在管理员模式下

PS C:\Windows\system32> winmgmt /verifyrepository
WMI repository verification failed
Error code:     0x80041002
Facility:       WMI
Description:    Not found

PS C:\Windows\system32> Winmgmt /resetrepository
WMI repository has been reset

现在再次尝试安装SQL Server。

© www.soinside.com 2019 - 2024. All rights reserved.