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
- Stop a service by using the display name:
Stop-Service -DisplayName ""
- Stop a service that has dependent services:
Stop-Service -Name -Force -Confirm
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
