Thursday, August 9, 2012

RDP Session view and disconnect users from CMD

To see who is on the local RDP sessions using command prompt as an administrator run:


If it is a remote server you are trying to view use the /server: server name or IP as shown below:

c:\qwisnta /server:
c:\qwisnta /server:PDC1

You will see a display showing the following:

Sessionname Username  ID  State         Type  Device
console          koppihle3    2   Active

To disconnect Koppihle3 use c:\rwisnta /server:servername ID# as shown below

c:\rwinsta /server:PDC1 2

Give it a second or two to process the log off especially if using roaming profiles

To confirm the session is disconnected run the qwinsta query again

No comments:

Post a Comment