Export Details of all Computers in an Active Directory Domain
The below script will create a CSV file listing the Name, Description, Operating System and Service Pack level of all computers in an Active Directory domain. Set objRootDSE = GetObject(“LDAP://RootDSE”) strDNSDomain = objRootDSE.Get(“defaultNamingContext”) set objConn = CreateObject(“ADODB.Connection”) set objCmd = …