Solved

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

Posted on 2014-10-07
3
151 Views
Last Modified: 2014-10-08
From a command prompt, how do I determine what userID I logged in under

I am running Windows 2008

Thanks
0
Comment
Question by:Anthony Lucia
3 Comments
 
LVL 25

Accepted Solution

by:
Mohammed Khawaja earned 167 total points
ID: 40367208
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
 
LVL 22

Assisted Solution

by:Bartender_1
Bartender_1 earned 167 total points
ID: 40367211
you can type:

echo %username%

That'll give your logon name.

Hope this helps!

:o)

Bartender_1
0
 
LVL 16

Assisted Solution

by:Joshua Grantom
Joshua Grantom earned 166 total points
ID: 40367230
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Hallo! I guess almost every Windows Administrator must have got stumped with this question "Where does WINDOWS store a users cached credentials? Every user who had once logged onto a Server/Desktop while it was connected to the domain could sti…
Log files are useful in diagnosing and repairing problems.  This is a list of common log files and their standard locations that I've compiled.   While this is not exhaustive, it is a pretty good list that I've found to be useful.  I may update it f…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now