Posted By: Robert Shelton, Jr. | Nov 1st, 2005 @ 7:28 PM | 50,301 Views | 13 Comments

Federal Developer Evangelist, Robert Shelton, takes you through a 8 minute walkthrough/demonstration of how to create a group in active directory with .NET and to add users to that group.  This demonstration is using the DirectoryServices namespace of the .NET framework.





You can find the code at my blog: http://sheltonblog.com 


My other Programming AD Screen Casts:
- Searching AD with .NET:
http://channel9.msdn.com/Showpost.aspx?postid=132740
- Adding users to Active Directory with .NET
http://channel9.msdn.com/showpost.aspx?PostID=130700
List of Group attributes for Active Directory:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adschema/adschema/c_group.asp
List of values for the groupType Attribuet:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adschema/adschema/a_grouptype.asp

~Robert

Media Downloads:
Rating:
1
0
I wish I had found this page 3 days ago.  The code sample that I was working off of was this: http://msdn2.microsoft.com/en-us/library/ms180904(vs.80).aspx

That says:

The following Visual Basic .NET example demonstrates how to add a single member to a group.

Visual Basic
' Bind to the group.
Dim group As New DirectoryEntry(groupDN)

' Add the user to the group.
group.Properties("member").Add(userDN)

' Commit the changes to the group.
group.CommitChanges()

Can anyone tell me what this sample is supposed to do? Is it incorrect? I tried to post Community Content that it didn't work and I successfully used group.invoke("Add",userDN) instead. But my browser just goes into some kind of loop.

Alexa321
Alexa321
Hey its me.

This has solved a problem for me too, I'm glad I found this page. I'm also pleased that I stumbled across discount voucher information.

I think it's a good idea to explore how an agent-isolated model can be used to simplify expressing "ownership" of the UI. It certainly seems worth exploring in some depth. Thesis.

Federal Developer Evangelist, Robert Shelton, takes you through a 8 minute walkthrough/demonstration of how to create a group in active directory with .NET and to add users to that group.  This demonstration is using the DirectoryServices namespace of the .NET framework..thanks for sharing your views..
 Free online games .
Regards,


Microsoft Communities