Restart WMI Windows Service

Microsoft.SystemCenter.WMIService.ServiceMonitor.Recovery (Recovery)

This recovery will restart the WMI windows service.

Element properties:

TargetMicrosoft.SystemCenter.HealthService
MonitorMicrosoft.SystemCenter.WMIService.ServiceMonitor
Reset MonitorTrue
RemotableFalse
Timeout300
CategoryMaintenance
Enabledfalse
AccessibilityInternal

Member Modules:

ID Module Type TypeId RunAs 
StartWMIServiceRecoveryTask WriteAction Microsoft.SystemCenter.2007.StartService Default

Source Code:

<Recovery ID="Microsoft.SystemCenter.WMIService.ServiceMonitor.Recovery" Accessibility="Internal" Enabled="false" Target="SCLibrary!Microsoft.SystemCenter.HealthService" Monitor="Microsoft.SystemCenter.WMIService.ServiceMonitor" ResetMonitor="true" ExecuteOnState="Warning" Remotable="false" Timeout="300">
<Category>Maintenance</Category>
<WriteAction ID="StartWMIServiceRecoveryTask" TypeID="Microsoft.SystemCenter.2007.StartService">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerName>
<ServiceName>Winmgmt</ServiceName>
</WriteAction>
</Recovery>