Tuesday, March 18, 2014

How to get current user on Windows from command line

Windows provides lot many commands and one of them is to get the current logged in user name.
The command to view the current user is

whoami

This command comes in handy when you are working in Hyper-V cores or Windows Core servers.
Hope that helps someone out there on internet :-)

No comments: