解决Systeminfo和MSinfo32异常问题:重置WMI的步骤
在使用Windows服务器时,我们可能会遇到Systeminfo和MSinfo32工具无法正常工作的情况。这些问题通常与Windows管理工具集(WMI)的异常有关。本文将介绍如何通过重置WMI来解决这些问题。
1. 问题背景
Systeminfo和MSinfo32是Windows系统中用于收集系统信息的重要工具。当它们无法正常运行时,可能是由于WMI(Windows Management Instrumentation)的配置或存储库损坏所致。
2. 重要提示
在执行以下修复步骤之前,强烈建议您对系统进行快照备份,以避免意外损坏或数据丢失。
3. Windows Server 2008R2修复步骤
- 右击
cmd
,选择以管理员身份运行。 依次执行以下命令:
sc config winmgmt start= disabled net stop winmgmt /y cd %windir%\system32\wbem rename repository repository.old for /f %s in ('dir /b *.dll') do regsvr32 /s %s wmiprvse /regserver sc config winmgmt start= auto net start winmgmt for /f %s in ('dir /b *.mof *.mfl') do mofcomp %s
4. Windows Server 2012及以后版本修复步骤
- 右击
cmd
,选择以管理员身份运行。 依次执行以下命令:
sc config winmgmt start= disabled net stop winmgmt /y %systemdrive% cd %windir%\system32\wbem ren repository repository-backup for /f %s in ('dir /b *.dll') do regsvr32 /s %s sc config winmgmt start= Auto net start winmgmt dir /b *.mof *.mfl | findstr /v /i uninstall > moflist.txt & for /F %s in (moflist.txt) do mofcomp %s
5. 完成后的检查
修复完成后,重新启动计算机,并尝试运行Systeminfo和MSinfo32工具,检查它们是否已恢复正常。
通过上述步骤,您可以有效地解决Windows Server中Systeminfo和MSinfo32工具无法正常工作的问题。记住,在执行任何系统级别的更改之前,备份是至关重要的。