Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
From the event logs, we found the following error events that indicate corrupted WMI service.
Performance Module could not find a performance counter
事件類型: 警告
事件來源: WinMgmt
事件類別目錄: 無
事件識別碼: 60
描述:
WMI ADAP was unable to process the performance libraries: 0x80041001
事件類型: 警告
事件來源: Health Service Modules
事件類別目錄: 無
事件識別碼: 10102
描述:
In PerfDataSource, could not resolve counter Web Service, Current Connections, _Total. Module will not be unloaded.
Solution
=======
To rebuild all Performance counters including extensible and third party counters in Windows Server 2003, type the following commands at a command prompt.
Press ENTER after each command.
cd windowssystem32
lodctr /R
Note /R is uppercase.
Windows Server 2003 rebuilds all the counters because it reads all the .ini files in the C:Windowsinf folder for the English operating system.
如果執行後問題依然存在,請您使用修復 WMI repository 的方法嘗試將問題解決。
1. Disable the WMI service:
NET STOP WINMGMT
2. Reboot Server
3. Backup the WMI repository:
- Copy the folder "%windir%system32wbemRepository" to a different folder.
- Rename the folder "%windir%system32wbemRepository" to "Repository000"
4. Enable the WMI service:
NET START WINMGMT
5. Reboot Server
6. Monitor the server and check if the problem is fixed. If not, run the following batch commands to repair WMI:
@echo off
sc config winmgmt start= disabled
net stop winmgmt /y
%systemdrive%
cd %windir%system32wbem
for /f %%s in ('dir /b *.dll') do regsvr32 /s %%s
wmiprvse /regserver
winmgmt /regserver
winmgmt /clearadap
winmgmt /resyncperf
net start winmgmt
7. Monitor the server and check if the problem is fixed. If not, run the following command to reinstall WMI:
rundll32 C:windowssystem32Wbemwbemupgd.dll, RepairWMISetup
參考知識文件:
KB300956 "How to manually rebuild Performance Counter Library values"
https://support.microsoft.com/kb/300956
KB924935 "Error message when you use the ReadEventLog function in a WMI script in Windows XP: "Err 80041001, WBEM_E_FAILED"
https://support.microsoft.com/kb/924935