<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to kill all but the newest Excel process with PowerShell</title>
	<atom:link href="http://www.phishthis.com/2010/01/09/how-to-kill-all-but-the-newest-excel-process-with-powershell/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phishthis.com/2010/01/09/how-to-kill-all-but-the-newest-excel-process-with-powershell/</link>
	<description></description>
	<lastBuildDate>Thu, 15 Sep 2011 01:27:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: Aaron</title>
		<link>http://www.phishthis.com/2010/01/09/how-to-kill-all-but-the-newest-excel-process-with-powershell/comment-page-1/#comment-10679</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Mon, 26 Apr 2010 16:30:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.phishthis.com/?p=157#comment-10679</guid>
		<description>Even better:

get-process excel &#124; sort-object -property &quot;Starttime&quot; -descending &#124; select-object -skip 1 &#124; stop-process

Or, using the default aliases:

ps excel &#124; sort -prop &quot;Starttime&quot; -desc &#124; select -skip 1 &#124; kill

And a general killall is: 

ps excel &#124; kill

Short and sweet enough that there&#039;s no need to add a function to my profile. :)</description>
		<content:encoded><![CDATA[<p>Even better:</p>
<p>get-process excel | sort-object -property &#8220;Starttime&#8221; -descending | select-object -skip 1 | stop-process</p>
<p>Or, using the default aliases:</p>
<p>ps excel | sort -prop &#8220;Starttime&#8221; -desc | select -skip 1 | kill</p>
<p>And a general killall is: </p>
<p>ps excel | kill</p>
<p>Short and sweet enough that there&#8217;s no need to add a function to my profile. :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

