Security

List Local Group Membership

net localgroup “Administrators” > C:\Servers.txt

Original Article

List and Logoff RDP Users Remotely

To get a list of the Remote Sessions in the command window (Get the session Id of user to kick out):

qwinsta /server:SERVERIP

To disconnect the remote session:

rwinsta /server:SERVERIP SESSIONID

From http://superuser.com/questions/62498/kicking-logging-out-remote-windows-users