Jump to content
DarrenWhite99

CWControl/ScreenConnect Scripting - Install/Remove

Recommended Posts

Here are scripts we use to manage Screen Connect Control Installation and Removal from agents. These scripts update the plugins tables to flag an agent as having or not having the ScreenConnect Control client, and sends the necessary remote commands to make these changes immediately effective. The installer is compatible with Windows and OSX. The Reinstall and Uninstall scripts make the required plugin table adjustments for OSX and Windows and issue the LabTech commands that should complete the changes, but OSX Reinstall and Uninstall functionality has not been confirmed. For Windows, all functions have been tested.

LabTech ScreenConnect Scripts.zip

ScreenConnect Screen Connect Control Install Remove Reinstall Uninstall Deploy Repair

  • Like 1

Share this post


Link to post
Share on other sites
On 6/14/2017 at 1:48 PM, DarrenWhite99 said:

...  but OSX Reinstall and Uninstall functionality has not been confirmed. For Windows, all functions have been tested.

It's been a year and a half since i posted this, and it's been downloaded over 80 times... Can ANYONE comment on functionality for OSX or Linux agents? (I'm thinking since I didn't mention Linux in the original post that Linux isn't supported, but maybe I included it and forgot... 😛)  If the scripts DON'T work properly (for any OS) but you have a suggestion to fix, let me know and I'll refresh the files.

Share this post


Link to post
Share on other sites
On 6/14/2017 at 1:48 PM, DarrenWhite99 said:

Here are scripts we use to manage Screen Connect Control Installation and Removal from agents. These scripts update the plugins tables to flag an agent as having or not having the ScreenConnect Control client, and sends the necessary remote commands to make these changes immediately effective. The installer is compatible with Windows and OSX. The Reinstall and Uninstall scripts make the required plugin table adjustments for OSX and Windows and issue the LabTech commands that should complete the changes, but OSX Reinstall and Uninstall functionality has not been confirmed. For Windows, all functions have been tested.

LabTech ScreenConnect Scripts.zip

ScreenConnect Screen Connect Control Install Remove Reinstall Uninstall Deploy Repair

Will this work with the hosted version of ScreenConnect?

Share this post


Link to post
Share on other sites

Darren,

Will this work as a measure to update agents after making changes to the Control configuration such as hiding the tray icon and such? We just moved to Automate and the integrated Control and didn’t see a way to easily reinstall to make the changes apply. Seems like this would do the trick.

Share this post


Link to post
Share on other sites
Posted (edited)

I'm guilty of grabbing @DarrenWhite99's scripts previously and modifying and using them but never posting back. First off, Darren, YES these work on macOS quite well (or did back then). One thing we discovered recently was that the program directory on macOS was changed during a a mid-6.9 release of CW Control. So we updated our "Get GUID" script to properly grab the GUID from the old location AND the new location. This has been working well for us.

Here's our updated "Get GUID" script. Technically is still supports Windows, but due to the plugin handling that directly now, we really only use this for macOS clients. We just call this script at the end of our "install" script on macOS machines to update the CWA database so the link from CWA to CWC exists for Mac agents just like it does for Windows agents.

 

 

CW Control Get GUID - CUSTOM.xml

Edited by tlphipps
Updated XML attachment
  • Thanks 1

Share this post


Link to post
Share on other sites

This worked beautifully.  Thank you both!

For those following along at home, I had to tweak a couple of things in tlphipps' script to get it to work on Macs in our environment.

Search for connectwisecontrol-<CWC client identifier> and change it to connectwisecontrol-<your CWC client identifier>  There are entries in both the Then & Else sections.

There was also a line that still said screenconnect.  I'm not sure if that is correct, but when I changed that to connectwisecontrol, the script still worked.  (Don't change the screenconnect referenced in the lines for Windows.)

 

Share this post


Link to post
Share on other sites

Whoops! Definitely didn't mean to post up here with our CWC Identifier in there. Thanks @mike_judd for the head's up on that.
I've replaced the XML above with a generic version. I went ahead and added a 'variable set' line where you can easily add your specific CWC Identifier in each section of the script.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...