
One of the main features of Windows 10 is its ability to manage multiple user accounts. But suppose you have left your laptop somewhere and later find out that it has been unlocked. Only a person who knows the password of any of the user accounts should have done so. We would obviously be curious to know which user is logged in. This can be done locally on your computer or remotely from any other computer. This process does not require the installation of third party apps. It can be easily run from the command prompt.
Read also: - How to know who has logged into your PC in your absence and when
Let's now move on to the steps you need to follow to find out who is currently logged into your Windows 1o system. This can be achieved in three ways: Using user, wmic or whoami queries command Follow them in the order shown below.
METHODS TO FIND WHO LOGGED IN TO WINDOWS 10 PC
METHOD 1: using the Whoami command
This basically stands for Who Am I? When you enter this command, the currently active user is displayed in the command prompt.
- Open the file Run window by pressing the Windows key + R.
- In the text box provided below, type cmd and press Enter.
- Once the Command Prompt window opens, you will need to type the command who I am and hit the Enter button
The window displays the current users and details as shown in the screenshot above.
METHOD 2: Using the command - Query user
This is another command to view information. What makes it different from the above method is that this can be accomplished both locally and remotely.
For local computer
- Open the Run window by pressing the Windows key + R. Type the text cmd in the box provided and press Enter.
- Once the command prompt opens, you will need to type the command query the user.
- By pressing the Enter button, you will get all the details associated with the user.
From a remote computer
Suppose you are on another computer and you need to know who is logged into your system. Follow the steps mentioned below.
- Open the file Command Prompt form the Run window as described above.
- When asked to enter the command, type the command given below.
user / server query: computername
Computername in the above command is the name of the system for which you need to get details. In my case it is hp. Make sure you provide it in the correct format.
METHOD 3: Using the wmic command
This stands for Windows Management Instrumentation command line which provides a scripting experience for all computers connected via WMI. There are various versions for this. Here we will use it to find user details.
- Open the file Command Prompt from the Run window by typing cmd in its text box.
- Type the command given below there.
WMIC / NODE: COMPUTERSYSTEM GET USERNAME .
SYSTEMNAME in the above command it should be replaced by the required system name. You will get the details as shown above.
That's all. I hope you found this article helpful.