Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Want to get domain name of multiple users

Posted on 2009-07-06
4
Medium Priority
?
276 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 1500 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

Lotus Notes has been used since a very long time as an e-mail client and is very popular because of it's unmatched security. In this article we are going to learn about  RRV Bucket corruption and understand various methods to Fix "RRV Bucket Corrupt…
Let's recap what we learned from yesterday's Skyport Systems webinar.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

730 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