List Users and User Properties in a Given Domain (ADSI/VBScript)

Category:
Windows 2000/XP
Type:
Snippets
Difficulty:
Beginning
Author:
Francis Danta

Version Compatibility: Visual Basic.NET, Visual Basic Script

More information:
List all users and some of their properties in a Windows 2000 AD domain or Windows NT4 domain. If domain is a computer, all users of the local SAM database are displayed.

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

Declarations:

Code: