Home > tips, vdi, virtualization > VMware View – Disconnect your session when the VM is IDLE

VMware View – Disconnect your session when the VM is IDLE

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 na 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.

image

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.

Aditionally, 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

Similar Posts:

  • Share/Bookmark
Categories: tips, vdi, virtualization
  1. MCMC_Support
    May 29th, 2010 at 02:28 | #1

    how would I be able to just do a disconnect, so the end user could pick up where they left off on their next login.

  2. May 29th, 2010 at 18:20 | #2

    @MCMC_Support
    If you force the logoff the session should be automatically disconnected.

  1. June 8th, 2010 at 07:52 | #1
Get Adobe Flash playerPlugin by wpburn.com wordpress themes