January 26th, 2013

PowerTip: Use PowerShell to Find Printers Published in Active Directory

Doctor Scripto
Scripter

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

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.