{"id":701,"date":"2014-07-01T09:00:43","date_gmt":"2014-07-01T16:00:43","guid":{"rendered":"http:\/\/www.coretechnologies.com\/blog\/?p=701"},"modified":"2014-07-01T09:00:43","modified_gmt":"2014-07-01T16:00:43","slug":"using-tasklist-to-check-windows-services","status":"publish","type":"post","link":"https:\/\/www.coretechnologies.com\/blog\/miscellaneous\/using-tasklist-to-check-windows-services\/","title":{"rendered":"Using TASKLIST to check your Windows Services"},"content":{"rendered":"<p>\nIf you are comfortable working with Windows Services from the command line, take a look at Microsoft&#8217;s TASKLIST utility. This often overlooked tool &#8212; available on all versions of Windows &#8212; can help you answer the following questions as you troubleshoot your Windows Services:\n<\/p>\n<h2><b>What is the PID Associated with a Running Service?<\/b><\/h2>\n<p>\nYou can use the name of the service to look up the identifier of the process associated with it. For example, to find the PID of the Print Spooler service (named &#8220;Spooler&#8221;), use:\n<\/p>\n<blockquote><p><b>TASKLIST \/SVC \/FI &quot;SERVICES eq Spooler&quot;<\/b><\/p><\/blockquote>\n<p>\nHere is the result you can expect, with the PID listed in the central column:\n<\/p>\n<p><a href=\"\/blog\/images\/tasklist-spooler-service-process.png\" class=\"zoomPopup\" rel=\"zoomgroup noopener noreferrer\" title=\"TASKLIST - Find a Service's PID\" target=\"_blank\"><br \/>\n<img decoding=\"async\" src=\"\/blog\/images\/tasklist-spooler-service-process.png\" border=\"0\" title=\"TASKLIST - Find a Service's PID (click to enlarge)\" alt=\"TASKLIST - Find a Service's PID\" width=\"560\" \/><br \/>\n<\/a><\/p>\n<h2><b>What Windows Services are Being Hosted by a Specific Process?<\/b><\/h2>\n<p>\nIf you are considering forcibly terminating a process, it may be wise to confirm that doing so will not unexpectedly kill related services! TASKLIST.EXE comes to the rescue by easily showing what services are running in a given process. For example, to see what services are behind the process with PID 1234, type:\n<\/p>\n<blockquote><p><b>TASKLIST \/SVC \/FI  &quot;PID eq 1234&quot;<\/b><\/p><\/blockquote>\n<p>\nHere we can see that the svchost process with PID 1284 is managing five (!) core services:\n<\/p>\n<p><a href=\"\/blog\/images\/tasklist-pid-to-services.png\" class=\"zoomPopup\" rel=\"zoomgroup noopener noreferrer\" title=\"TASKLIST - Find a PID's services\" target=\"_blank\"><br \/>\n<img decoding=\"async\" src=\"\/blog\/images\/tasklist-pid-to-services.png\" border=\"0\" title=\"TASKLIST - Find a PID's services (click to enlarge)\" alt=\"TASKLIST - Find a PID's services\" width=\"560\" \/><br \/>\n<\/a><\/p>\n<p>\nNote that TASKLIST can interrogate remote machines as well. Simply add the \/S \/U and \/P flags to the command line to specify the system, user name and password respectively.\n<\/p>\n<p>\nEnjoy!<\/p>\n<!-- relpost-thumb-wrapper --><div class=\"relpost-thumb-wrapper\"><!-- filter-class --><div class=\"relpost-thumb-container\"><style>.relpost-block-single-image, .relpost-post-image { margin-bottom: 10px; }<\/style><h3>You may also like...<\/h3><div style=\"clear: both\"><\/div><div style=\"clear: both\"><\/div><!-- relpost-block-container --><div class=\"relpost-block-container relpost-block-column-layout\" style=\"--relposth-columns: 3;--relposth-columns_t: 2; --relposth-columns_m: 2\"><a href=\"https:\/\/www.coretechnologies.com\/blog\/miscellaneous\/is-the-desktop-dead\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Is the Desktop Dead?\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/sad-computer-150x150.png\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">Is the Desktop Dead?<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/miscellaneous\/windows-8-a-fresh-start-or-last-gasp\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Windows 8\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/win8-150x150.png\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">Windows 8 - A Fresh Start or a Last Gasp?<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/miscellaneous\/testing-windows-10-technical-preview\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Getting ready for Windows 10\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/getting-ready-for-windows-10-150x150.png\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">Getting ready for Windows 10<\/h2><\/div><\/div><\/a><\/div><!-- close relpost-block-container --><div style=\"clear: both\"><\/div><\/div><!-- close filter class --><\/div><!-- close relpost-thumb-wrapper -->","protected":false},"excerpt":{"rendered":"<p>If you are comfortable working with Windows Services from the command line, take a look at Microsoft&#8217;s TASKLIST utility. This often overlooked tool &#8212; available on all versions of Windows &#8212; can help you answer the following questions as you &hellip; <a href=\"https:\/\/www.coretechnologies.com\/blog\/miscellaneous\/using-tasklist-to-check-windows-services\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":2259,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[166],"class_list":["post-701","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-miscellaneous","tag-tasklist"],"_links":{"self":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/701","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=701"}],"version-history":[{"count":0,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/701\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media\/2259"}],"wp:attachment":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=701"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=701"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=701"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}