執行 WMIAdap

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

此規則每日執行 WMIAdap 執行檔,以便於 WMI 存放庫損毀時進行修復

Knowledge Base article:

摘要

此規則會依照排程執行 WMIADAP.EXE 命令列工具,以確保 WMI 能夠存取已在系統上登錄的所有效能物件。

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>