Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find user Full name without User name in CMD?

I tried this, net user /domain | find "user1", it finds only the user name.

How can I search by the attribute Full Name?

like image 304
Vicheanak Avatar asked Oct 18 '25 10:10

Vicheanak


2 Answers

net user "%USERNAME%" /domain | FIND /I "Full Name"

like image 52
Kevin Still Avatar answered Oct 22 '25 00:10

Kevin Still


Use dsquery instead of net user if you want to search by full name. net user is not suitable for this kind of query:

dsquery user -name "joe average"

The command is part of the Remote Server Management Tools (RSAT).

If you already have the username and want to get more information about the user you can use the username directly with net user:

net user user1 /domain
like image 43
Ansgar Wiechers Avatar answered Oct 22 '25 01:10

Ansgar Wiechers