Ok so, I am using the following code to add a member to a group. When I do this I get an error stating that there has been an unspecified error. Can someone please help?
Thanks!
Thanks!
Code:
strPath = "OU=Adl_GAE,OU=Students,OU=Users,OU=Adelaide,DC=GBS,DC=local"
groupDn = "CN=ADL_GAE,OU=GmailGroups,DC=GBS,DC=local"
Dim fullName As String = frmMain.tLast.Text & " " & frmMain.tFirst.Text
'Set Groups
Dim group As New DirectoryEntry(groupDn)
group.Properties("member").Add("CN=" & fullName & "," & strpath)
group.CommitChanges()