Exporting users that below to a certain group - windows 2003 active directory

Ask a Question related to Windows Server, Design and Development.

  1. #1

    Default Exporting users that below to a certain group - windows 2003 active directory

    Is there any tool or script that will export the users names from a certain
    group from the active directory? I tried ldifde but it exports the cn
    names only. I looks at the script center, there was nothing there also.

    --
    Eric Sabo
    NT Administrator


    Sabo, Eric Guest

  2. Similar Questions and Discussions

    1. problem getting User Group Memebership in Active Directory
      I have a .aspx page that gets USERS GROUPS from the Active Directory after inputing the USERNAME of the user in a textbox. And this has been...
    2. Unable to create Users using Directory services in Windows 2003 Se
      I am unable to create new users using directory services in Windows 2003 server. But it is possible to create users with ASP.NET applications in...
    3. Active Directory Role-Based Authentication Fails for Users - Local
      Developed a web-based application that queries active directory for roles to associate the appropriate functionality to the user. After a recent...
    4. Enable additional users properties in Active Directory users and Computers
      "Mike Brannigan " <mikebran@online.microsoft.com> wrote in message news:O5qGXY1XEHA.808@tk2msftngp13.phx.gbl......
    5. Do you need Framework 1.1 to access Active Directory objects on a Windows 2003 server with ASP.NET?
      Some of our developers are having a problem making certain code work that reads the contents of OUs in our Active Directory. It reads fine when...
  3. #2

    Default Re: Exporting users that below to a certain group - windows 2003active directory

    On 6/3/04 10:53 AM, in article e#o6TqXSEHA.1732@TK2MSFTNGP09.phx.gbl, "Sabo,
    Eric" <sabo_e@cup.edu> wrote:
    > Is there any tool or script that will export the users names from a certain
    > group from the active directory? I tried ldifde but it exports the cn
    > names only. I looks at the script center, there was nothing there also.

    The easy way would be to go into Active Directory Users and Computers and
    right click on the right hand side and use the field chooser to select only
    user names

    The right click and export.

    If you have a lot of OU's and you use 2003 then go to AD Query at the top
    select the people you by defining then export that.

    It might now be a good solution but I wanted to put in my 10 cents.

    Cheers

    J5 - Eric A. Weintraub
    Sr. Network Administrator
    ScriptLogic Corp
    --


    Eric Weintraub Guest

  4. #3

    Default Re: Exporting users that below to a certain group - windows 2003 active directory

    In article <e#o6TqXSEHA.1732@TK2MSFTNGP09.phx.gbl>, [email]sabo_e@cup.edu[/email]
    says...
    > Is there any tool or script that will export the users names from a certain
    > group from the active directory? I tried ldifde but it exports the cn
    > names only. I looks at the script center, there was nothing there also.
    >
    >
    Take a shot at dsget:
    dsget group "CN=Backup Operators,ou=Test,dc=microsoft,dc=com" -members >
    C:\Members.txt

    will list all members of the Backup Operators group into the file C:
    \Members.txt. You can also customize the output, see the online help
    ('dsget group /?').

    HTH
    --
    Cheers,
    Marin Marinov
    MCT, MCSE 2003/2000/NT4.0,
    MCSE:Security 2003/2000, MCP+I
    -
    This posting is provided "AS IS" with no warranties, and confers no
    rights.
    Marin Marinov Guest

  5. #4

    Default Re: Exporting users that below to a certain group - windows 2003 active directory

    Thanks but that still produces them in schema format.

    Is there any way else?

    "Marin Marinov" <mlmarinov@askme.ca> wrote in message
    news:MPG.1b291fe023dcbb99989867@msnews.microsoft.c om...
    > In article <e#o6TqXSEHA.1732@TK2MSFTNGP09.phx.gbl>, [email]sabo_e@cup.edu[/email]
    > says...
    > > Is there any tool or script that will export the users names from a
    certain
    > > group from the active directory? I tried ldifde but it exports the cn
    > > names only. I looks at the script center, there was nothing there also.
    > >
    > >
    > Take a shot at dsget:
    > dsget group "CN=Backup Operators,ou=Test,dc=microsoft,dc=com" -members >
    > C:\Members.txt
    >
    > will list all members of the Backup Operators group into the file C:
    > \Members.txt. You can also customize the output, see the online help
    > ('dsget group /?').
    >
    > HTH
    > --
    > Cheers,
    > Marin Marinov
    > MCT, MCSE 2003/2000/NT4.0,
    > MCSE:Security 2003/2000, MCP+I
    > -
    > This posting is provided "AS IS" with no warranties, and confers no
    > rights.

    Sabo, Eric Guest

  6. #5

    Default Re: Exporting users that below to a certain group - windows 2003 active directory

    In article <#SHR1CZSEHA.3012@tk2msftngp13.phx.gbl>, [email]sabo_e@cup.edu[/email]
    says...
    > Thanks but that still produces them in schema format.
    >
    > Is there any way else?
    <snip>
    Well, in Notepad you can search and replace the portion after the name
    with nothing and also replace "CN=" with nothing and there you go ;)
    Anyway, you can also use:
    - net group "Domain Admins"
    - showmbrs.exe from Win2K Resource Kit
    - this script:

    Set objGroup = GetObject _
    ("LDAP://cn=Domain Admins,cn=Users,dc=sample,dc=com")

    For Each Member in objGroup.Members
    arrTmp = Split(Member.Name, "=",-1,1)
    Wscript.Echo arrTmp(1)
    Next

    - a custom application ;)

    HTH
    --
    Cheers,
    Marin Marinov
    MCT, MCSE 2003/2000/NT4.0,
    MCSE:Security 2003/2000, MCP+I
    -
    This posting is provided "AS IS" with no warranties, and confers no
    rights.
    Marin Marinov 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