HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

Stop-Service — Stop running services. Note: This command can only be used through PowerShell. More information: <ht

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandservicesnotestop-servicethisclirunningstop
windows

Problem

How to use the Stop-Service command: Stop running services. Note: This command can only be used through PowerShell. More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.management/stop-service>.

Solution

Stop-Service — Stop running services. Note: This command can only be used through PowerShell. More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.management/stop-service>.

Stop a service on the local computer:
Stop-Service -Name {{service_name}}


Stop a service by using the display name:
Stop-Service -DisplayName "{{name}}"


Stop a service that has dependent services:
Stop-Service -Name {{service_name}} -Force -Confirm

Code Snippets

Stop a service on the local computer

Stop-Service -Name {{service_name}}

Stop a service by using the display name

Stop-Service -DisplayName "{{name}}"

Stop a service that has dependent services

Stop-Service -Name {{service_name}} -Force -Confirm

Context

tldr-pages: windows/Stop-Service

Revisions (0)

No revisions yet.