Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query for all printers in a domain

Status
Not open for further replies.
Apr 27, 1999
705
US


Hello,
I am trying to find an easy to query for all printer objects in different OUs. I am not sure how to use wild cards but I know the printers are in the following:

strObjCmd = "SELECT printerName, serverName, location, drivername FROM " & " 'LDAP://CN=" & strPublisher & ",OU=PRINT,OU=Servers,OU=ZZZ,OU=YYY,DC=XXX,DC=nos,DC=thiscompany,DC=com' WHERE objectClass='printQueue'"

Is there a way to use wild cards?

Thanks ahead.
fengshui_1998

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top