I tried this, net user /domain | find "user1"
, it finds only the user name.
How can I search by the attribute Full Name?
net user "%USERNAME%" /domain | FIND /I "Full Name"
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With