WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Samples from Users

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Get all Domain printers


AddExtender("WWADS44I.DLL")
; Domain to search.
; (Could be the path to your OU.)
sAdsiPath = "LDAP://red"

; Get all Domain printers
sSearch   = "(&(objectCategory=PrintQueue)(objectClass=printQueue))"
lPrinters = dsFindPath(sAdsiPath,  sSearch)
lPrinters = StrReplace( lPrinters, @TAB, @CRLF)

; Display the result.
Message("Printers", lPrinters)

Article ID:   W16812
File Created: 2007:07:03:14:26:22
Last Updated: 2007:07:03:14:26:22