Solved

Want to get domain name of multiple users

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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Losing network connectivity 8 70
business objects to connect to MSSQL 6 60
Copy the files from the share to network PCs 4 27
ADFS Redirection 4 30
Creating and Managing Databases with phpMyAdmin in cPanel.
Resolve DNS query failed errors for Exchange
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 tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

947 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now