Shared Printer: Restart the print spooler fix sharing problems and check Group Policy

Microsoft.Windows.Server.2008.PrintServer.PrintQueue.SharedPrinterAvailability.System.EventCollection.19 (Rule)

Restart the print spooler fix sharing problems and check Group Policy.

Knowledge Base article:

Summary

Restart the print spooler fix sharing problems and check Group Policy

Resolutions

To resolve this error, do the following:

Warning: Restarting the Print Spooler service causes all print jobs to be restarted. Additionally, you might need to reset some printers or turn them off and then turn them back on after restarting the Print Spooler service. On an active print server, perform this procedure outside of normal business hours or during scheduled maintenance time, if possible. Before performing this procedure, take all printers offline and wait for all print jobs to be completed, or pause all printers and wait for all Active print jobs to be completed.

In the Administrative Tools folder, open the Services snap-in.Locate the Print Spooler service in the list of services, and then confirm that its status is Started. If its status is not Started, select the service and then click Start on the Action menu. Note: You can also do this from an elevated Command Prompt window by typing the following command: net stop spooler and net start spooler

In some instances, you might receive Error 1068 ? \The dependency service or group failed to start\ ? when attempting to start the Print Spooler service. This can happen if the Print Spooler service relies on other services that are not running. To resolve this issue, use the following procedure:

In the Services snap-in, right-click Print Spooler and then click Properties. Click the Dependencies tab. The first box lists all of the system services that must be running for the Print Spooler service to start. These are the dependencies. Make a note of each service, click OK, and then start each service that the Print Spooler service depends on, if the service is not already started. If a service was not already started, right-click it, click Properties, and then confirm that the Startup type is Automatic.

Element properties:

TargetMicrosoft.Windows.Server.2008.PrintServer.Printer
CategoryAlert
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
RemotableTrue
Alert Message
Shared Printer Availability Alert
{0}
Event LogSystem

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.2008.PrintServer.PrintQueue.SharedPrinterAvailability.System.EventCollection.19" Enabled="onEssentialMonitoring" Target="Microsoft.Windows.Server.2008.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>System</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">19</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-PrintSpooler</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.2008.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.2008.PrintServer.PrintQueue.SharedPrinterAvailability.System.EventCollection.19.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression/>
</WriteAction>
</WriteActions>
</Rule>