Home All Groups Group Topic Archive Search About

Programmically Add Users & Groups

Author
8 May 2006 1:53 AM
Derek Hart
Is there a way in VB.NET to programmtically add NT users and groups?  Is
there a difference with Windows NT Server, Server 2003, Windows XP?  Is
there a namespace to do this type of thing?

Derek Hart

Author
8 May 2006 2:45 AM
jayeldee
Derek,

The namespace you're looking for is System.DirectoryServices.  Here's a
link to a quick walkthrough for adding objects.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbwlkwalkthroughcreatingadsiobjects.asp

I have a couple small support utilities that use the library and I
haven't had any problems running it on 2000/2003/XP.  NT, however, I am
unsure of.