AD DS プリンター公開:スプーラーによるプリンターの排除の再試行を許可します

Microsoft.Windows.Server.10.0.PrintServer.PrintQueue.ADDSPrinterPublishing.System.Allowthespoolertoretrypruningtheprinter.EventBased.UnitMonitor (UnitMonitor)

スプーラーによるプリンターの排除の再試行を許可します。

Knowledge Base article:

概要

スプーラーは、成功するまで定期的にエントリの削除を試みます。失敗が続く場合は、Active Directory ドメイン サービス (AD DS) の問題、ネットワークの基本的な問題、またはドメイン コントローラーとプリント サーバー間の通信の問題がある可能性があります。

構成

このモニターは、“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を AD DS から削除しようとして失敗し続けているが、AD DS からプリンターを削除する必要がある場合は、問題を解決するために次の操作を実行します。

DNS サーバーの問題を解決します。

DNS サーバーの問題を解決するには、次の手順を実行します。

DNS サーバーの問題のトラブルシューティングの詳細については、次の Microsoft Web サイトを参照してください。

AD DS の問題の解決

Active Directory ドメイン サービス (AD DS) の問題を解決するには、次の操作を実行します。

AD DS の問題が解決しない場合は、次の操作を試して問題を詳細に診断します。

Element properties:

TargetMicrosoft.Windows.Server.10.0.PrintServer.Printer
Parent MonitorSystem.Health.AvailabilityState
CategoryStateCollection
EnabledFalse
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.2SingleEventLog2StateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
AD DS プリンター公開のアラート: スプーラーによるプリンターの排除の再試行を許可します
{0}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.Server.10.0.PrintServer.PrintQueue.ADDSPrinterPublishing.System.Allowthespoolertoretrypruningtheprinter.EventBased.UnitMonitor" Accessibility="Public" Enabled="false" 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.ADDSPrinterPublishing.System.Allowthespoolertoretrypruningtheprinter.EventBased.UnitMonitor.AlertMessage">
<AlertOnState>Warning</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="Warning"/>
<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>^(347)$</Pattern>
</RegExExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Params/Param[1]</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>^(332|334|336|338|342|343|344|345|346)$</Pattern>
</RegExExpression>
</Expression>
</And>
</SecondExpression>
</Configuration>
</UnitMonitor>