[SDP3][45b23d1b-c3e1-469c-8743-f9cf5867e60c] Print Spooler Cleanup Diagnostic

Applies to: Windows Server 2012 DatacenterWindows Server 2012 DatacenterWindows Server 2012 Standard More

Summary


The Print Spooler Cleanup Diagnostic can be used to clean non-Microsoft print monitors and processors from Print Spooler for troubleshooting. Additionally, it collects basic information about the print spooler and the computer, such as information about print drivers, printers, basic networking, and failover clustering.  

More Information


The Print Spooler Cleanup Diagnostic removes non-Microsoft print processors and monitors by changing information in the registry as follows: 
  • It removes non-Microsoft print monitors from {PrintRootKey}\Monitors, and moves them to {PrintRootKey}\Disabled Monitors.
  • It scans all printer drivers in the printers key, and updates all print drivers that are using one of the disabled monitors and disabled them.
  • It removes non-Microsoft print processors {PrintRootKey}\Environments\{Architecture}\Print Processors, and moves them to {PrintRootKey}\Environments\{Architecture}\Disabled Print Processors.
  • It scans all printers in the printers key, updates all print drivers that are using one of the disabled print processors, and moves them to "WinPrint." The old print processor configuration is stored on a registry value named "Disabled Print Processor."
Note {PrintRootKey} refers to the registry key containing the spooler service configuration. For the local machine, the subkey is the following:
HKLM\SYSTEM\CurrentControlSet\Control\Print
For Clustered printers, this subkey refers to HKLM\Cluster\Resources\{PrintResource} (where {PrintResource} is a GUID that contains the print resource configuration). {Architecture} refers to the machine architecture.

Before changing the configuration, the print spooler cleanup creates a backup of the print keys and stops the spooler service. Additionally, it creates a backup of the print spooler service.

The print spooler cleanup has the following execution modes:
  • Express Cleanup - Removes all non-Microsoft print monitors and processors from print spooler
  • Selective Cleanup - Allows you to select which non-Microsoft print monitors and processors to disable
  • Express Restore - Re-enables all non-Microsoft print monitors and processors disabled by a previous execution
  • Selective cleanup/restore - Lets you select which third-party print monitors or print processors you want to re-enable or disable
In addition to cleaning non-Microsoft print processors and monitors, the Print Spooler Cleanup Diagnostic also collects information about the computer and the print spooler. This information can be uploaded to Microsoft for troubleshooting, as listed in the following section.

Information collected

FailoverCluster feature
DescriptionFile name
Basic Failover Cluster information vai clusmps.exe utility (on operating Systems earlier than Windows Server 2008 R2)
{ComputerName}_cluster_mps_information.txt
Basic Failover Cluster information, including information from existing resources and groups via FailoverCluster PowerShell cmdlets (Windows Server 2008 R2 and newer)
resultreport.xml


General information
DescriptionFile name
Basic System Information including machine name, service pack, computer model and processor name and speed
resultreport.xml


Networking basic information
DescriptionFile name
Basic SMB configuration information, such as output of net.exe subcommands, such as net share, net sessions, net use, net accounts, net config
{ComputerName}_SMB-Info.txt
Basic TCP/IP and networking configuration information, such as TCP/IP registry key and outputs from ipconfig, netstat, nbtstat and netsh commands
{ComputerName}_TcpIp-Info.txt

Print drivers and printers information
DescriptionFile name
Information about Print drivers and printers, including print monitors, processors, and print driver file version information taken after changing spooler configuration
{ComputerName}_After changes_PrintInfo.htm
Information about Print drivers and printers, including print monitors, processors, and print driver file version information taken prior to change spooler configuration
{ComputerName}_Prior to change_PrintInfo.htm
Print Resource Registry Key, where {ResourceName} is the name of the print resource (or 'Local' to local print spooler) and {Date} is the current date. Print resource registry key is HKLM\SYSTEM\CurrentControlSet\Control\Print for local or HKLM\Cluster\Resources\{ResourceGUID}\Parameters\Printers
{ComputerName}_PrintResource-{ResourceName}-{Date}-After_Change.Reg

In addition to collecting this information, the diagnostic package can perform the following actions:
  • Check for Event 602 on PrintService/Admin Event Log (KB 2457866)
  • Check for the presence of KB 982728 if the Kyocera print driver is installed
  • Check for print driver failure to download from a Print Server because of Point and Print Restrictions
  • Determine whether the HP Universal Print Driver was upgraded from 5.2 to 5.3
  • Check for orphaned print jobs in the Spooler folders
  • Check for the number of subkeys under "DevModes2"
  • Detect the presence of set*.tmp files in the System32 folder
  • Check for the Print Update Rollup for Windows 7 and Windows Server 2008 R2
  • Check the size of the Client Side Rendering Print Provider settings
  • Determine whether the binary version of win32spl.dll is older than the required version
  • Check whether cluster groups are in an Offline or Failed state
  • Check for errors when gathering cluster information by using the Get-ClusterNode cmdlet
  • Check whether the state of one or more cluster nodes is down or paused
  • Determine whether the Cluster service is not running or is offline
  • Flag when third-party Print Processor are disabled
  • Flag when third-party Print Monitors are disabled
  • Flag when third-party Print Monitors are re-enabled
  • Flag when third party Print Processors are re-enabled
  • Determine whether the diagnostic package is able to communicate with one or more cluster nodes
  • Check whether Winprint Print Processor is enabled on the computer
  • Flag when Remote Desktop Services are detected

References


For more information, click the following article number to go to the article in the Microsoft Knowledge Base: 
2598970 Information about Microsoft Automated Troubleshooting Services and Support Diagnostic Platform