Problem
You want to publish a printer in Active Directory to make it easier for users to locate and access it.
Solution
Using a graphical user interface
-
Open the Print Management MMC snap-in. Double-click on the print server that you want to manage, and then select Printers.
-
Right-click on the printer that you want to list or remove, and then click “List in Directory” or “Remove from Directory.”
Using a command-line interface
> cscript pubprn.vbs \\<ServerName>\<PrinterName> "<PrinterDN>"
Discussion
The idea of publishing printers in Active Directory has been around since its inception with Windows 2000; in fact, the “List in Directory” option is selected by default when you first share a printer object. By listing a printer in Active Directory, users on your network can easily search for printers that meet certain criteria such as name, location, or other identifying characteristics. Any changes that are made to the printer’s attributes get automatically propagated to Active Directory.