Skip to content

Instantly share code, notes, and snippets.

@adamalbers
Last active March 30, 2022 15:26
Show Gist options
  • Save adamalbers/c6dfbe6788851163462565e63203d879 to your computer and use it in GitHub Desktop.
Save adamalbers/c6dfbe6788851163462565e63203d879 to your computer and use it in GitHub Desktop.
#!ps
# The #!ps is for pasting into Connectwise Control. You don't need it otherwise.
function killProcess {
param (
[Parameter(Mandatory = $true)]
$thisProcess
)
try {
Stop-Process -Name $thisProcess -Force -Confirm:$false
}
catch {
Write-Warning $_
}
}
killProcess('Syncro.Overmind.Service')
killProcess('Syncro.Service.Runner')
killProcess('SyncroLive.Agent.Runner')
killProcess('SyncroLive.Service.Runner')
Start-Sleep -Seconds 5
Start-Service -Name SyncroOvermind
Start-Service -Name Syncro
Start-Service -Name SyncroLive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment