WHOAMI

Posted On 2007-04-25 by FortyPoundHead
Keywords: Command Reference Resource Kit
Tags: Windows Commandline Windows
Views: 1511


Displays the username and domain for the currently logged in user.

The whoami output is the same as the 2 environment variables %USERDOMAIN% and %USERNAME%.

So the same output can be achieved with

ECHO %USERDOMAIN%\%USERNAME%

Under Windows 2000 there is an additional switch WHOAMI /all - this shows all permissions and group memberships.


About the Author

FortyPoundHead has posted a total of 1974 articles.


Comments On This Post

No comments on this post yet!


Do you have a thought relating to this post? You can post your comment here. If you have an unrelated question, you can use the Q&A section to ask it.

Or you can drop a note to the administrators if you're not sure where you should post.


Your IP address is:23.20.165.182

Before you can post, you need to prove you are human. If you log in, this test goes away.




Code Links