Erstellen Sie den Druckeranschluss neu.
Erstellen Sie den Druckeranschluss neu.
Der Monitor nimmt einen einzelnen Konfigurationsparameter an, der steuert, ob die „Druckwarteschlange“ überwacht werden soll, wenn die Ereignisprotokolle „Microsoft-Windows-PrintService/Admin“ und „Microsoft-Windows-PrintService/Operational“ aktiviert sind und der Ereignisprotokolldienst neu gestartet wurde. Standardmäßig wird der Druckwarteschlangen-Monitor nur überwacht, wenn die Ereignisprotokolle „Microsoft-Windows-PrintService/Admin“ und „Microsoft-Windows-PrintService/Operational“ aktiviert sind.
Zum Beheben dieses Fehlers, erstellen Sie den Druckeranschluss neu, indem Sie die folgenden Schritte ausführen:
Klicken Sie in der Systemsteuerung oder im Druckverwaltungs-Snap-In im Ordner Drucker mit der rechten Maustaste auf den betreffenden Drucker, und klicken Sie dann auf Eigenschaften.
Klicken Sie auf die Registerkarte Anschlüsse.
Wenn der entsprechende Anschluss noch nicht ausgewählt ist, wählen Sie diesen aus, versuchen Sie nochmals, ein Dokument zu drucken.
Wenn der entsprechende Port auf der Registerkarte Anschlüsse nicht aufgeführt wird, klicken Sie auf Hinzufügen, und folgen Sie den Anweisungen auf dem Bildschirm, um den betreffenden Anschluss neu zu erstellen.
Target | Microsoft.Windows.Server.10.0.PrintServer.Printer | ||
Parent Monitor | System.Health.AvailabilityState | ||
Category | StateCollection | ||
Enabled | True | ||
Alert Generate | True | ||
Alert Severity | MatchMonitorHealth | ||
Alert Priority | Normal | ||
Alert Auto Resolve | True | ||
Monitor Type | Microsoft.Windows.2SingleEventLog2StateMonitorType | ||
Remotable | True | ||
Accessibility | Public | ||
Alert Message |
| ||
RunAs | Default |
<UnitMonitor ID="Microsoft.Windows.Server.10.0.PrintServer.PrintQueue.PrintQueueStatus.System.Recreatetheprinterport.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.PrintQueueStatus.System.Recreatetheprinterport.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>^(320)$</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>^(300|301|302|303|304|306)$</Pattern>
</RegExExpression>
</Expression>
</And>
</SecondExpression>
</Configuration>
</UnitMonitor>