Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 114
  • Last Modified:

Taskhost.exe stopping my View virtual machines from rebooting

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
jhyiesla
Asked:
jhyiesla
1 Solution
 
CoralonCommented:
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
 
jhyieslaAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now