|
| ||||||||||
| Tags: domain, dsget, dsquery, email address |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| How to get user email address from <domain name\ad-ent id> using dsquery and dsget?
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 |
|
#2
| ||||
| ||||
| 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=*))"
__________________ Education, Career and Job Discussions |
![]() |
|
| Thread Tools | Search this Thread |
| |
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 | 20-07-2011 11:32 PM |
| Unable to run dsquery / dsget for large number of group members | Dhananjay | Active Directory | 2 | 28-02-2010 07:30 PM |
| dsquery and dsget | aconti | Active Directory | 1 | 01-11-2009 03:09 PM |
| User dsquery to obtain lanid, name for all users in the domain. | bigboy | Active Directory | 2 | 30-04-2009 09:45 PM |
| List of Last Logon Time with dsget/dsquery | Viensterrr | Active Directory | 1 | 17-09-2008 05:36 PM |