Skip to main content

ScreenConnect Uninstall

Summary

This document outlines the procedure to uninstall all instances of ScreenConnect from an endpoint.

Sample Run

TimeActionResultUser
1:43:45 pm 21-Jun-22ScreenConnect UninstallSuccess THENprovaltech.com/dan.hicks
1:43:45 pm 21-Jun-22ScreenConnect Uninstall-0002ScreenConnect successfully removed.provaltech.com/dan.hicks
1:43:45 pm 21-Jun-22Execute Powershell CommandSuccess THENprovaltech.com/dan.hicks
1:43:44 pm 21-Jun-22Execute Powershell Command-0012Results returned to global variable #global:psresult# and saved in Documents tab of server.provaltech.com/dan.hicks
1:43:44 pm 21-Jun-22Execute Powershell Command-0012Informational: GetFile command overwrote the server file C:/Kaseya/UserProfiles/297901570390346/GetFiles/../docs/psoutput.txt with the new contents from c:/provaltech/psoutput.txt in THEN step 2.provaltech.com/dan.hicks
1:43:44 pm 21-Jun-22Execute Powershell Command-0011Powershell command completed!provaltech.com/dan.hicks
1:42:52 pm 21-Jun-22Execute Powershell Command-0011Executing powershell -file "%ProgramData%/_automation/AgentProcedure/RemoveScreenConnect/Remove-ScreenConnect.ps1" "" >"c:/provaltech/psoutput.txt"provaltech.com/dan.hicks
1:42:52 pm 21-Jun-22Execute Powershell Command-0010Sending output to global variable.provaltech.com/dan.hicks
1:42:52 pm 21-Jun-22Execute Powershell Command-0008Commands are:provaltech.com/dan.hicks
1:42:52 pm 21-Jun-22Execute Powershell Command-0008No arguments specified or arguments not formatted properly.provaltech.com/dan.hicks
1:42:52 pm 21-Jun-22Execute Powershell Command-0006Powershell command specified as %ProgramData%/_automation/AgentProcedure/RemoveScreenConnect/Remove-ScreenConnect.ps1provaltech.com/dan.hicks
1:42:40 pm 21-Jun-22Execute Powershell Command-0002Powershell is present.provaltech.com/dan.hicks
1:42:34 pm 21-Jun-22Execute Powershell CommandSuccess THENprovaltech.com/dan.hicks
1:42:33 pm 21-Jun-22Execute Powershell Command-0011Powershell command completed!provaltech.com/dan.hicks
1:42:23 pm 21-Jun-22Execute Powershell Command-0011Executing powershell "" -Command "New-Item -Type directory -Path %ProgramData%/_automation/AgentProcedure/ -Name RemoveScreenConnect" ""provaltech.com/dan.hicks
1:42:23 pm 21-Jun-22Execute Powershell Command-0010Not sending output to variable.provaltech.com/dan.hicks
1:42:23 pm 21-Jun-22Execute Powershell Command-0008New command variable is: -Command "New-Item -Type directory -Path %ProgramData%/_automation/AgentProcedure/ -Name RemoveScreenConnect"provaltech.com/dan.hicks
1:42:23 pm 21-Jun-22Execute Powershell Command-0008Custom commands detected as New-Item -Type directory -Path %ProgramData%/_automation/AgentProcedure/ -Name RemoveScreenConnectprovaltech.com/dan.hicks
1:42:17 pm 21-Jun-22Execute Powershell Command-0002Powershell is present.provaltech.com/dan.hicks
1:42:04 pm 21-Jun-22Run Now - ScreenConnect UninstallAdmin provaltech.com/dan.hicks scheduled procedure Run Now - ScreenConnect Uninstall to run at Jun 21 2022 1:42 PM

Process

WMIC loops through instances for anything matching 'ScreenConnect%' and performs a non-interactive uninstall. We then check the Win32_Product class to see if it still exists afterward.

Output

Agent Procedure
Remove-ScreenConnect-log.txt

Export Attachment

Attach the content XML VSA Export to this document.