Monday, December 1, 2008

Creating an OU

Creates a new organizational unit within Active Directory

Set objDomain = GetObject("LDAP://dc=fabrikam,dc=com")
Set objOU = objDomain.Create("organizationalUnit", "ou=Management")
objOU.SetInfo

This is a VB Script, this can be used by saving the file in .vbs file