snippetbashTip
Stop-Service — Stop running services. Note: This command can only be used through PowerShell. More information: <ht
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 -ConfirmCode 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 -ConfirmContext
tldr-pages: windows/Stop-Service
Revisions (0)
No revisions yet.