none
terminate all RDP sessions for domain admin user

    Question

  • IS there a quick way I can terminate all RDP sessions for the domain admin account on all my servers in the domain?
    Sunday, August 29, 2010 6:19 PM

Answers

  • I dont see a quick way.

    but here is my suggestion.

    1. user "query session /servuer:<servername>"

    2. Use vbscript to run the above command and parse the output for the required user,

    3. grab the session id from the output

    4. run "logoff session /serveR:<servername> on the collected data.

     


    Thiyagu | MCTS/MCITP - Exchange 2007 | MCSE 2003[Messaging] | http://www.myExchangeWorld.com. This posting is provided "AS IS" with no warranties, and confers no rights.
    Monday, August 30, 2010 9:53 AM