The easiest way to find out who is logged into a particular workstation/server or even your local machine, I use psloggedon tool provided as a part of Mark Russinovich’s Sysinternals Suite
Here are the steps involved in finding user logins:
- Download Sysinternals Suite and extract it to a location of your choice
- Add the Sysinternals folder to your system path. If you don’t know how to do that- check this out from windowsitpro.com or google it yourselves
- Open Windows Powershell and enter the following command :
psloggedon [-l] [-x] [\\computername]
-l Show only local logons
-x Don't show logon times
Example: psloggedon –l \\test-server-1