Question Adding OU hierarchy in AD

nebiyu.hailemariam

New member
Joined
Mar 16, 2016
Messages
1
Programming Experience
3-5
I am trying to add OUs under OUs using vb.net but I keep on failing to do so
Here is what I am looking to achieve:
I have OU - test and I would like to add another OU - Students in it: I got this part working as shown below.
Dim objDomain As DirectoryEntry = New DirectoryEntry("LDAP://OU=test,dc=UHS,dc=local")

objOU
= objDomain.Children.Add("OU=Students", "organizationalUnit")
objOU
.CommitChanges()Now, I am trying to add OU in Student - School and Another OU - Program. How do I do this?
Please help.
 
Back
Top