印刷ジョブ:Print Spooler サービスを再起動するか、またはプリンター ドライバーを再インストールします (印刷キュー)

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

Print Spooler サービスを再起動するか、またはプリンター ドライバーを再インストールします。

Knowledge Base article:

概要

Print Spooler サービスを再起動するか、またはプリンター ドライバーを再インストールします。

構成

このモニターは、“Microsoft-Windows-PrintService/Admin and Microsoft-Windows-PrintService/Operational” イベント ログを有効にして、イベント ログ サービスを再起動するときに、“Print Spooler” を監視するかどうかを制御する構成パラメーターを 1 つ使用します。既定では、“Print Spooler” モニターが監視されるのは、“Microsoft-Windows-PrintService/Admin and Microsoft-Windows-PrintService/Operational" イベント ログが有効な場合のみです。

解決方法

このエラーを解決するには、ドキュメントの印刷を再試行します。失敗する場合は、このトピックの手順を使用して次の操作を実行します。

印刷ジョブを削除し、Print Spooler サービスを再起動します。

失敗したドキュメントを削除し、Print Spooler サービスを再起動するには、このセクションの 2 つの手順を使用します。

警告:Print Spooler を再起動すると、すべての印刷ジョブが再開されます。Print Spooler サービスを再起動したら、一部のプリンターをリセットするか、またはそれらの電源を切って入れ直す必要があることがあります。アクティブなプリント サーバーでこの手順を、できれば通常の営業時間外または定期メンテナンス時に実行します。この手順は、すべてのプリンターをオフラインにしてすべての印刷ジョブが完了するまで待機した後、またはすべてのプリンターを一時停止してアクティブ状態のすべての印刷ジョブが完了するまで待機した後に使用します。

失敗した印刷ジョブを削除し、Print Spooler サービスを再起動するには、次の手順を実行します。

注:この操作は、管理者特権のあるコマンド プロンプト ウィンドウから、コマンド プロンプトで「net stop spooler」および「net start spooler」と入力して実行することもできます。(コマンド プロンプト ウィンドウを管理者特権で開くには、[スタート] ボタンをクリックし、[すべてのプログラム] をポイントします。次に、[アクセサリ] をクリックし、[コマンド プロンプト] を右クリックして、[管理者として実行] をクリックします)。

場合によっては、Print Spooler を起動しようとするときに、「依存関係サービスまたはグループを起動できませんでした」が表示されます。このエラーは、Print Spooler サービスが、実行されていない他のサービスに依存している場合に発生することがあります。この問題を解決するには、次の手順を使用します。

個々のサービス (依存関係) のスタートアップの設定を確認または変更するには、次の手順を実行します。

プリンター ドライバーを再インストールします。

プリンター ドライバーを再インストールするには、次の手順を実行します。

更新されたプリンター ドライバーのインストール

Designed for Windows ロゴが記載されている、更新されたプリンター ドライバーをプリンターのベンダーから入手して、プリンター ドライバーに付属の指示に従ってクライアント コンピューターにインストールし、ドキュメントを再度印刷します。

Element properties:

TargetMicrosoft.Windows.Server.10.0.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
印刷ジョブの状態アラート: Print Spooler サービスを再起動するか、またはプリンター ドライバーを再インストールします
{0}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.Server.10.0.PrintServer.PrintQueue.PrintJobStatus.System.RestartthePrintSpoolerserviceorreinstalltheprinterdriver.EventBased.UnitMonitor" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.Server.10.0.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.10.0.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.10.0.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>