Solved

dsget search by samid

Posted on 2009-04-15
4
801 Views
Last Modified: 2012-05-06
I have a username/samid and need to find the email address of this user.

I know only the account name/samid of the user and want to find the email of this user.
Can I do that with dsget or dsquery? I know how to search for a full name of a person but I cant seem to find any info on how to search by samid, is it possible?

I tried "dsget user -samid username", but that didnt work..
0
Comment
Question by:bergsprekken
  • 2
4 Comments
 

Accepted Solution

by:
rmcgregor earned 400 total points
ID: 24146888
Not exactly.

You should use dsquery to search this user and dsget - to get details.

like:
dsquery user -samid username* | dsget user -email
0
 
LVL 4

Assisted Solution

by:anuroopkoka2005
anuroopkoka2005 earned 100 total points
ID: 24146909
Try to download the free script from the below link which will display the user details:

http://the-roberts-family.net/vbscript/fu.htm
0
 
LVL 4

Expert Comment

by:anuroopkoka2005
ID: 24146916
this simple script will give u all the details about the user account...
0
 

Author Closing Comment

by:bergsprekken
ID: 31570362
Thanks for the command description and exmple rmcgregor it was exactly what i needed. And thanks for posting the script anuroopkoka2005.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
exchange, active directory 4 44
PowerShell .lastLogonTimestamp off 11 24
EXCHANGE, ACTIVE DIRECTORY 1 28
Server timing 4 18
Companies that have implemented Microsoft’s Active Directory need to ensure that the Active Directory is configured and operating properly. If there are issues found and not resolved, it eventually leads the components to fail or stop working and fi…
Introduction You may have a need to setup a group of users to allow local administrative access on workstations.  In a domain environment this can easily be achieved with Restricted Groups and Group Policies. This article will demonstrate how to…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

816 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now