Question : cannot find user in child domain using net user

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

Answer : cannot find user in child domain using net user

'Net user /domain' queries the current domain, so you can't do what you want with that command.
Instead you can use 'dsquery user -samid ' 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 -s |dsget user -memberof -expand
dsquery user -samid |dsget user -memberof -expand
Random Solutions  
 
programming4us programming4us