Is there any way to detect remote session and kill remote session ?

Answered Is there any way to detect remote session and kill remote session ?

  • Monday, January 21, 2013 7:22 AM
     
     

    In some windows2003 server , we unmount disk before taking backup.

    When unmounting disk , if there is any remote access to disk, unmounting and backup fail.

    Is there any way to detect remote session and kill remote session ?

All Replies

  • Monday, January 21, 2013 7:44 AM
    Moderator
     
     Answered

    Please see following

    HOWTO – kill terminal services sessions remotely

     Check other machines (Please read this thread completely)

    how to kill PS sessions opened remotely? from the server

    Thanks


    Regards, Santosh

    I do not represent the organisation I work for, all the opinions expressed here are my own.

    This posting is provided "AS IS" with no warranties or guarantees and confers no rights.

    Whenever you see a helpful reply, click on Alternate Text Vote As Helpful & click on Alternate Text Mark As Answer if a post answers your question.

  • Monday, January 21, 2013 9:19 AM
     
     

    Thank you.

    Is it possible to do it in the batch ?

  • Monday, January 21, 2013 1:46 PM
     
     Answered

    Yes. Use quser & reset session

    _________________________________

    C:\>quser /?
    Display information about users logged on to the system.

    QUERY USER [username | sessionname | sessionid] [/SERVER:servername]

      username            Identifies the username.
      sessionname         Identifies the session named sessionname.
      sessionid           Identifies the session with ID sessionid.
      /SERVER:servername  The server to be queried (default is current).

    __________________________

    reset session sessionid /server:theserver_or_ip”,


    HTH
    Biswajit Biswas
    My Blogs |MCC |TNWiki Ninja

    Best regards Biswajit Biswas Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights. MCP 2003,MCSA 2003, MCSA:M 2003, CCNA, MCTS, Enterprise Admin



  • Monday, January 21, 2013 1:51 PM
     
     

    Yes. Use quser & reset session

    _________________________________

    C:\>quser /?
    Display information about users logged on to the system.

    QUERY USER [username | sessionname | sessionid] [/SERVER:servername]

      username            Identifies the username.
      sessionname         Identifies the session named sessionname.
      sessionid           Identifies the session with ID sessionid.
      /SERVER:servername  The server to be queried (default is current).

    __________________________

    reset session sessionid /server:theserver_or_ip”,


    HTH
    Biswajit Biswas
    My Blogs |MCC |TNWiki Ninja

    Best regards Biswajit Biswas Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights. MCP 2003,MCSA 2003, MCSA:M 2003, CCNA, MCTS, Enterprise Admin



    Yep. it is working for me ...!!!


    Regards, Srinivasu.Muchcherla