Solved

cannot find user in child domain using net user

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

832 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