Killing zombie Google Chrome processes

This article is also available on the Microsoft TechNet Wiki.

When using the Google Chrome browser with of mix of normal and incognito windows, long-running sessions with multiple tabs can sometimes chew up a lot of memory. It certainly does not help either that Google Chrome spawns 10+ processes for any given browsing session. So when it comes time to close these browsing sessions it is not uncommon for Chrome to leave behind several zombie processes in the Windows Task Manager.

ChromeProcesses01

To terminate these remaining processes you can right-click them in the Task Manager and select End task. However, there is a faster way using either a PowerShell command or Windows Batch (.bat) file. Let’s examine both ways.

PowerShell

Within PowerShell, there is the Stop-Process Cmdlet. This will allow you to terminate all processes in one command. You can kill the process either by process name (minus the file extension) or by process ID. Since we want to end all Chrome processes, we would use the -processname parameter combined with the process name:

Stop-Process -processname Chrome

You can enter this command into the PowerShell window or save it to a PowerShell script (.ps1) file that you can run from the Windows PowerShell ISE.

Batch File

Another, simpler, way is to create a Batch (.bat) file. A batch file is a script used in Windows. It lists commands that can be run using the command line interpreter when the file is either called from the Command Prompt or double-clicked.

To stop processes, we can execute the taskkill command:

taskkill /F /IM chrome.exe /T

This command will use these parameters:

  • /F: Identifies that process(es) be forcefully killed.
  • /IM: Identifies the image name of the process to be killed
  • /T: Kills all child processes along with the parent process, commonly known as a tree kill
    If we combine this with a For Loop we can see the number of processes being terminated:

ChromeProcesses02

When run, the script will pause to display all terminated processes including the associated process ID (PID). As well, the total number of Google Chrome processes removed is also listed.

Conclusion

In this article, we saw how we can use both a PowerShell command and a Batch file to terminate hanging or zombie Google Chrome processes. Try either method if you have problems with Chrome processes remaining on your machine after all sessions are closed.

Script

Download a copy of this Batch script file from the TechNet Gallery:

References

Microsoft MVP renewal 2016

MVPrenewal2016

Today I was renewed as a Microsoft MVP in Visual Studio and Development Technologies for another year. I feel truly honoured to be recognised by Microsoft with this award. And since my renewal date is July 1st, this makes Canada Day extra special for me.

This will be my second year as an MVP and I am looking forward to continuing my work with the development community. Thanks to Microsoft for the award and to the Canadian MVP team (Sim & Jo) for their support.

Microsoft MVP Logo

CloudDevelop 2016: The return engagement

CloudDevelop logo

I will be speaking at CloudDevelop 2016 in Ohio this August. This is one of the few conferences in North America dedicated to cloud computing. CloudDevelop “aims to bring together people exploring every aspect of cloud computing.”

Last year was the first time I applied to the conference, and I was successful. The trip down to Columbus, OH from Canada was nice and the whole experience was awesome. I created this article about my experience.

My talk this year will be on Azure App Service to Create Web and Azure App Service to Create Web and Mobile Apps. Click this link to learn more about Microsoft Azure App Service.

If you are planning to attend what should be a great CloudDevelop conference, then please introduce yourself in the comments section below or at the conference. I look forward to speaking with you.

Related Articles:

Build Tour Toronto – June 10, 2016

Build Tour 2016

MAY 18, 2016 UPDATE: Registration is now OPEN via https://toronto.build2016.com/register.

The Microsoft Build Tour is returning to Toronto again this year. Just like last year, the event will feature a keynote that highlights the best of Build as well as sessions and demos. You can see a tentative schedule below.

The Toronto event will take place on Friday, June 10, 2016. This is the only event listed for Canada and the only one of the nine within North America. Microsoft Technical Evangelists and lead engineers from Microsoft’s Corporate Offices will deliver the content and it will offer relevant information for ISVs and App Developers. Also included during the day are an Ask the Experts Panel Discussion and Networking Opportunities. The best part is that it is FREE!

Event registration is not open yet. However, you can show your interest by submitting your name and email address. Microsoft will notify you when registration opens.

Agenda

08:30 – 10:00 Registration
10:00 – 11:30 Keynote
11:30 – 13:00 Session
13:00 – 14:00 Lunch
14:00 – 17:00 Sessions
17:00 – 18:00 Q & A Panel and Closing
18:00 – 19:00 Reception

Quiet Hours in Windows 10

This article is also available on the Microsoft TechNet Wiki.

Although Quiet Hours was available in Windows 8, Microsoft has made it more prominent within Windows 10 but at the expense of some of its functionality.

Quiet Hours allows you to remove app notifications from your desktop while you are working. Whereas in Windows 8 you could choose certain hours of the day to use Quiet Hours, in Windows 10 it is a manual On/Off feature. When it is on you will not see toast notifications on your screen but they will still queue in your Action Center for later review.

Setting Quiet Hours

Within the taskbar notification area, right click the Action Center icon and toggle Quiet Hours either On or Off from the menu.

QH01 QH02

Alternatively, open the Action Center by clicking it. If the Quiet Hours tile is not visible, click Expand to show all tiles.

QH03

Within the dialog window toggle the Quiet Hours tile between On and Off. When the tile is highlighted Quiet Hours is on.

QH04

Action Center

Once Quiet Hours is on click Action Center to see any received notifications. They will be grouped by app. Click each notification for more info. Dismiss a notification individually (by hovering over it until you see the x), by app group (hover over the app group name until you see the x), or all notifications at once (using the Clear all button).

QH05

Follow

Get every new post delivered to your Inbox.

Join 118 other followers