Solved

Want to get domain name of multiple users

Posted on 2009-07-06
4
262 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
  • 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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
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…

808 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