{"id":636,"date":"2012-04-19T19:32:17","date_gmt":"2012-04-19T19:32:17","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=636"},"modified":"2013-10-08T21:31:07","modified_gmt":"2013-10-08T21:31:07","slug":"application-not-responding-here%e2%80%99s-how-to-kill-processes-with-powershell","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=636","title":{"rendered":"Application Not Responding? Here\u2019s How to Kill Processes with PowerShell"},"content":{"rendered":"<p><a href=\"http:\/\/www.howtogeek.com\/wp-content\/uploads\/2012\/04\/pshelltwo.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.howtogeek.com\/wp-content\/uploads\/2012\/04\/pshelltwo_thumb.png\" border=\"0\" alt=\"pshelltwo\" width=\"654\" height=\"254\" \/><\/a><\/p>\n<p>Ever have one of those days where programs just aren\u2019t cooperating?\u00a0 You try terminating a program, but it doesn\u2019t <em>respond<\/em>?\u00a0\u00a0 PowerShell can give you some extra fire power on those days.<\/p>\n<h3>How Do I Stop A Program In PowerShell?<\/h3>\n<p>1.\u00a0 The long command name <em>stop-process<\/em> can be shortened to <em>kill.<\/em><\/p>\n<p><a href=\"http:\/\/www.howtogeek.com\/wp-content\/uploads\/2012\/04\/image1310.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.howtogeek.com\/wp-content\/uploads\/2012\/04\/image13_thumb.png\" alt=\"\" width=\"366\" height=\"144\" \/><\/a><\/p>\n<p>2.\u00a0 If you know the numeric process that you\u2019re wanting to stop, you  can enter it.\u00a0 However, like most Window\u2019s users, we know the name of  the program we want to stop, so entering the name would be more  convenient.\u00a0 The code below shows the next step (entering \u2013processname  to specify to PowerShell that it is going to stop a process with a name  of what we want).<\/p>\n<pre>kill -processname<\/pre>\n<p>3.\u00a0 Next, we need to know the name of the process we want to stop.\u00a0 If we want to stop Chrome, for instance, we would enter:<\/p>\n<pre>kill -processname chrome<\/pre>\n<p><a href=\"http:\/\/www.howtogeek.com\/wp-content\/uploads\/2012\/04\/image1710.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.howtogeek.com\/wp-content\/uploads\/2012\/04\/image17_thumb.png\" alt=\"\" width=\"259\" height=\"111\" \/><\/a><\/p>\n<p>If we hit enter (and Chrome was open), the program would end.\u00a0 <strong>Important note:<\/strong> some processes aren\u2019t named what you think.\u00a0 You can locate the name of  the processes by starting task manager and reviewing the processes.<\/p>\n<p><a href=\"http:\/\/www.howtogeek.com\/wp-content\/uploads\/2012\/04\/image251.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.howtogeek.com\/wp-content\/uploads\/2012\/04\/image25_thumb.png\" alt=\"\" width=\"531\" height=\"463\" \/><\/a><\/p>\n<p>Notice that Google Chrome is listed as chrome, while the calculator  is listed as calc.\u00a0 In order to stop the calculator we would type:<\/p>\n<pre>kill -processname calc<\/pre>\n<p>4.\u00a0 If we want to stop multiple process such as Chrome, calculator and Excel, we would separate the processes by a comma:<\/p>\n<pre>kill -processname chrome, calc, excel<\/pre>\n<p><a href=\"http:\/\/www.howtogeek.com\/wp-content\/uploads\/2012\/04\/image222.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.howtogeek.com\/wp-content\/uploads\/2012\/04\/image_thumb51.png\" alt=\"\" width=\"629\" height=\"488\" \/><\/a><\/p>\n<p>The above command would kill Google Chrome, the calculator and Microsoft Excel.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ever have one of those days where programs just aren\u2019t cooperating?\u00a0 You try terminating a program, but it doesn\u2019t respond?\u00a0\u00a0 PowerShell can give you some extra fire power on those days. How Do I Stop A Program In PowerShell? 1.\u00a0 The long command name stop-process can be shortened to kill. 2.\u00a0 If you know the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[59],"tags":[],"class_list":["post-636","post","type-post","status-publish","format-standard","hentry","category-powershell"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/636","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=636"}],"version-history":[{"count":3,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/636\/revisions"}],"predecessor-version":[{"id":638,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/636\/revisions\/638"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=636"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}