zoukankan      html  css  js  c++  java
  • windows不能显示此连接属性。windows management instrumentation (WMI) 信息可能损坏 (转,经测试成功)

    Windows Management Instrumentation (WMI)信息可能损坏错误修复

    在 查看“本地连接”的属性,并切换到“高级”选项卡后,提示:“Windows不能显示此连接的属性。Windows Management Instrumentation(Windows管理体系结构组件WMI)信息可能损坏。要更正此问题,请使用系统还原将Windows还原到一个较早的 时间点……

    解决方法:

    具体操作如下:第一步:右击“我的电脑”,选择“管理”菜单,依次定位到“计算机管理(本地)→服务和应用程序→服务”项,在右边窗口中找到“Windows Management Instrumentation”一项,双击打开,在弹出的窗口中单击“停止”按钮。

    第二步:进入本地磁盘的C:WindowsSystem32WbemRepository目录,删除该目录下的所有文件后,重新启动计算机。登录后,系统会重新在该目录拷贝建立所需要的文件,并且自动启动刚才停止的WMI服务。
    小提示.
    该 故障是由于C:WindowsSystem32WbemRepository目录下的文件损坏引起的,WMI会在每30~60秒之间调用该目录下 的文件,所以会收到上述错误提示信息。该故障还能引起的其他连锁反应有:无法查看“本地连接”的属性、运行msinfo32(查看系统信息)命令时系统无 响应、运行wmimgmt.msc命令打开WMI管理单元时系统提示“Failed to connect to local computer due to WMI:Generic failure”错误。

    如果还是不行或者服务里根本没有WMI这个的话:

    打开记事本,将以下代码保存为*.bat(文件名任意,后缀名固定)文件,在安全模式下打开运行。

    程序代码如下:

    @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
    

    运行后,系统开始自动修复、修复完成后重新启动计算机,问题解决。

  • 相关阅读:
    6.4 总结(关于正确率)
    POI2013 Bytecomputer
    BZOJ1485 有趣的数列
    PAM
    BZOJ1787 meet
    BZOJ3895 rock
    URAL 1996 Cipher Message 3
    BZOJ1468 Tree
    Javascript初识之数据类型
    Javascript初识之流程控制、函数和内置对象
  • 原文地址:https://www.cnblogs.com/itxdm/p/7896120.html
Copyright © 2011-2022 走看看