1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-01 21:35:24 +02:00
tldr/pages/windows/stop-service.md
Vitor Henrique 55a49c4ba1
pages*: remove "one or more" from description when superfluous (#12121)
* pages*: remove "one or more" from description when superfluous

---------

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2024-01-25 10:58:11 +05:30

475 B

Stop-Service

Stops running services. 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