Retrive last name and first name

Discussion in 'Active Directory' started by Ram, Aug 27, 2007.

  1. Ram

    Ram Guest

    Hi,
    I want to retrieve the last and first names of all the users in my domain.
    Kindly suggest how I can achieve this.

    Regards
    Ram
     
    Ram, Aug 27, 2007
    #1
    1. Advertisements

  2. HEllo,

    it will depends what you want to do with...
    csvde -f output.csv -r "(objectClass=user)" -l "givenname,sn"
    (open it from excel, choosing comma as separator)

    is it ok or you need something else ?
     
    Mathieu CHATEAU, Aug 27, 2007
    #2
    1. Advertisements

  3. Ram

    Ram Guest

    Thanks Mathieu. I also got the result from the below command.

    dsquery user dc=domain_name,dc=com -limit 0 | dsget user -fn -ln > output.txt

    Regards
    Ram
     
    Ram, Aug 28, 2007
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.