Tuesday, March 20, 2007

Query and Reset Terminal Services Sessions Remotely

My users routinely abandon RDP sessions and i am locked out from getting into the server...I could use another server to check the status of the first one. As long as the logged in user has administrative rights on the non-accessible machine we can do this:

qwinsta /server:servername


> qwinsta /server:Blackjack
console 0 Conn wdcon
rdp-tcp 65536 Listen rdpwd
rdp-tcp#70 Tim 1 Active rdpwd
rdp-tcp#75 Ron 2 Discon rdpwd

Ron's session is disconnection as the status tells us. To terminate Ron's session I would type this:

rwinsta /server:Blackjack 2

The commands stand for:

qwinsta = Query WINdows STAtion
rwinsta = Reset WINdows STAtion

1 comment:

  1. Hi !.
    might , perhaps very interested to know how one can make real money .
    There is no initial capital needed You may begin to receive yields with as small sum of money as 20-100 dollars.

    AimTrust is what you thought of all the time
    The company represents an offshore structure with advanced asset management technologies in production and delivery of pipes for oil and gas.

    It is based in Panama with offices around the world.
    Do you want to become a happy investor?
    That`s your choice That`s what you desire!

    I`m happy and lucky, I started to get income with the help of this company,
    and I invite you to do the same. It`s all about how to choose a correct partner who uses your money in a right way - that`s it!.
    I take now up to 2G every day, and my first deposit was 1 grand only!
    It`s easy to start , just click this link http://adohyweca.jamminweb.com/mewijaw.html
    and lucky you`re! Let`s take our chance together to become rich