Run WMIAdap

Microsoft.Windows.Client.XP.Computer.RunWMIAdap (Rule)

Rule that executes the WMIAdap executable daily to repair the WMI repository if it becomes corrupt

Knowledge Base article:

Summary

This rule executes the WMIADAP.EXE command line tool on a scheduled basis to ensure that WMI is able to access all of Performance Objects that have been registered on the system.

Element properties:

TargetMicrosoft.Windows.Client.XP.Computer
CategoryMaintenance
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
Scheduler DataSource System.Scheduler Default
DS1 WriteAction System.CommandExecuter Default

Source Code:

<Rule ID="Microsoft.Windows.Client.XP.Computer.RunWMIAdap" Enabled="onEssentialMonitoring" Target="Microsoft.Windows.Client.XP.Computer">
<Category>Maintenance</Category>
<DataSources>
<DataSource ID="Scheduler" TypeID="System!System.Scheduler">
<Scheduler>
<SimpleReccuringSchedule>
<Interval Unit="Days">1</Interval>
</SimpleReccuringSchedule>
<ExcludeDates/>
</Scheduler>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction TypeID="System!System.CommandExecuter" ID="DS1">
<ApplicationName>%windir%\system32\cmd.exe</ApplicationName>
<WorkingDirectory/>
<CommandLine>/c wmiadap.exe /F</CommandLine>
<TimeoutSeconds>300</TimeoutSeconds>
<RequireOutput>false</RequireOutput>
<Files/>
</WriteAction>
</WriteActions>
</Rule>