Stop, Start, Restart Windows Services – PowerShell Script

  1. Copy and save the below script as MaintainService.ps1
  2. Open Powershell and navigate to the path where the script is saved
  3. Simply type part of the script name and then press tab for auto-complete
  4. You have to provide a service name and action (stop, start, restart) as part of the script parameters.

 

Leave a Reply

2 Comments on "Stop, Start, Restart Windows Services – PowerShell Script"

avatar
  Subscribe  
newest oldest most voted
Notify of
Gengyu Shi
Guest

Works nicely, thanks!

saiteja
Guest

Looks Amazing and super easy to understand! Kudos!