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

ADSI
plus

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

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
File Created: 2001:11:08:12:39:52
Last Updated: 2001:11:08:12:39:52