Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


Find DHCP

Keywords:   DHCP

AddExtender("wwads32i.dll")

;  Set credentials
dsSetCredent("administrator", "xxxxx")

; Search the this machine.
sAdsiPath = "LDAP://grey/DC=Grey,DC=tree,DC=windowware,DC=com"  ; Is container.

; Get the paths of any objects that have the value for dhcp class in there object catagory proptery.
sSearch = "(objectCategory=DHCP-Class)" 

lPath = dsFindPath(sAdsiPath,  sSearch)

lPath = strreplace(lPath,@TAB, @CRLF)

Message("ADSI Paths for DHCP objects", lPath)


Article ID:   W14763