How do i view the current login user list from windows server 2012?
In windows 2003 and 2008 we had terminal services manager (see screenshot below). However in Windows server 2012 it's gone .
Is there a way to locate the user list in windows 2012 remotely logging in?
(I tried connecting to Windows 2012 from Windows 2008, that's why you see "win2012" in the TSM groups list. But it didn't work out and that's not a solution to my problem either I was just trying to somehow manage remote users on the Win 2012 server.)
You can use qwinsta
from the command line to display the current RDP sessions.
qwinsta /server:computer01
SESSIONNAME USERNAME ID STATE TYPE DEVICE
console 0 Conn wdcon
rdp-tcp 65536 Listen rdpwd
administrator 2 Disc rdpwd
To kill a session use rwinsta
to delete the session specifying the ID number.
rwinsta /server:computer01 3
Here's the list of command line tools for Remote Desktop.
Or, you can use powershell.
Get-RDUserSession
and Disconnect-RDUser
Here's the list of those cmdlets.