Start-Service
Start stopped services. Note: This command can only be used through PowerShell. More information: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/start-service.
- Start a service by using its name:
Start-Service -Name
- Simulate starting a service, displaying what would happen:
Start-Service -DisplayName ** -WhatIf
- Start a disabled service:
Set-Service -StartupType ; Start-Service
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
