How to stop service with their dependent services using PowerShell?


To stop multiple services can be stopped using Name or displayname by providing command (,) between them.

With name and DisplayName,

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

Updated on: 22-Jan-2020

462 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements