{"id":11032,"date":"2024-10-25T11:05:12","date_gmt":"2024-10-25T09:05:12","guid":{"rendered":"https:\/\/lazyadmin.nl\/?p=11032"},"modified":"2025-12-17T13:26:34","modified_gmt":"2025-12-17T11:26:34","slug":"stop-service","status":"publish","type":"post","link":"https:\/\/lazyadmin.nl\/powershell\/stop-service\/","title":{"rendered":"How to Stop a Service with PowerShell"},"content":{"rendered":"\n<p>Services run continuously in the background on computers. But sometimes you need to stop a service before you can perform a specific task. We can do this with the Stop-Service cmdlet in PowerShell.<\/p>\n\n\n\n<p>The cmdlet comes with a few options like forcing the stop of a service, stopping multiple services based on a part of the name, and the no wait option that allows you script to continue while the service is being stopped.<\/p>\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_80 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">In this article<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69f3f5962ef41\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\" style='display:none' id=\"ez-toc-cssicon-toggle-item-69f3f5962ef41\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/lazyadmin.nl\/powershell\/stop-service\/#stop-service-with-powershell\" >Stop Service with PowerShell<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/lazyadmin.nl\/powershell\/stop-service\/#using-wildcards\" >Using Wildcards<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/lazyadmin.nl\/powershell\/stop-service\/#force-stop-a-service\" >Force Stop a Service<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/lazyadmin.nl\/powershell\/stop-service\/#nowait\" >NoWait<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/lazyadmin.nl\/powershell\/stop-service\/#stop-service-on-remote-computer\" >Stop Service on Remote Computer<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/lazyadmin.nl\/powershell\/stop-service\/#wrapping-up\" >Wrapping Up<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n\n<p>In this article, we will look at the different options for stopping a service with PowerShell.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"stop-service-with-powershell\"><\/span>Stop Service with PowerShell<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>To stop a service we need to know the name of the service. The name is often <strong>not the same<\/strong> as the display name from a service. When you would open the services.msc console, then the name listed there is the display name, not the service name.<\/p>\n\n\n\n<p>For example, when we look at the &#8220;Print Spooler&#8221; service, the service name of it is actually &#8220;Spooler&#8221;. We can also see this when we look up the service with the <code>Get-Service<\/code> cmdlet:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Get-Service -displayname \"Print Spooler\"\n\n# Result\nStatus   Name               DisplayName\n------   ----               -----------\nRunning  Spooler            Print Spooler<\/pre>\n\n\n\n<p>So to stop the service in this case, you have three options. You can stop it using the actual name of the service, use the <code>-displayname<\/code> parameter or pipe the <code>Stop-Service<\/code> cmdlet behind the <code>Get-Service<\/code> cmdlet:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># Stop service by it's name\nStop-Service \"Spooler\"\n\n# Stop service based on the display name\nStop-Service -Display \"Print Spooler\"\n\n# Get service first, then stop it\nGet-Service -displayname \"Print Spooler\" | Stop-Service<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"795\" height=\"182\" src=\"https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/image-46.png\" alt=\"powershell stop service\" class=\"wp-image-11033\" srcset=\"https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/image-46.png 795w, https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/image-46-300x69.png 300w, https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/image-46-768x176.png 768w, https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/image-46-400x92.png 400w, https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/image-46-50x11.png 50w\" sizes=\"(max-width: 795px) 100vw, 795px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"using-wildcards\"><\/span>Using Wildcards<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If you don&#8217;t know the exact name of the service, then you can also use a wildcard to find the service that you want to stop.<\/p>\n\n\n\n<p>This method also allows you to stop multiple services that contain the same name with a single command. For example, to stop all Google services, we first get all services where the name starts with Google, and then stop all of them using the stop-service cmdlet:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># Stop all services where the name starts with Google\nGet-Service -Name \"Google*\" | Stop-Service<\/pre>\n\n\n\n<p>When using wildcards, you sometimes want or need to exclude specific services. We can do this with the <code>-exclude<\/code> parameter, which also supports wildcards. This way we can for example get all Google services, except the Chrome services:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Get-Service -Name \"Google*\" -Exclude \"*Chrome*\"<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"795\" height=\"280\" src=\"https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/image-48.png\" alt=\"Get and stop services\" class=\"wp-image-11035\" srcset=\"https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/image-48.png 795w, https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/image-48-300x106.png 300w, https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/image-48-768x270.png 768w, https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/image-48-400x141.png 400w, https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/image-48-50x18.png 50w\" sizes=\"(max-width: 795px) 100vw, 795px\" \/><\/figure>\n\n\n\n<p>You can also use the <code>-Include<\/code> parameter, so for the example above, you could get all get all services where the name contains Google and include &#8220;Update&#8221; to get only the updater services.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"force-stop-a-service\"><\/span>Force Stop a Service<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Some services don&#8217;t like to be stopped. The service might be working on a task or has dependent services, preventing you from stopping it.<\/p>\n\n\n\n<p>To solve this, we can use the <code>-Force<\/code> parameter. This will stop a service even if it has dependent services.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Stop-Service -Name \"iisadmin\" -Force<\/pre>\n\n\n\n<p>When using the force option to stop services that have dependent services, it&#8217;s a good idea to use the <code>-Confirm<\/code> option as well. This way you can check and confirm for each dependent service if you want to stop it as well.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"nowait\"><\/span>NoWait<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>When you stop a service with PowerShell, your script will wait until the service is actually stopped before your script continues. In most cases, this is fine and the recommended way to do it, but sometimes you have a service that just takes quite long to stop and your script doesn&#8217;t need to wait for it.<\/p>\n\n\n\n<p>For these cases, you can use the <code>-NoWait<\/code> option. This will tell PowerShell that it can continue with the rest of the script while the service is being stopped:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Stop-Service -Name \"Spooler\" -NoWait<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"stop-service-on-remote-computer\"><\/span>Stop Service on Remote Computer<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>To stop a service on a remote computer with PowerShell, we first need to get the service on the remote computer with the Get-Service cmdlet and then we can pipe the stop-service cmdlet behind it.<\/p>\n\n\n\n<p>The <code>Get-Service<\/code> cmdlet comes with built-in support for remote computers with the <code>-Computername<\/code> parameter. Important to note here, that this method <strong>doesn&#8217;t work on PowerShell 7<\/strong> and higher<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Get-Service -ComputerName $hostname -Name \"Spooler\" | Stop-Service<\/pre>\n\n\n\n<p>When using PowerShell 7, we will need to use the <a href=\"https:\/\/lazyadmin.nl\/powershell\/invoke-command\/\">Invoke-Command<\/a> cmdlet instead. This cmdlet allows you to run scripts or commands on remote computers. To stop a service on a remote computer with PowerShell 7, we can do the following:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Invoke-Command -ComputerName $hostname -ScriptBlock { Stop-Service -Name \"Spooler\" }<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"wrapping-up\"><\/span>Wrapping Up<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Stopping a service with PowerShell is not that hard, just make sure that you use the correct service name or use the display name parameter.<\/p>\n\n\n\n<p>I hope this article helped you, if you have any questions, just drop a comment below.<\/p>\n<script async src=\"https:\/\/alatus.eocampaign1.com\/form\/d0ce5de8-9b48-11ee-8cf4-eb425eea7369.js\" data-form=\"d0ce5de8-9b48-11ee-8cf4-eb425eea7369\"><\/script>","protected":false},"excerpt":{"rendered":"<p>Services run continuously in the background on computers. But sometimes you need to stop a service before you can perform a specific task. We can do this with the Stop-Service cmdlet in PowerShell. The cmdlet comes with a few options &#8230; <a title=\"How to Stop a Service with PowerShell\" class=\"read-more\" href=\"https:\/\/lazyadmin.nl\/powershell\/stop-service\/\">Read more<span class=\"screen-reader-text\">How to Stop a Service with PowerShell<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":11037,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_uag_custom_page_level_css":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[69],"tags":[22],"class_list":["post-11032","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell","tag-powershell"],"wppr_data":{"cwp_meta_box_check":"No"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Stop a Service with PowerShell &#8212; LazyAdmin<\/title>\n<meta name=\"description\" content=\"Stop services with PowerShell by using the stop-service cmdlet. Force the stop of a service or stop it on a remote computer\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/lazyadmin.nl\/powershell\/stop-service\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Stop a Service with PowerShell &#8212; LazyAdmin\" \/>\n<meta property=\"og:description\" content=\"Stop services with PowerShell by using the stop-service cmdlet. Force the stop of a service or stop it on a remote computer\" \/>\n<meta property=\"og:url\" content=\"https:\/\/lazyadmin.nl\/powershell\/stop-service\/\" \/>\n<meta property=\"og:site_name\" content=\"LazyAdmin\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/lazyadminnl\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/lazyadminnl\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-25T09:05:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-17T11:26:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/PowerShell-3.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"677\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Rudy Mens\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/lazyadmin\" \/>\n<meta name=\"twitter:site\" content=\"@lazyadmin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rudy Mens\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/lazyadmin.nl\/powershell\/stop-service\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/lazyadmin.nl\/powershell\/stop-service\/\"},\"author\":{\"name\":\"Rudy Mens\",\"@id\":\"https:\/\/lazyadmin.nl\/#\/schema\/person\/cbfba61543b21fbba63cfbf62f08d952\"},\"headline\":\"How to Stop a Service with PowerShell\",\"datePublished\":\"2024-10-25T09:05:12+00:00\",\"dateModified\":\"2025-12-17T11:26:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/lazyadmin.nl\/powershell\/stop-service\/\"},\"wordCount\":683,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/lazyadmin.nl\/#\/schema\/person\/cbfba61543b21fbba63cfbf62f08d952\"},\"image\":{\"@id\":\"https:\/\/lazyadmin.nl\/powershell\/stop-service\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/PowerShell-3.jpg\",\"keywords\":[\"Powershell\"],\"articleSection\":[\"PowerShell\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/lazyadmin.nl\/powershell\/stop-service\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/lazyadmin.nl\/powershell\/stop-service\/\",\"url\":\"https:\/\/lazyadmin.nl\/powershell\/stop-service\/\",\"name\":\"How to Stop a Service with PowerShell &#8212; LazyAdmin\",\"isPartOf\":{\"@id\":\"https:\/\/lazyadmin.nl\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/lazyadmin.nl\/powershell\/stop-service\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/lazyadmin.nl\/powershell\/stop-service\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/PowerShell-3.jpg\",\"datePublished\":\"2024-10-25T09:05:12+00:00\",\"dateModified\":\"2025-12-17T11:26:34+00:00\",\"description\":\"Stop services with PowerShell by using the stop-service cmdlet. Force the stop of a service or stop it on a remote computer\",\"breadcrumb\":{\"@id\":\"https:\/\/lazyadmin.nl\/powershell\/stop-service\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/lazyadmin.nl\/powershell\/stop-service\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lazyadmin.nl\/powershell\/stop-service\/#primaryimage\",\"url\":\"https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/PowerShell-3.jpg\",\"contentUrl\":\"https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/PowerShell-3.jpg\",\"width\":1200,\"height\":677,\"caption\":\"Stop Services PowerShell\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/lazyadmin.nl\/powershell\/stop-service\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/lazyadmin.nl\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Stop a Service with PowerShell\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/lazyadmin.nl\/#website\",\"url\":\"https:\/\/lazyadmin.nl\/\",\"name\":\"LazyAdmin\",\"description\":\"Tips and howto&#039;s about Office 365, PowerShell, Home network and smart devices\",\"publisher\":{\"@id\":\"https:\/\/lazyadmin.nl\/#\/schema\/person\/cbfba61543b21fbba63cfbf62f08d952\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/lazyadmin.nl\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/lazyadmin.nl\/#\/schema\/person\/cbfba61543b21fbba63cfbf62f08d952\",\"name\":\"Rudy Mens\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lazyadmin.nl\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/06\/Profile-photo-2024-Ruud.jpg\",\"contentUrl\":\"https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/06\/Profile-photo-2024-Ruud.jpg\",\"width\":500,\"height\":500,\"caption\":\"Rudy Mens\"},\"logo\":{\"@id\":\"https:\/\/lazyadmin.nl\/#\/schema\/person\/image\/\"},\"description\":\"Ruud worked for more than 15 years as a SysAdmin in the Netherlands and is now working as an independent consultant. In his spare time, he loves to thinker with Smart Devices.\",\"sameAs\":[\"https:\/\/lazyadmin.nl\",\"https:\/\/www.facebook.com\/lazyadminnl\/\",\"http:\/\/nl.linkedin.com\/in\/rudymens\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/lazyadmin\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Stop a Service with PowerShell &#8212; LazyAdmin","description":"Stop services with PowerShell by using the stop-service cmdlet. Force the stop of a service or stop it on a remote computer","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/lazyadmin.nl\/powershell\/stop-service\/","og_locale":"en_US","og_type":"article","og_title":"How to Stop a Service with PowerShell &#8212; LazyAdmin","og_description":"Stop services with PowerShell by using the stop-service cmdlet. Force the stop of a service or stop it on a remote computer","og_url":"https:\/\/lazyadmin.nl\/powershell\/stop-service\/","og_site_name":"LazyAdmin","article_publisher":"https:\/\/www.facebook.com\/lazyadminnl\/","article_author":"https:\/\/www.facebook.com\/lazyadminnl\/","article_published_time":"2024-10-25T09:05:12+00:00","article_modified_time":"2025-12-17T11:26:34+00:00","og_image":[{"width":1200,"height":677,"url":"https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/PowerShell-3.jpg","type":"image\/jpeg"}],"author":"Rudy Mens","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/lazyadmin","twitter_site":"@lazyadmin","twitter_misc":{"Written by":"Rudy Mens","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/lazyadmin.nl\/powershell\/stop-service\/#article","isPartOf":{"@id":"https:\/\/lazyadmin.nl\/powershell\/stop-service\/"},"author":{"name":"Rudy Mens","@id":"https:\/\/lazyadmin.nl\/#\/schema\/person\/cbfba61543b21fbba63cfbf62f08d952"},"headline":"How to Stop a Service with PowerShell","datePublished":"2024-10-25T09:05:12+00:00","dateModified":"2025-12-17T11:26:34+00:00","mainEntityOfPage":{"@id":"https:\/\/lazyadmin.nl\/powershell\/stop-service\/"},"wordCount":683,"commentCount":0,"publisher":{"@id":"https:\/\/lazyadmin.nl\/#\/schema\/person\/cbfba61543b21fbba63cfbf62f08d952"},"image":{"@id":"https:\/\/lazyadmin.nl\/powershell\/stop-service\/#primaryimage"},"thumbnailUrl":"https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/PowerShell-3.jpg","keywords":["Powershell"],"articleSection":["PowerShell"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/lazyadmin.nl\/powershell\/stop-service\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/lazyadmin.nl\/powershell\/stop-service\/","url":"https:\/\/lazyadmin.nl\/powershell\/stop-service\/","name":"How to Stop a Service with PowerShell &#8212; LazyAdmin","isPartOf":{"@id":"https:\/\/lazyadmin.nl\/#website"},"primaryImageOfPage":{"@id":"https:\/\/lazyadmin.nl\/powershell\/stop-service\/#primaryimage"},"image":{"@id":"https:\/\/lazyadmin.nl\/powershell\/stop-service\/#primaryimage"},"thumbnailUrl":"https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/PowerShell-3.jpg","datePublished":"2024-10-25T09:05:12+00:00","dateModified":"2025-12-17T11:26:34+00:00","description":"Stop services with PowerShell by using the stop-service cmdlet. Force the stop of a service or stop it on a remote computer","breadcrumb":{"@id":"https:\/\/lazyadmin.nl\/powershell\/stop-service\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/lazyadmin.nl\/powershell\/stop-service\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lazyadmin.nl\/powershell\/stop-service\/#primaryimage","url":"https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/PowerShell-3.jpg","contentUrl":"https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/PowerShell-3.jpg","width":1200,"height":677,"caption":"Stop Services PowerShell"},{"@type":"BreadcrumbList","@id":"https:\/\/lazyadmin.nl\/powershell\/stop-service\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/lazyadmin.nl\/"},{"@type":"ListItem","position":2,"name":"How to Stop a Service with PowerShell"}]},{"@type":"WebSite","@id":"https:\/\/lazyadmin.nl\/#website","url":"https:\/\/lazyadmin.nl\/","name":"LazyAdmin","description":"Tips and howto&#039;s about Office 365, PowerShell, Home network and smart devices","publisher":{"@id":"https:\/\/lazyadmin.nl\/#\/schema\/person\/cbfba61543b21fbba63cfbf62f08d952"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/lazyadmin.nl\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/lazyadmin.nl\/#\/schema\/person\/cbfba61543b21fbba63cfbf62f08d952","name":"Rudy Mens","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lazyadmin.nl\/#\/schema\/person\/image\/","url":"https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/06\/Profile-photo-2024-Ruud.jpg","contentUrl":"https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/06\/Profile-photo-2024-Ruud.jpg","width":500,"height":500,"caption":"Rudy Mens"},"logo":{"@id":"https:\/\/lazyadmin.nl\/#\/schema\/person\/image\/"},"description":"Ruud worked for more than 15 years as a SysAdmin in the Netherlands and is now working as an independent consultant. In his spare time, he loves to thinker with Smart Devices.","sameAs":["https:\/\/lazyadmin.nl","https:\/\/www.facebook.com\/lazyadminnl\/","http:\/\/nl.linkedin.com\/in\/rudymens\/","https:\/\/x.com\/https:\/\/twitter.com\/lazyadmin"]}]}},"uagb_featured_image_src":{"full":["https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/PowerShell-3.jpg",1200,677,false],"thumbnail":["https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/PowerShell-3-150x150.jpg",150,150,true],"medium":["https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/PowerShell-3-300x169.jpg",300,169,true],"medium_large":["https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/PowerShell-3-768x433.jpg",768,433,true],"large":["https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/PowerShell-3-1024x578.jpg",1024,578,true],"1536x1536":["https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/PowerShell-3.jpg",1200,677,false],"2048x2048":["https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/PowerShell-3.jpg",1200,677,false],"post-thumb":["https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/PowerShell-3-800x451.jpg",800,451,true],"post-thumb-half":["https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/PowerShell-3-400x226.jpg",400,226,true],"wppr-widget":["https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/PowerShell-3-50x28.jpg",50,28,true],"gform-image-choice-sm":["https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/PowerShell-3.jpg",300,169,false],"gform-image-choice-md":["https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/PowerShell-3.jpg",400,226,false],"gform-image-choice-lg":["https:\/\/lazyadmin.nl\/wp-content\/uploads\/2024\/10\/PowerShell-3.jpg",600,339,false]},"uagb_author_info":{"display_name":"Rudy Mens","author_link":"https:\/\/lazyadmin.nl\/author\/lajcud8123b\/"},"uagb_comment_info":0,"uagb_excerpt":"Services run continuously in the background on computers. But sometimes you need to stop a service before you can perform a specific task. We can do this with the Stop-Service cmdlet in PowerShell. The cmdlet comes with a few options ... Read moreHow to Stop a Service with PowerShell","_links":{"self":[{"href":"https:\/\/lazyadmin.nl\/wp-json\/wp\/v2\/posts\/11032"}],"collection":[{"href":"https:\/\/lazyadmin.nl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lazyadmin.nl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lazyadmin.nl\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/lazyadmin.nl\/wp-json\/wp\/v2\/comments?post=11032"}],"version-history":[{"count":0,"href":"https:\/\/lazyadmin.nl\/wp-json\/wp\/v2\/posts\/11032\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lazyadmin.nl\/wp-json\/wp\/v2\/media\/11037"}],"wp:attachment":[{"href":"https:\/\/lazyadmin.nl\/wp-json\/wp\/v2\/media?parent=11032"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lazyadmin.nl\/wp-json\/wp\/v2\/categories?post=11032"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lazyadmin.nl\/wp-json\/wp\/v2\/tags?post=11032"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}