W2K3 and W2K8 based systems allow only 2 administrators to be remotly connected to them. Sometimes could happen that someone forgot to logoff or your own session has broken and you are unable to log off by logoff button.
Fortunately there is an easy solution. Windows 2000+ (includes Windows XP, 2003 and 2008) have two command-line tools called qwinsta and rwinsta that can query and reset a remote session. Also for resetting sessions you able to use reset tool.
COMMANDS & SYNTAX
qwinsta - list local sessions
qwinsta /server:servername - list sessions on 'servername'
qwinsta /server:servername /counter - list sessions on 'servername' & provide connection counts
rwinsta sessionnid /server:servername - ends session 'sessionnid' on server 'servername'
reset session sessionid /server:servername - ends session 'sessionnid' on server 'servername'
For example:
>qwinsta /server:white
SESSIONNAME USERNAME ID STATE TYPE
console 0 Conn wdcon
rdp-tcp 65536 Listen rdpwd
rdp-tcp#41 lints 1 Active rdpwd
rdp-tcp#45 bogdanov 2 Active rdpwd
>reset session 2 /server:white
or
>rwinsta 2 /server:white
No comments:
Post a Comment