List AD-Group Member AND WHOSE TRUSTED DOMAIN with WinNT

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default List AD-Group Member AND WHOSE TRUSTED DOMAIN with WinNT

    I need a List of GroupMember and the Domain where the Members come from.
    Because I want to identify the Members from thr trused Domain.

    regards
    Thauhtopa

    This Function VB.NET is running, but is missing the Domain from the Users:
    -----------------------------------------------------------------------------
    Private Function CompareMemberAccount(ByVal strADGroup As String) As String
    Dim group As DirectoryEntry
    Dim x As DirectoryEntry
    Dim members As Object
    Dim member As Object

    group = New DirectoryEntry("WinNT://" & strDomainTarget & "/" &
    strADGroup)
    members = group.Invoke("Members")
    For Each member In members
    x = New DirectoryEntry(member)
    Console.WriteLine(x.Name)
    Next
    End Function 'CompareMemberAccount
    ----------------------------------------------------------------------------
    Thauhtopa Guest

  2. Similar Questions and Discussions

    1. Forms auth w/AD, web server not a member of domain
      I want to use Forms Authentication and authenticate user credentials against active directory. Using advapi32.dll and LogonUser I am able to do...
    2. Win2003 cann0t access winnt server, same domain
      OK this is a strange one THE NETWORK I use to have 2 NT 4 server. in this small network 1 - I installed a new server ( a third machine)...
    3. List of member for a group
      In article <4486609B-253F-4EDF-A4F0-F8A2C97B43C5@microsoft.com>, anonymous@discussions.microsoft.com says... You can use the ds* command line tools...
    4. Domain rules, eventhough I am not a member anymore.
      Move %windir%\security\database\secedit.sdb and the files in %windir%\security to a new directory. You need to be admin to do this. Then reboot. ...
    5. how to add user group member
      Hi folks, I have problem when add user into group member with admintool it has been limited up to hundred...user (don't know how many) when i add...
  3. #2

    Default RE: List AD-Group Member AND WHOSE TRUSTED DOMAIN with WinNT

    I find a solution
    The Path give me the Domain (Winnt://...........)
    ----------------
    x.Path.ToString
    ----------------

    "Thauhtopa" wrote:
    > I need a List of GroupMember and the Domain where the Members come from.
    > Because I want to identify the Members from thr trused Domain.
    >
    > regards
    > Thauhtopa
    >
    > This Function VB.NET is running, but is missing the Domain from the Users:
    > -----------------------------------------------------------------------------
    > Private Function CompareMemberAccount(ByVal strADGroup As String) As String
    > Dim group As DirectoryEntry
    > Dim x As DirectoryEntry
    > Dim members As Object
    > Dim member As Object
    >
    > group = New DirectoryEntry("WinNT://" & strDomainTarget & "/" &
    > strADGroup)
    > members = group.Invoke("Members")
    > For Each member In members
    > x = New DirectoryEntry(member)
    > Console.WriteLine(x.Name)
    > Next
    > End Function 'CompareMemberAccount
    > ----------------------------------------------------------------------------
    Thauhtopa Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139