Get these details from ADS

Hi,

I need a script which can fetch just these details from ADS.

Description,Title,Name, from "Exchange genera"l tab the "Mailbox store".
Need to get these details from a particular OU.

Regards
Sharath
LVL 11
bsharathAsked:
Who is Participating?
 
Farhan KaziSystems EngineerCommented:

DSQuery * "OU=ACCOUNTS,DC=TRAINING,DC=COM" -Filter "(sAMAccountType=805306368)" -Attr Description Title Name homeMDB -Limit 0  >MailEnabledUsers.txt
0
 
ahoffmannCommented:
I'd use ldifde.exe for that
0
 
Farhan KaziSystems EngineerCommented:
Hi Sharath,

Click Start -> Run -> Cmd.exe -> OK

DSQuery * "OU DN Here" -Filter "(sAMAccountType=805306368)" -Attr Description Title Name homeMDB -Limit 0 -L  >FileName.txt

Like:

DSQuery * "OU=ACCOUNTS,DC=TRAINING,DC=COM" -Filter "(sAMAccountType=805306368)" -Attr Description Title Name homeMDB -Limit 0 -L  >MailEnabledUsers.txt

Hope this helps!
Farhan
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
bsharathAuthor Commented:
Farhan can i get these details in a colum wise list...
0
 
ahoffmannCommented:
farhankazi, is dsquery an integral part of AD, or is it a separate executable?
0
 
Farhan KaziSystems EngineerCommented:
DSADD, DSGET, DSMOD, DSMOVE, DSQUERY and DSRM are native Windows 2003 command line tools (separate executables).
0
 
ahoffmannCommented:
Thanks farhankazi, I see M$ learns to implements what other LDAPs have (ldapsearch, ldapmodify)  since centuries ;-)
0
 
Farhan KaziSystems EngineerCommented:
very right :-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.