Event ID 51 — AD DS Printer Publishing
Applies To: Windows Server 2008
You can publish printer information to Active Directory Domain Services (AD DS) so that users can search for printers by location or other attributes. Publishing a printer creates a PrintQueue object in AD DS as a child of the print server computer account.
Event Details
Product: | Windows Operating System |
ID: | 51 |
Source: | Microsoft-Windows-PrintSpooler |
Version: | 6.0 |
Symbolic Name: | MSG_CANT_PRUNE_PRINTER |
Message: | Print queue %1 could not be deleted (pruned) from the Active Directory directory service. Error: %2. The spooler will periodically try to remove the entry until it is successful. Continued failures may indicate an Active Directory problem, a basic network problem, or a communication problem between the domain controller and the print server. |
Resolve
Allow the spooler to retry pruning the printer
The spooler will periodically try to remove the entry until it succeeds in doing so. Continued failures may indicate an Active Directory Domain Services (AD DS) problem, a basic network problem, or a communication problem between the domain controller and the print server.
No user action is required. If the spooler continues to fail when trying to remove the print spooler from AD DS and it is important that the printer is removed from AD DS, try the following actions to resolve the issue:
- Fix DNS server problems.
- Fix AD DS problems.
Fix DNS server problems
To resolve DNS server problems:
- Restart the DNS Server service on the DNS server. To do this, open the Services snap-in from the Administrative Tools folder, click the DNS Server service, and then click the Restart Service toolbar button.
- Allow the print spooler to prune the printer automatically, or manually remove the printer from AD DS by using the following procedure:
Open either the **Print Management **snap-in.
In the Print Management tree, click Printers under the appropriate print server.
In the Results pane, select the printer or printers that you want to list or remove, right-click one of the printers, and then click Remove from Directory.
Note You can also perform this procedure from the Printers folder in Control Panel. To do so, right-click the appropriate printer, click Properties, click the Sharing tab, and then select or clear the List in the directory checkbox.
For more information about troubleshooting DNS server problems, see the following Microsoft Web sites:
- Troubleshooting DNS (https://go.microsoft.com/fwlink/?LinkID=4280)
- Troubleshooting Domain Name System (https://go.microsoft.com/fwlink/?LinkID=62177)
- Troubleshooting Windows Server 2008 (https://go.microsoft.com/fwlink/?LinkID=76538)
Fix AD DS problems
To resolve Active Directory Domain Services (AD DS) problems, do the following:
- Confirm that there is a domain controller available in the same domain as the print server.
- Resolve any DNS problems that are related to AD DS. For more information, see Active Directory Operations Overview: Troubleshooting Active Directory-Related DNS Problems (https://go.microsoft.com/fwlink/?LinkID=57927).
- Confirm that sites are set up properly in AD DS and that printer location tracking is properly enabled. For more information, see Troubleshooting common printing problems (https://go.microsoft.com/fwlink/?LinkId=65000).
- If user accounts are in a different domain from the print server computer account, and any of the domains use the Windows 2000 mixed-domain functional level, consider switching the domain functional levels.
- Allow the print spooler to prune the printer automatically, or manually remove the printer from AD DS by using the following procedure:
Open the Administrative Tools folder, and then double-click Print Management.
In the Print Management tree, click Printers under the appropriate print server.
In the Results pane, right-click the printer you want to list or remove, and then click Remove from Directory.
Note You can also perform this procedure from the Printers folder in Control Panel. To do so, right-click the appropriate printer, click Properties, click the Sharing tab, and then select or clear the List in the directory checkbox.
If you continue to have AD DS problems, you can try the following actions to further diagnose the problem:
- Using an account that is a member of the Enterprise Admins group, open the Command Prompt window, and then type dcdiag /e to diagnose the health of the entire AD DS forest. For examples of the output of the dcdiag command, see Dcdiag Examples (https://go.microsoft.com/fwlink/?LinkID=104689).
- In Event Viewer, connect to one of the affected domain controllers, examine the Directory Service log for possible Error or Warning events, and then click the Event Log Online Help link for each Error or Warning event. This opens a Web browser with additional troubleshooting information pertaining to the specific event.
Verify
To verify that the printer was successfully published or removed from AD DS, do the following:
- If the print server logs spooler information events, open Event Viewer and look for Print Spooler Event 36 (when publishing a printer), Print Spooler Event 38 (when removing a printer from AD DS), or Print Spooler Event 40 (when updating a printer).
- Search AD DS for the printer by using the following procedure:
- Open the Printers folder on a computer in the same domain as the print server, and then click Add a printer. The Add Printer Wizard appears.
- Select A printer that is not attached to my computer (a network printer), and then click Next.
- Click The printer I am looking for is not on this list.
- Select Find a printer in Active Directory, based on location or feature, click Next, and then use the Find Printers dialog box to search AD DS for the printer.