Solved

cannot find user in child domain using net user

Posted on 2009-07-02
2
1,002 Views
Last Modified: 2013-12-24
Dear All Experts,

I am wondering if its possible to lookup a user from a child domain using the net user command ?
It returns "user cannot be found"  while trying from the parent domain . But it is successful when logged on to a child domain server.

Regards,

Moey_G
0
Comment
Question by:Moey_G
2 Comments
 
LVL 31

Accepted Solution

by:
Henrik Johansson earned 500 total points
ID: 24776981
'Net user <username> /domain' queries the current domain, so you can't do what you want with that command.
Instead you can use 'dsquery user -samid <username>' to query other DCs/domains and pipe it to 'dsget user -memberof' to display the group memberships. dsquery command will by default query the current domain for the contacted DC. dsquery and dsget commands are available on DCs or by installing adminpak.msi

dsquery user -samid <username> -s <chlidDC>|dsget user -memberof -expand
dsquery user -samid <username> <baseDN>|dsget user -memberof -expand
0
 

Author Comment

by:Moey_G
ID: 24793306
Many thanks for the explanation and alternative.

Moey_G
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Join & Write a Comment

Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
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…

708 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

17 Experts available now in Live!

Get 1:1 Help Now