Skip to main content

ScreenConnect - Update Vendor Restricted Property RMM+

Summary

This script is a duplicate of Script - ScreenConnect - Update Custom Property* [RMM+,Param], which has been specifically designed to set the "Vendor Restricted" custom property in the CW Control Portal. It will set the custom property value to "Restricted" to restrict the machine to the vendor and "Unrestricted" to remove its restriction.

The system property PropertyIndex needs to be set before running the script.

Sample Run

Target: Any machine with CW Control installed for setting up the properties.

Sample Run

Dependencies

Variables

NameDescription
sccomputerguidThe GUID of the CW Control instance
SCUrlThe URL for the CW Control portal
PortThe port in use for CW Control
SCFormattedURLA formatted URL to work properly with the RMM+ extension in CW Control
SCCommandURLThe URL to end sessions related to the RMM+ Plugin
pluginresultThe output of the results from the command run above.
PropertyValuePropertyValue will be automatically fetched based on the "Restrict Vendor Access" EDF's value. If EDFs are selected and the machine is not restricted in ScreenConnect, it will automatically restrict it. Similarly, if any machine is accidentally set to restricted and EDFs are not selected at the client or location level, it will automatically revert the changes for that machine.

User Parameters

NameExampleRequiredDescription
Set_Environment1True (for first time run only)Set its value to '1' to create "Restrict Vendor Access" EDFs, "PropertyIndex" System Properties, "Vendor Restricted - Super Admin" user class, "Restricted Vendor Access" search, and "Restrict Vendor Access" group. These are all required for Restrict Vendor Access to Clients.
Set_Client_Permissions1True (for first time after creating the Super Admin - Restricted Vendor Access user class)Set its value to '1' in order to add Super Admin - Restricted Vendor Access full permissions to the selected client.

System Properties

NameExampleRequiredDescription
RMMPlus_AccessKeyajw8fh2p93ufn;o31ifu2091j23oifTrueThis is the key set up in the CW Control RMM+ Plugin so Automate can reach out to gain access to the API.
RMMPlus_HeadersOrigin: site.site.comTrueThis is the URL (without http/https) for the CW Control server. This value needs to match the value in the RMM+ Plugin configuration in CW Control.
RMMPlus_StaleAgentThreshold30TrueThe number of days to indicate what a "stale" agent is to the scripts. 30 is the default.
RMMPlus_Timeout1000TrueThe default timeout for commands run via RMM+ through Automate. 1000 is the default.
PropertyIndex5TrueThis is the custom property in CW Control that you want to set. Properties 1-4 are used by the CWA/CWC plugin. It is suggested to start with Properties 5-8. This video can explain how to set them up in CWC. Watch here

Output

Script log messages only.