隨插即用服務健全狀況

Microsoft.Windows.Server.2008.OperatingSystem.PlugandPlayServiceHealth (UnitMonitor)

監視隨插即用 Windows 服務的健全狀況

Knowledge Base article:

摘要

隨插即用服務能讓電腦偵測並設定新的硬體裝置。 如果此服務停止,將無法偵測、設定或供 Windows 作業系統使用新安裝的硬體。

原因

服務可能會因許多原因而停止,其中包括:

解決方式

此服務可透過 [電腦管理主控台] 工作存取的服務嵌入式管理單元重新啟動:

啟動電腦管理主控台

Element properties:

TargetMicrosoft.Windows.Server.2008.OperatingSystem
Parent MonitorMicrosoft.Windows.Server.2008.OperatingSystem.CoreServicesRollup
CategoryStateCollection
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.CheckNTServiceStateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
隨插即用服務停止
伺服器 {0} 上的隨插即用服務已停止執行
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.Server.2008.OperatingSystem.PlugandPlayServiceHealth" Accessibility="Public" Enabled="true" Target="Server2008!Microsoft.Windows.Server.2008.OperatingSystem" ParentMonitorID="Microsoft.Windows.Server.2008.OperatingSystem.CoreServicesRollup" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.CheckNTServiceStateMonitorType" ConfirmDelivery="false">
<Category>StateCollection</Category>
<AlertSettings AlertMessage="Microsoft.Windows.Server.2008.OperatingSystem.PlugandPlayServiceHealth.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="NotRunning" MonitorTypeStateID="NotRunning" HealthState="Error"/>
<OperationalState ID="Running" MonitorTypeStateID="Running" HealthState="Success"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<ServiceName>PlugPlay</ServiceName>
</Configuration>
</UnitMonitor>