Windows Server 2012 电源计划监视器

Microsoft.Windows.PowerManagement.2012.PowerPlanMonitor (UnitMonitor)

此监视器检查 Windows Server 2012 操作系统的当前电源计划。

Knowledge Base article:

摘要

此监视器将 Windows Server 2012 操作系统的当前电源计划与监视器中指定的电源计划进行比较。

解决方案

运行任务以更改功率预算或启用电源计划恢复。

Element properties:

TargetMicrosoft.Windows.Server.6.2.OperatingSystem
Parent MonitorSystem.Health.ConfigurationState
CategoryConfigurationHealth
EnabledFalse
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.PowerManagement.2012.PowerPlanMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Windows Server 2012 电源计划监视器警报
当前电源计划 "{0}" 不是监视器中设置的所需电源计划。
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.PowerManagement.2012.PowerPlanMonitor" Accessibility="Public" Enabled="false" Target="Server!Microsoft.Windows.Server.6.2.OperatingSystem" ParentMonitorID="Health!System.Health.ConfigurationState" Remotable="true" Priority="Normal" TypeID="Microsoft.Windows.PowerManagement.2012.PowerPlanMonitorType" ConfirmDelivery="false">
<Category>ConfigurationHealth</Category>
<AlertSettings AlertMessage="Microsoft.Windows.PowerManagement.2012.PowerPlanMonitor.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Warning</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Property[@Name='ElementName']$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="DesiredPowerPlanIsActive" MonitorTypeStateID="DesiredPowerPlanIsActive" HealthState="Success"/>
<OperationalState ID="DesiredPowerPlanIsNotActive" MonitorTypeStateID="DesiredPowerPlanIsNotActive" HealthState="Warning"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<Frequency>300</Frequency>
<DesiredPowerPlan/>
<Start>00:00</Start>
<End>23:59</End>
<DaysOfWeekMask>62</DaysOfWeekMask>
</Configuration>
</UnitMonitor>