• 安装SQL Server2014 :规则”Windows Management Instrumentation (WMI)服务 “失败


    GPS平台、网站建设、软件开发、系统运维,找森大网络科技!
    https://cnsendnet.taobao.com
    来自森大科技官方博客
    http://www.cnsendblog.com/index.php/?p=1699

    装上win10后,需要用到SQL Server ,我就按照平常一样去装SQL 2008,不过遗憾的是,貌似不兼容。网上查了一下说SQL2014好像可以,我就下载一个SQL2014去装,不过还是老出现问题,就是下图的问题:

     中间花了不少时间去试着解决这个问题,大概有三次,都没有成功。还好专业课要用,让我没有就这样放弃寻找解决方法。最后,Thanks god .让我在一个网页的最底下找到了原因和解决方法,完美解决了无法启动WMI服务的问题。

     

    原因:Windows Management Instrumentation(WMI)服务遭到损坏。

     

    解决方法:重建损坏的Windows Management Instrumentation(WMI)服务。将这段代码复制到txt文档中,然后将txt文档改成.bat格式,再右击这个.bat格式的文件,以管理员身份运行,等待运行完成(代码静止),再次安装SQL就没问题了。

     

    @echo on

    cd /d c: emp

    if not exist %windir%system32wbem goto TryInstall

    cd /d %windir%system32wbem

    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

     

     晒一下我装完成后的效果:

    总结:结合之前的经验,我得出两条想法:一、永远不要提前退出,无论是在团队中还是游戏里,亦或是找问题时。二、只要有问题就一定可以解决。

    GPS平台、网站建设、软件开发、系统运维,找森大网络科技!
    https://cnsendnet.taobao.com
    来自森大科技官方博客
    http://www.cnsendblog.com/index.php/?p=1699

  • 相关阅读:
    linux 短信收发
    sama5d3 环境检测 adc测试
    【Codeforces 723C】Polycarp at the Radio 贪心
    【Codeforces 723B】Text Document Analysis 模拟
    【USACO 2.2】Preface Numbering (找规律)
    【Codeforces 722C】Destroying Array (数据结构、set)
    【USACO 2.1】Hamming Codes
    【USACO 2.1】Healthy Holsteins
    【USACO 2.1】Sorting A Three-Valued Sequence
    【USACO 2.1】Ordered Fractions
  • 原文地址:https://www.cnblogs.com/cnsend/p/15170669.html
Copyright © 2020-2023  润新知