Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save adamalbers/36e07a27d09dbb7de1b53b5cb712994d to your computer and use it in GitHub Desktop.
Save adamalbers/36e07a27d09dbb7de1b53b5cb712994d to your computer and use it in GitHub Desktop.
# The #!ps is for pasting into Connectwise Control. You don't need it otherwise.
#!ps
function killProcess {
param (
[Parameter(Mandatory = $true)]
$thisProcess
)
try {
Stop-Process -Name $thisProcess -Force -Confirm:$false
}
catch {
Write-Warning $_
}
}
killProcess('ScreenConnect.Service')
killProcess('ScreenConnect.ClientService')
Start-Sleep -Seconds 5
Start-Service -Name ScreenConnect Security Manager
Start-Service -Name ScreenConnect Session Manager
Start-Service -Name ScreenConnect Relay
Start-Service -Name ScreenConnect Web Server
Start-Service -Name ScreenConnect Client (e39d0706e8f06e7b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment