Get a List of All Disabled User Accounts in AD

Category:
System/API
Type:
Snippets
Difficulty:
Advanced
Author:
Anonymous

Version Compatibility: Visual Basic 6, Visual Basic Script

More information:
The included script is a little terse, but gets you a list of all the disabled accounts in active Directory. The TechNet article on "Reading user account attributes" will help decipher some of it.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: