Solved

Taskhost.exe stopping my View virtual machines from rebooting

Posted on 2016-07-19
2
52 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 23

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now