?
Solved

cannot find user in child domain using net user

Posted on 2009-07-02
2
Medium Priority
?
1,119 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 31

Accepted Solution

by:
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
0
 

Author Comment

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

Moey_G
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

In this article, I’ll look at how you can use a backup to start a secondary instance for MongoDB.
Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
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…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

764 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