Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Active Directory
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



How to get user email address from <domain name\ad-ent id> using dsquery and dsget?

Active Directory


Reply
 
Thread Tools Search this Thread
  #1  
Old 21-04-2012
Member
 
Join Date: Apr 2012
Posts: 1
How to get user email address from <domain name\ad-ent id> using dsquery and dsget?

Hello,

Can someone please explain the command needed to obtain user's email address from <domain name>\<user ad-ent id> using DSQUERY and DSGET? I will need to invoke these dos commands from a perl script.

Thanks,
Teja

Reply With Quote
  #2  
Old 09-06-2012
Member
 
Join Date: Dec 2007
Posts: 2,268
Re: How to get user email address from <domain name\ad-ent id> using dsquery and dsget?

Can you test the below code and see if it works for you, if it doesnt then you can also use a LDAP querie too:

Code:
cmd /c dsquery.exe * -limit 0 -filter "(&(objectCategory=person)(objectClass=user)(user id=1234)(mail=*))"
Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Active Directory
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to get user email address from <domain name\ad-ent id> using dsquery and dsget?"
Thread Thread Starter Forum Replies Last Post
using Dsquery and DSGET etechelp Active Directory 1 21-07-2011 12:32 AM
Unable to run dsquery / dsget for large number of group members Dhananjay Active Directory 2 28-02-2010 08:30 PM
dsquery and dsget aconti Active Directory 1 01-11-2009 04:09 PM
User dsquery to obtain lanid, name for all users in the domain. bigboy Active Directory 2 30-04-2009 10:45 PM
List of Last Logon Time with dsget/dsquery Viensterrr Active Directory 1 17-09-2008 06:36 PM


All times are GMT +5.5. The time now is 03:00 PM.