Finding out who is logged into server/workstation or local machine?

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:

  1. Download Sysinternals Suite and extract it to a location of your choice
  2. Add the Sysinternals folder to your system path. If you don’t know how to do that- check this out from or google it yourselves
  3. 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