Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Distributed Applications / July 2004

Tip: Looking for answers? Try searching our database.

Enumerate User groups in vb.net

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Enumerate NT Domain groups and user info - 24 Feb 2004 19:51 GMT
Can any body PLease send me  code for enumearating NT Domain(Not ADS) users and group info using vb.net(2003)

Thank you for your help
DotNetJunkies User - 29 Jul 2004 13:24 GMT
Hope this helps

       Dim DEeqp, DEusr As DirectoryEntry
       Dim ObjGroups As Object
       Dim ObjGroup As Object
       Dim StrGroups As String

       DEeqp = New DirectoryEntry("WinNT://" & Environment.MachineName & ",computer")
       DEusr = DEeqp.Children.Find("Rick", "user")
       ObjGroups = DEusr.Invoke("groups")
       For Each ObjGroup In ObjGroups
           StrGroups = StrGroups & Chr(13) & Chr(10) & ObjGroup.Name
       Next
       MsgBox(StrGroups)

---
DotNetJunkies User - 29 Jul 2004 13:25 GMT
       Dim DEeqp, DEusr As DirectoryEntry
       Dim ObjGroups As Object
       Dim ObjGroup As Object
       Dim StrGroups As String

       DEeqp = New DirectoryEntry("WinNT://" & Environment.MachineName & ",computer")
       DEusr = DEeqp.Children.Find("Rick", "user")
       ObjGroups = DEusr.Invoke("groups")
       For Each ObjGroup In ObjGroups
           StrGroups = StrGroups & Chr(13) & Chr(10) & ObjGroup.Name
       Next
       MsgBox(StrGroups)

---

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.