Skip to content

Instantly share code, notes, and snippets.

@royashbrook
Created February 7, 2018 18:13
Show Gist options
  • Save royashbrook/7037be66c21187ddacbaef3517f94255 to your computer and use it in GitHub Desktop.
Save royashbrook/7037be66c21187ddacbaef3517f94255 to your computer and use it in GitHub Desktop.
$servicenames = "svc1","svc2","svc3"
$services = Get-Service -ComputerName "servername" -Include $servicenames
$services | ft *
$services | Restart-Service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment