Skip to content

Instantly share code, notes, and snippets.

@MiroXP
Created June 8, 2022 12:01
Show Gist options
  • Save MiroXP/c660c83360a247f8b8ef486b7f91ab0d to your computer and use it in GitHub Desktop.
Save MiroXP/c660c83360a247f8b8ef486b7f91ab0d to your computer and use it in GitHub Desktop.

Windows-Service

Start stopped service with startup type of "Automatic"

Get-Service | Select-Object -Property Name,Status,StartType | Where-Object {$_.Status -eq "Stopped" -and $_.StartType -eq "Automatic"} | Start-Service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment