如何在 PowerShell 中启动依赖服务?
PowerShell 中启动依赖服务的方式与停止依赖服务时使用 < strong>–Force 参数不同,因为没有可用的 < strong>–Force 参数。
你需要首先获取依赖服务,然后启动它们。
Get-Service -Name Winmgmt -DependentServices | Start-Service -Verbose
广告
PowerShell 中启动依赖服务的方式与停止依赖服务时使用 < strong>–Force 参数不同,因为没有可用的 < strong>–Force 参数。
你需要首先获取依赖服务,然后启动它们。
Get-Service -Name Winmgmt -DependentServices | Start-Service -Verbose