RDP Session view and disconnect users from CMD
To see who is on the local RDP sessions using command prompt as an administrator run:
c:\qwinsta
If it is a remote server you are trying to view use the /server: server name or IP as shown below:
c:\qwisnta /server:10.0.0.1
or
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
c:\qwinsta
If it is a remote server you are trying to view use the /server: server name or IP as shown below:
c:\qwisnta /server:10.0.0.1
or
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
Comments
Post a Comment