cannot find user in child domain using net user

Posted on 2009-07-02
Medium Priority
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.


Question by:Moey_G
LVL 31

Accepted Solution

Henrik Johansson earned 2000 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

Author Comment

ID: 24793306
Many thanks for the explanation and alternative.


Featured Post

Build your data science skills into a career

Are you ready to take your data science career to the next step, or break into data science? With Springboard’s Data Science Career Track, you’ll master data science topics, have personalized career guidance, weekly calls with a data science expert, and a job guarantee.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

I’m willing to make a bet that your organization stores sensitive data in your Windows File Servers; files and folders that you really don’t want making it into the wrong hands.
An introductory discussion about Oracle Analytic Functions which are used to calculate or compute Aggregate values, based on a group of rows.
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.
Planning to migrate your EDB file(s) to a new or an existing Outlook PST file? This video will guide you how to convert EDB file(s) to PST. Besides this, it also describes, how one can easily search any item(s) from multiple folders or mailboxes…

624 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