PowerTip: Use PowerShell to Find Printers Published in Active Directory

Summary: Use Windows PowerShell on Windows 8 or Windows Server 2012 to find printers published in Active Directory Domain Services (AD DS).

Hey, Scripting Guy! Question How do I use Windows PowerShell on Windows 8 or Windows Server 2012 to find printers published in AD DS?

Hey, Scripting Guy! Answer Use the Get-Printer function and pipe it to the Where-Object while filtering for the published property. The simple Windows PowerShell 3.0 syntax is shown here, where ? is an alias for Where-Object.

Get-Printer -ComputerName dc1 | ? published

Comments (3)

  1. Amol says:

    Is it possible the same in Windows 2008 / R2 ?

  2. Greg Lambert says:

    Doesn't that just find printers on servers that are marked to be published to AD, but does not search AD…so if you have a problem with the printers being properly published, this wouldn't help at all?

  3. Bruce says:

    Like Greg said…. need a way to compare what claims to be published to what is TRULY published in AD.

Skip to main content