Bufor wydruku: Uruchom ponownie usługę buforu wydruku

Microsoft.Windows.Server.10.0.PrintServer.PrintSpoolerService.PrintSpoolerStatus.System.RestartthePrintSpoolerservice.EventBased.UnitMonitor (UnitMonitor)

Uruchom ponownie usługę buforu wydruku.

Knowledge Base article:

Podsumowanie

Uruchom ponownie usługę buforu 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

Dostępne rozwiązania to między innymi:

W folderze Narzędzia administracyjne otwórz przystawkę Usługi. Znajdź usługę buforu wydruku na liście usług, a następnie sprawdź, czy ma ona stan Uruchomiona. Jeśli nie ma ona stanu Uruchomiona, wybierz usługę, a następnie kliknij pozycję Uruchom w menu Akcja. Uwaga: Tę akcję można również wykonać za pomocą okna wiersza polecenia z podwyższonym poziomem uprawnień, wpisując następujące polecenie: net stop spooler and net start spooler

W przypadku niektórych wystąpień podczas próby uruchomienia buforu wydruku może wystąpić \Uruchomienie usługi zależności lub grupy nie powiodło się\ ? podczas próby uruchomienia usługi Bufor wydruku. Może to się zdarzyć, gdy usługa buforu wydruku jest zależna od innych usług, które nie zostały uruchomione. Aby rozwiązać ten problem, należy wykonać poniższą procedurę:

W przystawce Usługi kliknij prawym przyciskiem myszy bufor wydruku, a następnie kliknij pozycję Właściwości. Kliknij kartę Zależności. W pierwszym polu znajduje się lista wszystkich usług systemowych, które muszą być uruchomione w celu uruchomienia usługi buforu wydruku. Są to zależności. Należy przejrzeć listę usług, kliknąć przycisk OK, a następnie uruchomić wszystkie usługi, od których zależy bufor wydruku (jeśli nie zostały wcześniej uruchomione). Jeśli dana usługa nie została uruchomiona, kliknij ją prawym przyciskiem myszy, kliknij opcję Właściwości, a następnie sprawdź, czy na liście Typ uruchomienia wybrano pozycję Automatycznie.

Element properties:

TargetMicrosoft.Windows.Server.10.0.PrintServerRole
Parent MonitorSystem.Health.AvailabilityState
CategoryStateCollection
EnabledFalse
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.2SingleEventLog2StateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Alert stanu buforu wydruku: uruchom ponownie usługę buforu wydruku
{0}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.Server.10.0.PrintServer.PrintSpoolerService.PrintSpoolerStatus.System.RestartthePrintSpoolerservice.EventBased.UnitMonitor" Accessibility="Public" Enabled="false" Target="Microsoft.Windows.Server.10.0.PrintServerRole" 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.PrintSpoolerService.PrintSpoolerStatus.System.RestartthePrintSpoolerservice.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/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>^(373)$</Pattern>
</RegExExpression>
</Expression>
</And>
</FirstExpression>
<SecondComputerName>$Target/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>^(312|313)$</Pattern>
</RegExExpression>
</Expression>
</And>
</SecondExpression>
</Configuration>
</UnitMonitor>