Remove ScreenConnect or ConnectWise Control from Mac, Window and Linux. Posted on 21-Mar-2021. The client will be installed on /opt/screenconnect-XXXXXXXXXXXX. The SC technician provided me some commands to remove the printers manually, but if I can run the commands, why can't ScreenConnect simply perform the same function to remove the mapped printers after a host is disconnected. In summary, this request is to have ScreenConnect remove printers after host disconnects (properly or improperly).
The remote sharing server mentioned on the home page refers to ScreenConnect (SC) or what is now known as Connectwise Control. Here are some useful commands used in the command window.
NOTE: You will notice a couple of lines added to the scripts below that are specific commands for ScreenConnect. If you remove these two lines you can run these commands on any Windows machine. Here is an explanation of those lines:
- #!ps - This command tells SC the following commands are PowerShell commands. You are simply sending commands to the command prompt you can use #!cmd instead. I'm lazy and use #!ps for most of the commands.
- #maxlength=100000 - This command defines the number of lines to be returned. You can modify this based on what you are expecting, again I simply use the same for all my commands.
- #timeout=90000 - An important command that provides a timeout and is very useful for when you make a mistake! ;) Set this too low and your command may not complete...especially during installations.
Download a file using BITS
How To Remove Connectwise Control
Here I am downloading an mst file matching the below msi file for installation.
Another example of BITS download
What I'm actually doing here is copying the msi file matching the mst file above and then I will install the application.
msiexec from cli to install the application
Downloading another file using BITS in Windows
This script contains commands for Windows 10 Debloate
Yet another BITS download for unzip.exe hosted on my site
Combining and executing
Here I combine the commands to execute
Uninstall NinjaRMM
I was using NinjaRMM, but needed to uninstall. I achieved that with the following commands.
First check to see if it is installed
wmic product where 'Name like '%%Ninja%%' get name
Perform the un-installation/removal
Rename computer from CLI
WMIC computersystem where caption='DESKTOP-95PQTKT' rename NEWNAME
Change from default WORKGROUP to a new one via CLI
WMIC ComputerSystem Where Name='%NEWNAME%' Call JoinDomainOrWorkgroup Name='WORKGROUP-NEW'
Example of how to download a Windows update file using BITS inside of PS and then execute
Another example to install Windows update from CLI
dism /online /get-packages | findstr KB4074608
Check to see if Windows update has been installed on a system
SYSTEMINFO.exe | findstr KB4074608
Download PatchMyPC
Modify Registry Entry via PS
This entry is not display last user logged on:
Installing WebRoot AV from CLI and assigning license
Uninstall WebRoot AV from CLI
'C:Program FilesWebrootWRSA.exe' -uninstall
'C:Program Files (x86)WebrootWRSA.exe' -uninstall
Windows Defender on Win 10
Connectwise Control Manual Uninstall Program
Turn off
Run the following command in PowerShell:
Set-MpPreference -DisableRealtimeMonitoring $true
Enable Controlled Folder Access
Set-MpPreference -EnableControlledFolderAccess Enabled
CAUTION: Take ownership and delete
Running Windows Updates from PowerShell CLI
The first thing you will need to do is to manually Install the Windows Update module,
Next, you will need to connect to the Windows Update servers and download the updates, if any are needed
Connectwise Control Manual Uninstall Software
Last, use the following to install the Windows Updates downloaded to the computer
Connectwise Control Manual Uninstall Mac
If needed, you may need to register the update service with the following: