Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: List of Active Directory ADSI AD Domains
strFilter = "(NETBIOSName=*)" objConnection = CreateObject("ADODB.Connection") objConnection.Provider = "ADsDSOObject" objConnection.Open("Active Directory Provider") objRootDSE = GetObject("LDAP://RootDSE") cNC = objRootDSE.Get("configurationNamingContext") STRING = "<LDAP://" : cNC : ">;" : strFilter : ";" : "dnsroot,ncname;subtree" objRecordSet = objConnection.Execute(STRING) While !objRecordSet.EOF ncname = objRecordSet.Fields("ncname").Value dnsroot = objRecordSet.Fields("dnsroot").Value dnsroot = dnsroot[ArrInfo(dnsroot, 1 )-1] Pause('dns root',dnsroot) objRecordSet.MoveNext EndWhile Exit
Article ID: W18053
Filename: List of AD Domains.txt
File Created: 2011:09:20:11:10:28
Last Updated: 2011:09:20:11:10:28