列印工作:重新啟動列印多工緩衝處理器服務,或是重新安裝印表機驅動程式

Microsoft.Windows.Server.6.2.PrintServer.PrintQueue.PrintJobStatus.System.RestartthePrintSpoolerserviceorreinstalltheprinterdriver.EventBased.UnitMonitor (UnitMonitor)

重新啟動列印多工緩衝處理器服務,或是重新安裝印表機驅動程式。

Knowledge Base article:

摘要

重新啟動列印多工緩衝處理器服務,或是重新安裝印表機驅動程式。

解決方式

若要解決此錯誤,請嘗試再次列印文件。如果仍失敗,請使用本主題中的程序執行下列操作:

刪除列印工作並重新啟動「列印多工緩衝處理器」服務

若要刪除失敗的文件並重新啟動 [列印多工緩衝處理器」服務,請使用本段中的兩項程序。

警告:重新啟動「列印多工緩衝處理器」會重新啟動所有列印工作。重新啟動「列印多工緩衝處理器」服務之後,可能需要重設部分印表機,或是將印表機電源關閉後再開啟。如果可能的話,請於正常營業時間外或是排定的維護時間,在作用中列印伺服器上執行此程序。使用此程序之前,請將所有印表機離線,並且等待所有列印工作完成,或是暫停所有印表機並等候所有狀態為「作用中」的列印工作完成。

若要刪除失敗的列印工作並重新啟動「列印多工緩衝處理器」服務:

注意:您也可以在提升權限的 [命令提示字元] 視窗的命令提示字元中,輸入 net stop spooler and net start spooler 執行這項操作。若要以較高的權限來開啟 [命令提示字元] 視窗,請按一下 [開始] 並指向 [所有程式],然後按一下 [附屬應用程式],接著以滑鼠右鍵按一下 [命令提示字元],然後按一下 [以系統管理員身分執行]。

在某些情況下,您可能會收到錯誤 1068 -「相依服務或群組無法啟動」-在嘗試啟動「列印多工緩衝處理器」時。如果「列印多工緩衝處理器」服務倚賴其他未執行的服務,就可能發生這種情況。若要解決此問題,請利用下列程序。

若要確認或變更個別服務 (相依性) 的啟動設定:

重新安裝印表機驅動程式

若要重新安裝印表機驅動程式:

安裝更新的印表機驅動程式

取得顯示「Designed for Windows」標誌的更新版印表機驅動程式 (向印表機廠商索取),依照印表機驅動程式隨附的指示將它安裝到用戶端電腦上,然後再次列印文件。

Element properties:

TargetMicrosoft.Windows.Server.6.2.PrintServer.Printer
Parent MonitorSystem.Health.AvailabilityState
CategoryStateCollection
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.2SingleEventLog2StateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
列印工作狀態警示
{0}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.Server.6.2.PrintServer.PrintQueue.PrintJobStatus.System.RestartthePrintSpoolerserviceorreinstalltheprinterdriver.EventBased.UnitMonitor" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.Server.6.2.PrintServer.Printer" ParentMonitorID="SystemHealth!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.2SingleEventLog2StateMonitorType" ConfirmDelivery="true">
<Category>StateCollection</Category>
<AlertSettings AlertMessage="Microsoft.Windows.Server.6.2.PrintServer.PrintQueue.PrintJobStatus.System.RestartthePrintSpoolerserviceorreinstalltheprinterdriver.EventBased.UnitMonitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/EventDescription$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Negative" MonitorTypeStateID="FirstEventRaised" HealthState="Error"/>
<OperationalState ID="Success" MonitorTypeStateID="SecondEventRaised" HealthState="Success"/>
</OperationalStates>
<Configuration>
<FirstComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</FirstComputerName>
<FirstLogName>Microsoft-Windows-PrintService/Admin</FirstLogName>
<FirstExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-PrintService</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^(350)$</Pattern>
</RegExExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Params/Param[2]</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Target/Property[Type="Microsoft.Windows.Server.6.2.PrintServer.Printer"]/DeviceID$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</FirstExpression>
<SecondComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</SecondComputerName>
<SecondLogName>Microsoft-Windows-PrintService/Operational</SecondLogName>
<SecondExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-PrintService</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^(305|307|308|309|310|311|352)$</Pattern>
</RegExExpression>
</Expression>
</And>
</SecondExpression>
</Configuration>
</UnitMonitor>