Solved

Want to get domain name of multiple users

Posted on 2009-07-06
4
265 Views
Last Modified: 2013-12-24
I want to know detail for domain name of  my 500 users
The user name is in my excel sheet and i want to fetch out their domain names

How can i do that?
0
Comment
Question by:Hardeep_Saluja
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 14

Accepted Solution

by:
Shabarinath Ramadasan earned 500 total points
ID: 24786637
You can use CSVDE or dsquery
If you are using CSVDE, no need to use a loop. CSVDE will fetch the value from CSF file one by one and process it.
If you are using dsquery, use a for loop.
dsquery * -filter cn=loginname forestroot -attr cn
Hope this helps.
Cheerio
Shaba
0
 
LVL 6

Author Comment

by:Hardeep_Saluja
ID: 24786766
how will csvde fetch from csf file..
pls clearly tell what command i need to use
0
 
LVL 14

Expert Comment

by:Shabarinath Ramadasan
ID: 24787212
Check this site which explains about CSVDE

http://www.computerperformance.co.uk/Logon/Logon_CSVDE.htm

Cheerio
Shaba
0
 
LVL 6

Author Closing Comment

by:Hardeep_Saluja
ID: 31600210
Solution  is partially correct.. Did not get exact answer of dsquery filter to apply for getting desired result
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article shows the method of using the Resultant Set of Policy Tool to locate Group Policy that applies a particular setting.
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question