Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 166
  • Last Modified:

Windows: How do I determine my user ID from a command prompt

From a command prompt, how do I determine what userID I logged in under

I am running Windows 2008

Thanks
0
Anthony Lucia
Asked:
Anthony Lucia
3 Solutions
 
Mohammed KhawajaManager - Infrastructure: Information TechnologyCommented:
Run SET and look for username and if connected to domain then look at userdomaindomain.  You could also run WHOAMI to show you the username.
0
 
Christopher McKayMicrosoft Network AdministratorCommented:
you can type:

echo %username%

That'll give your logon name.

Hope this helps!

:o)

Bartender_1
0
 
Joshua GrantomSenior EngineerCommented:
whoami

is the easiest and its a good way to check to make sure you are using an elevated account in case you have separate user and admin accounts.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now