【问题标题】:sql server installation errors regarding WMI service关于 WMI 服务的 sql server 安装错误
【发布时间】:2011-10-28 16:21:18
【问题描述】:

我正在尝试安装 SQL Server 2008,但在先决条件检查期间它总是失败 WMI 服务“失败”。 我去了事件查看器,在那里发现了这个错误。 “无法初始化 WMI 核心或提供程序子系统或事件子系统,错误号为 0x80040154。这可能是由于 WMI 版本安装错误、WMI 存储库升级失败、磁盘空间不足或内存不足。”

我知道我的硬盘驱动器中有很多可用空间。我也在谷歌搜索后尝试了一些东西,比如 WMIFIX.bat 文件。该文件运行良好,但没有解决问题。 有人遇到过这个问题吗?如果有,你有解决办法吗?

【问题讨论】:

    标签: sql-server wmi


    【解决方案1】:

    如果您有域,请以管理员权限运行此命令

    您可以在 Notbat 中以 .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
    

    如果您的问题没有解决,您可以使用管理员权限在命令提示符中执行此命令.. 您可以将它们复制并粘贴到记事本中,然后使用 .bat 扩展名重命名并运行文件..


    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
    

    暂停

    就这样,祝你有美好的一天!!!!!

    【讨论】:

      【解决方案2】:

      运行 WMI 诊断实用程序。以下是如何执行此操作的说明:

      Download WMIDiag.

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

      查看它的输出并发布它所说的内容。这会让您更好地了解正在发生的事情。

      Here is a reference for the above instructions.

      【讨论】:

      • 我阅读了错误日志报告,首先它很庞大,而且我真的不知道该怎么做,因为它没有说明哪些服务不起作用。如果有帮助,我也在使用 Vista 32bit
      【解决方案3】:

      我在尝试安装 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。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多