打印后台处理程序:服务状态监视器

Microsoft.Windows.Server.2008.PrintServer.PrintSpoolerService.Status (UnitMonitor)

打印服务器的打印后台处理程序服务的状态

Knowledge Base article:

摘要

打印服务器的打印后台处理程序服务的状态。

解决方法

启动“打印后台处理程序”窗口服务。

在命令行上运行以下命令可以实现此操作。

“net start spooler”

Element properties:

TargetMicrosoft.Windows.Server.2008.PrintServerRole
Parent MonitorSystem.Health.AvailabilityState
CategoryStateCollection
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.CheckNTServiceStateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
打印后台处理程序:服务状态监视器
打印后台处理程序服务已停止。
RunAsMicrosoft.Windows.Server.PrintServer.Library.ActionAccount

Source Code:

<UnitMonitor ID="Microsoft.Windows.Server.2008.PrintServer.PrintSpoolerService.Status" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.Server.2008.PrintServerRole" ParentMonitorID="SystemHealth!System.Health.AvailabilityState" Remotable="true" Priority="Normal" RunAs="PSLIB!Microsoft.Windows.Server.PrintServer.Library.ActionAccount" TypeID="Windows!Microsoft.Windows.CheckNTServiceStateMonitorType" ConfirmDelivery="false">
<Category>StateCollection</Category>
<AlertSettings AlertMessage="Microsoft.Windows.Server.2008.PrintServer.PrintSpoolerService.Status_AlertMessageResourceID">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Running" MonitorTypeStateID="Running" HealthState="Success"/>
<OperationalState ID="NotRunning" MonitorTypeStateID="NotRunning" HealthState="Error"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<ServiceName>Spooler</ServiceName>
<CheckStartupType>false</CheckStartupType>
</Configuration>
</UnitMonitor>