How to View / Disconnect Remote Desktop Sessions from Commandline

in an elevated command prompt

to query:
qwinsta /server:servername

or

query session /server:servername
to disconnect:
rwinsta /server:servername SessionID
( for example: rwinsta /server:servername 3)

or

reset session SESSIONID /server:servername

SessionID is the ID that yout query had produced

Tagged:

Leave a comment

To The Point

Anything about Technology and Business

PowerScripting Podcast

Shownotes and links for the PowerScripting Podcast, a podcast to help people learn Windows Powershell

Learn Powershell | Achieve More

What is this Powershell of which you speak?