Check if a User Account (ADSI or NT) is Disabled (VB Script)
Version Compatibility: Visual Basic Script
This script checks whether an account is disalbed or not. It can be either an ADS (Active Directory Service, Win2000) account or SAM (NT4) account . It uses ADSI to accomplish this. Check out http://www.activxperts.com for more samples, components and tools
Instructions: Copy the declarations and code below and paste directly into your VB project.