Skip to content

Instantly share code, notes, and snippets.

@andreasohlund
Created August 27, 2013 18:34
Show Gist options
  • Select an option

  • Save andreasohlund/6357279 to your computer and use it in GitHub Desktop.

Select an option

Save andreasohlund/6357279 to your computer and use it in GitHub Desktop.
$ServiceName = "the service"
$service = Get-Service $ServiceName -ErrorAction SilentlyContinue
Start-Service $ServiceName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment