VMware View – Disconnect IDLE sessions

I have recently written an article on how to handle IDLE sessions in a VMware View environment. The title of the post was “VMware View – Disconnect, Logoff or Shutdown your VM when IDLE”. The post covered a simple method to monitor IDLE sessions based on mouse movements using a little free application available on the internet. As an action the little application would trigger system logoff.

Some people raised concern that a session disconnection method instead of logoff would be more useful and also allow the user to get back to the session on the same state. So, after a recent customer engagement I come up with a method to simply disconnect the session.

First, use the information provided in my first article on how to implement the IDLE monitoring solution and then utilise the the information bellow to kill the VMware View session.


If you wish only to disconnect the session and not logoff the user use the following command from from within the application of from a batch file: taskkill pcoip_server_win32.exe /F

This command will kill the PCoIP engine process and disconnect the session. However, the process is restarted once the user tries to logon to the desktop.

Additionally, if you still wish to force the logoff and close applications even if the have unsaved data, on Windows 7 its possible to issue the following command from a batch file: shutdown /l /f

UPDATE 08/06

My colleague Jeff O’Connor (@cloudpimps) pinged me with yet another method to cease the PCoIP session. Thanks Jeff! Just use the following command from from within the application of from a batch file: tsdiscon.exe


Skip to comment form

  1. We are looking to do this exact thing, but instead of running PCoIP, we run the RDP protocol for VMview Client. Can I accomplish the same thing by killing a different process?

  2. @Adam Lange
    RDP has a IDLE feature built into the protocol and that can be managed using standard Windows Group Policies. Please refer to Microsoft for managing group policies.

    • Simon Rowan on 05/27/2011 at 6:38 am

    Looks like in VIew 4.6 the user no longer has rights to kill this process. ANy workaround for this?

    • Simon Rowan on 05/27/2011 at 6:50 am

    D’oh, tsdiscon still works!

    • O. Lee on 02/14/2012 at 6:11 am

    Idle Monitor doesnt seems to work when user locks screen. Is there a solution for that?

  3. @O. Lee
    That it interesting… when I have some spare cycles I might work on a PS script to replace the Idle monitor tool.


    • DrewH on 03/12/2012 at 2:59 pm

    How can I access the 1st article on how to implement the IDLE monitoring. It looks like the 872 and 912 articles are the same.

  4. @DrewH
    You are correct. Something happened during a hosting provider migration ages ago.
    Let me try to restore some data and see if I can get that article back.
    Thanks for letting me know. In the meantime, you may Google for a tool could Idle Monitor. That is the free tool I am referring to in my article.


    • mario on 09/19/2012 at 5:03 am

    you can take a look at autologoff from wizardsoft. Has enough options to keep you happy and managed through gpo… http://wizardsoft.nl/autologoff/autologoff.html

    • David on 12/04/2015 at 5:40 am

    I like the idle monitor solution, but it seems that the settings are user specific. how are you guys getting timer and action settings to work across different user accounts?

  5. David, it’s been so long I wrote this post. I honestly don’t remember how it’s configured. I will rely on someone else’s knowledge.

Leave a Reply