Search the VMware Knowledge Base (KB)
View by Article ID

Horizon View Desktops hanging on logoff preventing composer operations, or users from logging in (2151503)

  • 0 Ratings

Symptoms

  • When users login they receive the error:

     "The view agent reports that this desktop is currently logging off a previous session. Please try again." or "Session closed remotely (session close by login from an alternate session)"

  • The Horizon View Manager shows that the user is logged in to an existing session.
  • Composer Operations (Refresh, Recomposh or Balance) fail.
  • Desktops are stuck deleting and the desktop shows a user session logged in.
  • When connection to the desktop console, you see dialogue boxes or displays logging off

Cause

An open application is preventing the user session from logging off. When Windows logs off, it attempts to close all open user applications. If an application is either hung, or presents a dialogue box requesting user input, the default behavior of Windows is to prompt the user how to handle the application.

This behaviour can cause the user session to hang or prevent the desktop from logging off.

Resolution

To resolve this issue, configure the following registry keys:

Set AutoEndtasks to 1. If the user process does not cleanly shutdown, this will tell Windows to close the process rather than prompt the user.

HKCU\Control Panel\Desktop | AutoEndTasks = 1
 

WaitToKillAppTimeout determines how long in miliseconds Windows will wait before prompting the user or closing the process. If AutoEndTasks does not equal 1, this will not prevent the issue described in this article. Changing this value is optional. The default value is 20000 (20 seconds).

HKCU\Control Panel\Desktop | WaitToKillAppTimeout = 20

Impact/Risks

When users logoff of their desktop sessions, unsaved data will be lost.

Additional Information

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback

  • 0 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.

What can we do to improve this information? (4000 or fewer characters)




Please enter the Captcha code before clicking Submit.
  • 0 Ratings
Actions
KB: