프린터 드라이버 설치: 오프라인 운영 체제 시작 및 프린터 다시 설치

Microsoft.Windows.Server.10.0.PrintServer.PrinterDriver.PrinterDriverInstallationStatus.System.Starttheofflineoperatingsystemandreinstalltheprinter.EventBased.UnitMonitor (UnitMonitor)

오프라인 운영 체제를 시작하고 프린터를 다시 설치합니다.

Knowledge Base article:

요약

오프라인 운영 체제를 시작하고 프린터를 다시 설치합니다.

구성

모니터는 “Microsoft-Windows-PrintService/Admin 및 Microsoft-Windows-PrintService/Operational” 이벤트 로그를 사용하고 이벤트 로그 서비스를 다시 시작할 때 "인쇄 스풀러"가 모니터링되어야 하는지 여부를 제어하는 단일 구성 매개 변수를 사용합니다. 기본적으로 "인쇄 스풀러" 모니터는 “Microsoft-Windows-PrintService/Admin and Microsoft-Windows-PrintService/Operational" 이벤트 로그가 사용되는 경우에만 모니터링됩니다.

해결 방법

오프라인 운영 체제를 시작하고, 제어판에서 프린터를 연 다음, 프린터 추가 마법사를 사용하여 프린터를 대화식으로 설치하십시오.

Element properties:

TargetMicrosoft.Windows.Server.10.0.PrintServerRole
Parent MonitorSystem.Health.ConfigurationState
CategoryStateCollection
EnabledFalse
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.2SingleEventLog2StateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
오프라인 운영 체제 시작 및 프린터 다시 설치에 의한 프린터 드라이버 설치 상태 경고
{0}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.Server.10.0.PrintServer.PrinterDriver.PrinterDriverInstallationStatus.System.Starttheofflineoperatingsystemandreinstalltheprinter.EventBased.UnitMonitor" Accessibility="Public" Enabled="false" Target="Microsoft.Windows.Server.10.0.PrintServerRole" ParentMonitorID="SystemHealth!System.Health.ConfigurationState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.2SingleEventLog2StateMonitorType" ConfirmDelivery="true">
<Category>StateCollection</Category>
<AlertSettings AlertMessage="Microsoft.Windows.Server.10.0.PrintServer.PrinterDriver.PrinterDriverInstallationStatus.System.Starttheofflineoperatingsystemandreinstalltheprinter.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>^(359)$</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>^(316|317|321)$</Pattern>
</RegExExpression>
</Expression>
</And>
</SecondExpression>
</Configuration>
</UnitMonitor>