I Get an Error “The View Agent Reports That This Desktop Is Currently Logging off a Previous Session” when I Log in to My Desktop

Applies to: Nerdio Private Cloud (NPC)

The error message "The View agent reports that this desktop is currently logging off a previous session" is generally displayed when a VM has a process hanging up the VM upon logoff.  This is a known issue with VMWare and our steps below include a fix from VMWare that can be applied.  The same error can also manifest itself as “Available desktop resources are currently busy” or as “A desktop resource is unavailable”. 


Steps to troubleshoot the error:

  1. The first and foremost step is to troubleshoot the error to find its root cause. This error occurs when there is a process from the previous session hanging up the VM, preventing the session to log off. 
  2. Looking at the workstation via your RMM tool or RDP'ing into it may allow you to see what process is pending termination to allow the VM to completely logoff. 
  3. Looking at the "Task Manager" for the particular VM may provide some insights into what processes are still running for the user as well.

Steps to resolve the issue:

  1. The quick resolution, allowing the user to log in, is to perform a reset from the NAP, or the user can reset their own workstation using the steps given in the article below:
    I Get an Error "Available Desktop Resources Are Currently Busy" when I Log in to My Desktop
  2. Another way is setting processes to "Auto-end" at logoff:  Regardless of the root cause, the registry key shown below and described in this article (https://kb.vmware.com/s/article/2151503) should be implemented to "Auto-end" processes at logoff.  This will force quit the processes upon logoff. Refer article for more details: B - An Open Application Is Preventing the User Session from Logging off.

    Here's the excerpt from the article:

    Set AutoEndtasks to 1: If the user process does not cleanly shut down, this will tell Windows to close the process rather than prompt the user.
    HKCU\Control Panel\Desktop | AutoEndTasks = 1

    WaitToKillAppTimeout determines how long in milliseconds Windows will wait before prompting the user or closing the process. Note: 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

Was this article helpful?

0 out of 0 found this helpful
Have more questions? Submit a request

Comments (0 comments)

Article is closed for comments.