VBScript and PowerShell Programs to search Active Directory for objects meeting your criteria.
Program to find objects in Active Directory using the LDAP provider, given only the value of the cn (Common Name) attribute.
Program to search Active Directory for user objects where the displayName attribute is not unique.
Program to list all Domain Controllers in the domain. Outputs the name of each Domain Controller, its DNS host name, and the name of the site it resides in.
Program to list all servers in the domain. Outputs the Distinguished Name of each server.
Program to document domains, containers, organizational units, and groups. The program also documents the number of user and computer objects in each container and group. Also, a PowerShell script that documents the forest and all domains, including forest and domain functional levels (FFL and DFL), all FSMO role holders, all sites, and all Global Catalog servers.
Program to create a text file listing the names of all users in the domain. The file contains the NT name of each user, also called the "pre-Windows 2000 logon name". Uses the WinNT provider.
Program to create a Microsoft Excel spreadsheet listing the Distinguished Names of all users in the domain. Uses the LDAP provider and ADO.
Program to identify, disable, and move inactive computer accounts. An equivalent PowerShell script is also provided.
Program to determine the role of all computers in the domain. Each computer is identified as a workstation, member server, or domain controller.
Program to inventory all computers in the domain. Documents operating system, service pack, and hot fix information for all computers in a Microsoft Excel spreadsheet.
Alternative methods to determine that a remote computer is available.
Documents the organizational structure indicated by the Manager and Direct Reports fields on the "Organization" tab of the user properties dialog of Active Directory Users and Computers. An equivalent PowerShell script is also provided.
Documents the SID prefix value of the local SAM Account database of every computer in the domain. Can be used to find duplicates.
Programs to reset the local Administrator user password on all workstations in the domain.
Program to use ADO to query Active Directory for information. The program prompts for the base of the search, the LDAP syntax filter, and the comma delimited list of attribute values to retrieve. This program can be used to test various filters. An equivalent PowerShell script is included.