How to stop the service with the display name in PowerShell?
https://www.tutorialspoint.com/how-to-stop-the-service-with-the-display-name-in-powershell
-
13-09-2020 - |
سؤال
How to stop the service with the display name in PowerShell?
Similar to -Name parameter, when you add -DisplayName parameter followed by service display name, it will stop service with DisplayName.
Stop-Service -DisplayName 'Print Spooler' -Verbose
OR
Get-Service -DisplayName "Print Spooler" | Stop-Service -Verbose
Advertisements
لا تنتمي إلى Tutorialspoint