如何使用 PowerShell 停止多个服务?
要停止多个服务,可以通过提供它们之间的命令 (,) 来停止名称或显示名称。
使用名称和显示名称,
Stop-Service -Name Spooler, W32Time -Verbose Stop-Service -DisplayName "Print Spooler","Windows Time" –Verbose
广告
要停止多个服务,可以通过提供它们之间的命令 (,) 来停止名称或显示名称。
使用名称和显示名称,
Stop-Service -Name Spooler, W32Time -Verbose Stop-Service -DisplayName "Print Spooler","Windows Time" –Verbose