Created
March 8, 2022 19:55
-
-
Save adamalbers/36e07a27d09dbb7de1b53b5cb712994d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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