Simply input the computer name and PowerShell will return the name of the logged in user and the manufacturer of the computer.
Where yourpcname is the name of the pc or workstation you would like to find out what user is logged in. This will return what user is logged in. If you would like to see how long they have been logged in then go to event view on the server, then right click the server name and select connect another machine. Enter the PC name and then event viewer (security log) to see the historical data about logons. Allen White. Instructions. Click the Start button on your local computer, click on the Run option, type MSTSC into the Run window and hit Enter. Enter the IP address or name of your remote Windows server and hit Enter. When prompted, enter the login information for a user on the server with Administrator level access. 1 Right-click on a user name in the Terminal Services Manager to view options for managing users. 2  If the server is local to you instead of being remote, you can simply log in to the server locally instead of connecting to it remotely. up vote 8 down vote favorite. 5. I need to login to a remote into either a Win7 or Vista computer but when I connect I get a Logon Message Another user is currently logged on... but it does not specify who. Use the eventvwr to remotely view the security log for the remote computer, and scroll through the security logs until you find a login event for the other user: share | improve this answer. Find who is logged in to a remote computer through powershell. Simply input the computer name and PowerShell will return the name of the logged in user and the manufacturer of the computer.  Now when I logged in remotely, the user would immediately see a log in screen and be unable to see or interact with my Remote Desktop session. This worked fine for our uses. Now with Windows 7 Pro, the only way I can log in period is to create a second account and password and log into that second account. If your at home and want to login to the PC at the remote site and a user is logged in they will be disconnected (NOT logged off) meaning their session is still active in background and they will not lose any data, etc. Just fire up the command prompt or PowerShell and run this: query session /server:”KERBEROS-SP”. As we see in the screenshot there is one user logged into this computer, the Administrator account. If you want to check multiple computers just create a list in notepad and save it as a batch file to run. This clearly won’t work for a large quantity of servers, but it worked great for the 6 servers I needed to check. We often need to know who is currently logged on to a remote computer. With native Windows (up to and including XP) commands only: The first name in the list usually is the logged on user (try playing with the NET NAME command to learn more about the names displayed by NBTSTAT).  Note that you will need to set the following registry value on the remote computer: You could put the query command in a batch file, so users can just double click it to see who is logged into that computer. share | improve this answer. answered Apr 25 '14 at 16:29.  Use this command to determine who is logged into a computer of an already known IP address or Computer name.  Hello folks, atm i am writing a script to help administrating pc in my office. though i found out a lot of stuff myself, there still is one function i dont know how to turn into code: Finding out who (domain\account) is currently logged in on a remote machine. Sometimes we need this feature to find out who is using a machine without physically going there and taking a look. 
http://www.techieshelp.com/find-out-what-user-is-logged-into-a-pc/ http://www.ehow.com/how_5949640_determine-server-under-remote-desktop_.html http://serverfault.com/questions/229163/how-to-remotely-see-what-users-are-logged-into-windows-7-or-vista https://community.spiceworks.com/scripts/show/1166-who-s-logged-in-to-remote-pc http://answers.microsoft.com/en-us/windows/forum/windows_7-networking/remote-desktop-connection-sessions-and-logged-in/7b110d67-4316-421a-9a9d-e00e33782ec2 http://www.bradleyschacht.com/find-users-logged-into-remote-computer/ http://www.robvanderwoude.com/ntadmincommands.php http://superuser.com/questions/746038/how-can-i-tell-who-is-actively-logged-on-locally-or-remotely-a-windows-7-pc https://community.spiceworks.com/how_to/40336-use-cmd-to-return-the-logged-in-user-of-a-remote-computer https://www.autoitscript.com/forum/topic/42253-find-out-currently-logged-on-user-on-remote-machine/
see who is logged into a remote computer