Re: Export Usernames and Email Addresses

From: Jerold Schulman (Jerry_at_jsiinc.com)
Date: 02/10/05


Date: Thu, 10 Feb 2005 13:13:08 -0500

On Thu, 10 Feb 2005 08:11:39 -0800, "Dave B" <dbenivegna@sargentlock.com> wrote:

>Hello,
>
>I am trying to export usernames and email addresses from a
>particular user group in Active Directory. I can export
>users from the group using the NET GROUP command in DOS but
>that doesn't include email addresses. Do I have to use a
>LDAP query or is there an easier way to do it?
>
>Many Thanks!!
>
>Dave

DSQUERY / DSGET from the Active Directory command-line tools. See tip 6820 in the 'Tips & Tricks' at http://www.jsiinc.com

See tip 7714.

Type the following at a CMD.EXE window for an example:
dsquery group -name "Domain Admins"|dsget group -members|dsget user -samid -email -display

Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com



Relevant Pages

  • Export Usernames and Email Addresses
    ... I am trying to export usernames and email addresses from a ... particular user group in Active Directory. ...
    (microsoft.public.windows.server.active_directory)
  • RE: Control User Role
    ... into Active Directory from a BizTalk orchestration. ... This posting is provided "AS IS" with no warranties, ... Is there any way in Biztalk so I could check user group in Active ...
    (microsoft.public.biztalk.general)
  • Re: Best method for mass amounts of Workgroup Templates
    ... This assumes you have a server in a network domain, but not Active Directory ... create a separate user group for each department. ... the Everyone group to the public templates folder. ...
    (microsoft.public.word.docmanagement)
  • RE: How to create a NEW GROUP under ACTIVE DIRECTORY...
    ... I was wondering if you can recommend any sites or books to learn more about ... Active Directory and Windows 2003 Server. ... >> I'm having a problem creating a new USER group under our DOMAIN. ... >> How can I accomplish this small problem? ...
    (microsoft.public.windows.server.active_directory)
  • Re: Export Usernames and Email Addresses
    ... >particular user group in Active Directory. ... if ==@echo Syntax: GGME Group&goto:EOF ...
    (microsoft.public.windows.server.active_directory)