none
How to list all print servers in a domain?

    Question

  • Hi,

    I just to wondering how to get all print servers in domain? For exemple, if I just be hired in a new company and I want to know what are their print servers.

    Thanks

    Thursday, June 07, 2012 11:04 PM

Answers

  • Hi,

    Maybe something like that in Powershell with ActiveDirectory Module :

    Import-Module ActiveDirectory
    Get-ADObject -LDAPFilter "(&(&(&(uncName=*)(objectCategory=printQueue))))" -properties *|Sort-Object -Unique -Property servername |select servername
    

    Regards,

    • Marked as answer by SAMATA Friday, June 15, 2012 4:46 AM
    Friday, June 08, 2012 2:11 PM

All replies