Solved

Taskhost.exe stopping my View virtual machines from rebooting

Posted on 2016-07-19
2
94 Views
Last Modified: 2016-07-25
I am using VMware View for virtual desktops. Currently we are still running Windows 7 32-bit and won't be switching over to 10 until later this year or early next. I have a problem that is becoming a pain. We use mostly linked clones (non-persistent) desktops. We have them set to refresh on disconnect so that as soon as a user logs off, the desktop refreshes. Mostly this works OK.

However, for some reason I can't figure out, we will get some that just never log off. What this means is that I get a desktop that looks like it's connected in View Manger, but is really unusable as it's stuck trying to log off so the desktop can be refreshed. We'll end up with a number of these that will stay "connected" for days or weeks until I find them and manually take care of them. The obvious downside is that I have machines that are running, taking resources, but can't be used by anyone.

When I check the desktops, most of them have the I can't log off because of a running program message and that program is always taskhost.exe. I have found a MS KB on this: https://support.microsoft.com/en-us/kb/975777. I have downloaded the hotfix for my version of Windows 7, but when I run it, it says the Hotfix is not applicable. From reading more in the article and looking at the version of taskhost.exe that's on my virtual machines, I'm suspecting that I have a version of taskhost.exe that is newer than what's in the hotfix.

Does anyone have any other way or other fix for this issue?
0
Comment
Question by:jhyiesla
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 25

Accepted Solution

by:
Coralon earned 500 total points
ID: 41722090
The question becomes -- do you want to work around this or truly resolve it?

If you want to just work around it, then the easiest thing is to add a logoff script through GPOs and have the user run a simple script to kill it.  And for their experience, I'd have them disconnect first..
tsdiscon
tskill taskhost

Open in new window

That's pretty much it.. these utilities already builtin to Windows 7.

If you want to truly resolve it, you'll need to put in something like ProcMon and set it to record the logoff activities.  You'll put a copy of procmon on the image, and assign a logoff script by GPO to run procmon.
procmon /accepteula /minimized /saveas \\server\share\file.pml

Open in new window

You'd have them logoff, and then procmon should start running and dumping to the PML file.
I can't be sure if it will really capture something or not.. but it's worth a shot..  

You can also try and have someone logoff, and then you logon to the console of the machine, and run process explorer.. you might be able to find why taskhost is hanging.

Coralon
0
 
LVL 28

Author Comment

by:jhyiesla
ID: 41728237
Thanx... I'll user ProcMon to see if I can figure out what's really happening, but in any case, the task kill is a good idea as well.
0

Featured Post

Threat Trends for MSPs to Watch

See the findings.
Despite its humble beginnings, phishing has come a long way since those first crudely constructed emails. Today, phishing sites can appear and disappear in the length of a coffee break, and it takes more than a little know-how to keep your clients secure.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A look into Log Analysis and Effective Critical Alerting.
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…
This Micro Tutorial steps you through the configuration steps to configure your ESXi host Management Network settings and test the management network, ensure the host is recognized by the DNS Server, configure a new password, and the troubleshooting…

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question