Hello, Dear Colleagues.
How to get list of printers published in active directory?
Thanks.
Technology Tips and News
Hello, Dear Colleagues.
How to get list of printers published in active directory?
Thanks.
You can use the Get-Printer command to perform this task.
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
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'"
This may be more useful:
Get-AdObject -filter "objectCategory -eq 'printqueue'" -Prop *| Select Name,serverName, @{N='ShareNames';E={$_.printShareName -join ';'}}
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.
Hello,
you can use the following command:
Get-Printer -ComputerName YourPrintServer | ? published
Hello,
you can use the following command:
Get-Printer -CompiuterName YourPrintServer | ? published