如何使用 PowerShell 停止及其依賴服務?


可以透過在名稱或顯示名稱之間放置命令 (,) 來停止使用它們的依賴服務的多個服務。

使用名稱和顯示名稱,

Stop-Service -Name Spooler, W32Time -Verbose
Stop-Service -DisplayName "Print Spooler","Windows Time" -Verbose

更新日期: 2020 年 1 月 22 日

545 次瀏覽

開始你的 職業

完成課程以獲得認證

開始
廣告
© . All rights reserved.