Regra que executa o executável WMIAdap diariamente para reparar o repositório WMI se ficar danificado
Esta Tarefa executa a ferramenta da linha de comandos WMIADAP.EXE com base em agendamento, para garantir que o WMI consegue aceder a todos os Objetos de Desempenho registados no sistema.
Target | Microsoft.Windows.Server.2003.Computer |
Category | Maintenance |
Enabled | True |
Alert Generate | False |
Remotable | True |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
Scheduler | DataSource | System.Scheduler | Default |
DS1 | WriteAction | System.CommandExecuter | Default |
<Rule ID="Microsoft.Windows.Server.2003.Computer.RunWMIAdap" Enabled="true" Target="Microsoft.Windows.Server.2003.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>true</RequireOutput>
<Files/>
</WriteAction>
</WriteActions>
</Rule>