如何在 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