Publikowanie drukarki w usługach AD DS: zezwalaj na ponowną próbę oczyszczenia drukarki przez bufor

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

Zezwalaj na ponowną próbę oczyszczenia drukarki przez bufor.

Knowledge Base article:

Podsumowanie

Bufor będzie okresowo próbował usunąć wpis, aż ta czynność się powiedzie. Dalsze niepowodzenia mogą oznaczać problem z Usługami domenowymi Active Directory (AD DS), podstawowy problem z siecią lub problem z komunikacją między kontrolerem domeny a serwerem wydruku

Konfiguracja

Monitor pobiera pojedynczy parametr konfiguracyjny określający, czy bufor wydruku powinien być monitorowany w przypadku, gdy są włączone dzienniki wydarzeń „Microsoft-Windows-PrintService/Admin i Microsoft-Windows-PrintService/Operational”, a usługa Dziennik zdarzeń jest uruchamiana ponownie. Domyślnie monitor buforu wydruku będzie monitorowany tylko wtedy, gdy dzienniki wydarzeń „Microsoft-Windows-PrintService/Admin i Microsoft-Windows-PrintService/Operational” są włączone.

Rozwiązania

Nie jest wymagana akcja użytkownika. Jeśli dalsze próby usunięcia buforu wydruku z Usług domenowych Active Directory przez bufor zakończą się niepowodzeniem (a ważne jest, aby drukarka została usunięta z Usług domenowych Active Directory), należy wykonać poniższe akcje, aby rozwiązać ten problem:

Rozwiąż problemy z serwerem DNS

Aby rozwiązać problemy z serwerem DNS:

Więcej informacji o rozwiązywaniu problemów z serwerem DNS znajduje się na następujących witrynach Microsoft:

Rozwiąż problemy z Usługami domenowymi Active Directory

Aby rozwiązać problemy z Usługami domenowymi Active Directory (AD DS), należy wykonać następujące kroki:

W przypadku dalszych problemów z usługami domenowymi w usłudze AD można wykonać poniższe akcje, aby zdiagnozować problem:

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
Alert publikowania drukarek w usługach domenowych w usłudze AD: zezwalaj na ponowną próbę oczyszczenia drukarki przez bufor
{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>