Add an Organizational Unit to the Domain

Category:
Windows 2000/XP
Type:
Snippets
Difficulty:
Intermediate
Author:
Intelligent Solutions Inc.

Version Compatibility:

More information:
Organizational Units (OUs) are containers within Active Directory used for management of a set of related users, security groups, and computers. This code shows you how to add an Organizational Unit in Visual Basic.

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

Declarations:

Code: