Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Taskhost.exe stopping my View virtual machines from rebooting

Posted on 2016-07-19
2
Medium Priority
?
95 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 2000 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

On some Windows 7 (SP1) computers, Windows Update becomes super slow even the computer is reasonably fast.  There's one solution that seemed to have worked well for me (after trying a few other suggested solutions).
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 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.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

671 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