Solved

Taskhost.exe stopping my View virtual machines from rebooting

Posted on 2016-07-19
2
68 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
2 Comments
 
LVL 24

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

You may have a outside contractor who comes in once a week or seasonal to do some work in your office but you only want to give him access to the programs and files he needs and keep privet all other documents and programs, can you do this on a loca…
A quick guide on how to use Group Policy to create a custom power plan and set it active on Windows 7.
This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…

808 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