Get current logged in user name command line (CMD)

whoami

Example:

c:\>whoami
cmdline\administrator

 

Leave a Reply

You must be logged in to post a comment.