共用印表機:重新啟動列印多工緩衝處理器並取消印表機共用

Microsoft.Windows.Server.6.2.PrintServer.PrintQueue.SharedPrinterAvailability.System.EventCollection.76 (Rule)

重新啟動列印多工緩衝處理器並取消印表機共用。

Knowledge Base article:

摘要

重新啟動列印多工緩衝處理器並取消印表機共用。

解決方式

若要解決此錯誤,請進行下列步驟:

重新啟動列印多工緩衝處理器服務

若要啟動或重新啟動「列印多工緩衝處理器」服務,請使用下列程序:

警告:重新啟動「列印多工緩衝處理器」服務會重新啟動所有列印工作。重新啟動「列印多工緩衝處理器」服務之後可能需要重設部分印表機,或是將印表機電源關閉後再開啟。如果可能的話,請於正常營業時間外或是排定的維護時間,在作用中列印伺服器上執行此程序。執行此程序之前,請將所有印表機離線,並且等待所有列印工作完成,或是暫停所有印表機並等待所有「作用中」的列印工作完成。

在某些情況下,您可能會收到錯誤 1068 -「相依服務或群組無法啟動」-在嘗試啟動「列印多工緩衝處理器」服務時。如果「列印多工緩衝處理器」服務倚賴其他未執行的服務,就可能發生這種情況。若要解決此問題,請利用下列程序:

取消共用印表機

若要取消共用印表機,請在 [控制台] 的 [印表機] 資料夾中或是 [列印管理] 中以滑鼠右鍵按一下印表機的名稱,按一下 [以系統管理員身分執行],按一下 [共用],然後清除 [共用這個印表機] 核取方塊。

若要從 [命令提示字元] 視窗取消共用印表機,請輸入下列命令,其中 (printername) 為印表機的名稱:

Cscript %WINDIR%\system32\Printing_Admin_Scripts\en-US\prncnfg.vbs -t -p \(printername)\ -shared\

如果印表機未正確取消共用,可能是因為網路發生問題。請在 [事件檢視器] 中查看任何新的錯誤,判斷根本問題。

Element properties:

TargetMicrosoft.Windows.Server.6.2.PrintServer.Printer
CategoryAlert
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
RemotableTrue
Alert Message
共用印表機可用性警示
{0}
Event LogMicrosoft-Windows-PrintService/Admin

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.EventProvider Default
Alert WriteAction System.Health.GenerateAlert Default

Source Code:

<Rule ID="Microsoft.Windows.Server.6.2.PrintServer.PrintQueue.SharedPrinterAvailability.System.EventCollection.76" Enabled="true" Target="Microsoft.Windows.Server.6.2.PrintServer.Printer" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Alert</Category>
<DataSources>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Microsoft-Windows-PrintService/Admin</LogName>
<Expression>
<And>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^(371)$</Pattern>
</RegExExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-PrintService</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Params/Param[2]</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Target/Property[Type="Microsoft.Windows.Server.6.2.PrintServer.Printer"]/DeviceID$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="Alert" TypeID="SystemHealth!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>2</Severity>
<AlertOwner/>
<AlertMessageId>$MPElement[Name="Microsoft.Windows.Server.6.2.PrintServer.PrintQueue.SharedPrinterAvailability.System.EventCollection.76.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression/>
</WriteAction>
</WriteActions>
</Rule>