Check if a User Account (ADSI or NT) is Disabled (VB Script)

Category:
Network/Internet
Type:
Snippets
Difficulty:
Beginning
Author:
Rowen Bankx

Version Compatibility: Visual Basic Script

More information:
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.

Declarations:

Code: