?
Solved

Query with ADS and get these details

Posted on 2007-08-09
3
Medium Priority
?
186 Views
Last Modified: 2010-03-05
Hi,

I want a script  to query the ads and get the
 Description
Username
NT login
Email Id
Of all users in the Domain.

Regards
Sharath
0
Comment
Question by:bsharath
  • 2
3 Comments
 
LVL 26

Accepted Solution

by:
Farhan Kazi earned 2000 total points
ID: 19663533
Click Start -> Run ->Cmd.exe

DSQuery * domainroot -filter "(&(objectCategory=Person)(objectClass=User)(sAMAccountName=*))" -Attr Description name sAMAccountName mail -limit 0 >C:\FileName.txt
0
 
LVL 11

Author Comment

by:bsharath
ID: 19663596
Thanks a lot this worked....

Farhan too busy @ work....

Not anwering as before...


0
 
LVL 26

Expert Comment

by:Farhan Kazi
ID: 19663651
Thanks Sharath,Yea actually Im on job assignment to different city so don't get much free time.
0

Featured Post

Industry Leaders: 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

This is my 3rd article on SCCM in recent weeks, the 1st (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Windows_Server_2008/A_4466-A-beginners-guide-to-installing-SCCM2007-on-Windows-2008-R2-Server.html) dealing with installat…
Welcome to my series of short tips on migrations. Whilst based on Microsoft migrations the same principles can be applied to any type of migration. My first tip Migration Tip #1 – Source Server Health can be found here: http://www.experts-exchang…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Suggested Courses

862 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