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 = …

Read more

VBS List Properties of All AD Users

This script creates a CSV file listing the below details for all Active Directory users. The script could be very easily extended to include any extra user properties. sAMAccountName displayName description TerminalServicesProfilePath TerminalServicesHomeDirectory TerminalServicesHomeDrive ProfilePath HomeDirectory HomeDrive scriptPath msNPAllowDialin ‘ ——————————————————————————— …

Read more

Get the Users AD Site Name

This tiny VBS script will return the current users Active Directory site name, which is very useful in a login script for doing things like adding printers or mapping drives based on what site the user is at Set objADSysInfo …

Read more