Projects Log

projects, diy

Search:

« PreviousNext »

Find your printers with Active Directory and Perl

6 July 2006

Small perl script to find every printer in the active directory with perl

[The requested file http://dev.pulsed.net/wp/code/find_printers_with_AD_and_perl.pl could not be found]

Archived in Active directory, perl, win32 | Trackback | del.icio.us | Top Of Page

One Response to “Find your printers with Active Directory and Perl”

  1. Brian Desmond Says:

    objectClass isn't indexed by default in AD – in a large directory this will take a major perf hit on your domain controllers. The query will be slow either way.

    (&(objectCategory=printQueue)(objectClass=printQueue)) is a more efficient query as objectcategory is always indexed.