Solved

cannot find user in child domain using net user

Posted on 2009-07-02
2
1,013 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

910 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

21 Experts available now in Live!

Get 1:1 Help Now