Import contacts from a csv file using VbScript

Download ContactImport.vbs

This script will create contacts in Active Directory based on a formatted CSV file. It was written to allow automatic synchronisation of contacts using a CSV file as the source.
more >>

Listing all domains in a forest

These snippets of code shows how to search Active Directory using LDAP to return all domains in the current Forest (based on current authentication).
more >>

Active Directory, VbScript & testing group membership

When it comes to testing for group membership in Active Directory with VbScript there are a lot of different options. The following examples intend to demonstrate the basic to the complex.
more >>

IPv4 subnet math with VbScript

At times it can be very convenient to be able to work with IP Addresses and subnetting in VbScript. This collection of functions handles subnet math in VbScript.

A PowerShell version of these functions can be found here.
more >>

Microsoft DNS & stale records

This post explains how to identify and report on stale records in a dynamically updated Microsoft DNS zone.
more >>

VbScript: isMemberOfPartialAttributeSet

This small script will list all attributes listed in the Active Directory Schema which have been set to replicate into the Global Catalog. Inclusion in the Global Catalog is defined by setting the attribute “isMemberOfPartialAttributeSet” to True.
more >>

VbScript: GetObjectDN

Converts an NT user name into a Distinguished Name (object path) in Active Directory using the NameTranslate interface.
more >>

VbScript: GetStores

A VbScript function to retrieve all Exchange Information Stores from Active Directory, returning the results as a Dictionary object containing the store name and store distinguishedName.
more >>

Microsoft DNS & static records

Windows 2008 has an improved user interface for DNS. The main console includes details of a records time stamp and whether or not the record is Static. Life isn’t quite so easy with Windows 2003. However, as each static record has a time stamp set to 0 they can be found with a little work.
more >>