Get list of printers published in active directory

Hello, Dear Colleagues.

How to get list of printers published in active directory?

Thanks.

July 23rd, 2015 9:40am

http://blogs.technet.com/b/heyscriptingguy/archive/2013/01/26/powertip-use-powershell-to-find-printers-published-in-active-directory.aspx

You can use the Get-Printer command to perform this task.

Free Windows Admin Tool Kit Click here and download it now
July 23rd, 2015 9:43am

Thanks for your answer, but I don't need search for published printers on specific computer, I need to serach whole AD for published printers on all computers.
July 23rd, 2015 9:49am

Thanks for your answer, but I don't need search for published printers on specific computer, I need to serach whole AD for published printers on all computers.
Use Get-ADComputer to get a list of machines and then use Get-Printer to check
Free Windows Admin Tool Kit Click here and download it now
July 23rd, 2015 10:05am

Published printers are device associated objects in AD.  They have nothing to do with the local Get-Printer command.  The following should work.

Get-AdObject -filter "objectCategory -eq 'printqueue'"

July 23rd, 2015 11:14am

This may be more useful:

Get-AdObject -filter "objectCategory -eq 'printqueue'" -Prop *|
    Select Name,serverName, @{N='ShareNames';E={$_.printShareName -join ';'}}

Free Windows Admin Tool Kit Click here and download it now
July 23rd, 2015 11:21am

Thanks for your answer, but I don't need search for published printers on specific computer, I need to serach whole AD for published printers on all computers.

Use Get-ADComputer to get a list of machines and then use Get-Printer to check each.

July 23rd, 2015 11:37am

Hello,

you can use the following command:

Get-Printer -ComputerName YourPrintServer | ? published

Free Windows Admin Tool Kit Click here and download it now
July 23rd, 2015 11:54am

Hello,

you can use the following command:

Get-Printer -CompiuterName YourPrintServer | ? published


This, again, has nothing to do with "published" printers.  AD published printers can be published from any server or workstation.  The only way to find them is by querying AD.
July 23rd, 2015 12:01pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics