Windows PowerShell
Copyright (C) 2014 Microsoft Corporation. All rights reserved.
PS C:\Windows\system32> qwinsta
SESSIONNAME USERNAME ID STATE TYPE DEVICE
services 0 Disc
>rdp-tcp#30 bbrowne 2 Active
otheruser 4 Disc
console admin 11 Active
rdp-tcp 65536 Listen
PS C:\Windows\system32> rwinsta 4
PS C:\Windows\system32> qwinsta
SESSIONNAME USERNAME ID STATE TYPE DEVICE
services 0 Disc
>rdp-tcp#30 bbrowne 2 Active
console admin 11 Active
rdp-tcp 65536 Listen
PS C:\Windows\system32>
Last active
April 17, 2018 03:33
-
-
Save bradbrowne/2c6c03e4b98340506cd1ed4995691840 to your computer and use it in GitHub Desktop.
Windows 2012 has removed the Remote Desktop Services Manager tools that provide a GUI to view and kill user sessions connected to a server and so now you have to use the command line to perform this.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Make sure the command prompt is "Run as Administrator", otherwise you will not be able to kill the session!