Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
AddExtender("wwads34i.dll") ; Assumes computers are in this container. sComputers = "LDAP://shamrock/CN=Computers,DC=jclass,DC=org" lComputers = dsGetChldPath(sComputers, "computer") ; Iterate through computer list. nCount = ItemCount(lComputers, @TAB) For x=1 To nCount ; Get the role. sCompPath = ItemExtract(x, lComputers, @TAB ) sRole = dsGetProperty(sCompPath, "machineRole") ; Display the result. Message(sCompPath, sRole) Next
Article ID: W16789
File Created: 2007:07:03:14:26:16
Last Updated: 2007:07:03:14:26:16