Ejecutar WMIAdap

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

Regla que ejecuta el ejecutable WMIAdap diariamente para reparar el repositorio WMI si se ha dañado

Knowledge Base article:

Resumen

Esta regla ejecuta la herramienta de línea de comandos WMIADAP.EXE de manera programada para garantizar que WMI puede tener acceso a todos los objetos de rendimiento que se han registrado en el sistema.

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>