此規則每日執行 WMIAdap 執行檔,以便於 WMI 存放庫損毀時進行修復
此規則會依照排程執行 WMIADAP.EXE 命令列工具,以確保 WMI 能夠存取已在系統上登錄的所有效能物件。
Target | Microsoft.Windows.Client.XP.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.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>