Quick and Dirty Script to Watch and Start / Restart Windows Service
// powershell.exe// -ExecutionPolicy Bypass c:\scripts\serviceCheck.ps1$serviceName = '[input-service-name-here]'$arrService = Get-Service -Name $serviceNamewhile ($arrService.Status -ne 'Running'){ Start-Service…
0 Comments