Find your printers with Active Directory and Perl
6 July 2006Small 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]
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]
March 31st, 2008 at 8:13 am
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.