Delete an ADAM OU

Deletes an ADAM OU named Accounting.

VBScript Code


On Error Resume Next

Set objOU = GetObject("LDAP://localhost:389/dc=fabrikam,dc=com")
objOU.Delete "organizationalUnit", "ou=Accounting"