# Configure Autonomous Patch Management **Last Updated On:** 31 Jul 2026 **17 minutes read** ## Overview Autonomous patch management enables you to test and deploy patches progressively with minimal manual intervention. It automatically creates and updates the initial test ring, ensures that approved missing patches are tested on the required number of devices, and excludes business-critical machines from initial deployment. Patches are then advanced through subsequent rings based on configured waiting periods and internal reliability scores calculated from successful and failed installations. This provides a controlled, reliability-based patch deployment process from initial testing to broader production rollout. **Note** These workflows must be configured and deployed individually. Automatic Ring 1 creation supports Windows, macOS, and Linux, while ring-based patch progression currently supports Windows and macOS. ## Pre-Requisites - The DEX add-on must be enabled. - Create a Custom Group containing the machines designated for patch testing. - Create a Custom Group containing the business-critical or production machines that must be excluded from the first test ring. - Create the Custom Groups required for the subsequent patch deployment rings. - Ensure that the first ring contains at least one managed device. The ring progression workflow uses the devices in this ring to identify the platform. - Create an Automated Patch Deployment (APD) task for each ring and associate it with the corresponding Custom Group. - Under **Patch Approval**, configure the approval mode as **Test and Approve**. Do not select automatic approval without testing. - Create separate connections for the two workflows using the exact connection names and scopes specified in their respective configuration sections. ## Workflow 1: Configure Automatic Ring 1 Creation This workflow creates or rebuilds the first ring of test devices during every scheduled execution. It ensures that each approved missing patch can be tested on at least the configured minimum number of devices while always including designated test machines and excluding business-critical machines. ### Configure the Workflow - Navigate to **DEX** → **Workflows**. - Click **Create Workflow**, select **All Platforms**, and click **Create New**. ![Automatic Ring 1 creation workflow](https://www.manageengine.com/sites/meweb/images/desktop-central/desktop-central/help/autonomous-patching/1.png) - Enter a **Name** for the workflow and, optionally, a **Description**. Click **Done**. - From the pane on the right, drag and drop the **Function** logic under **Logic/Processing** into the workflow. ![Create workflow screen for Ring 1 automation](https://www.manageengine.com/sites/meweb/images/desktop-central/desktop-central/help/autonomous-patching/2a.png) - Enter a **Name** for the function and, optionally, a **Stage Description**. - Under **Available Functions**, click the **+** icon. ![Function block added for Ring 1 workflow](https://www.manageengine.com/sites/meweb/images/desktop-central/desktop-central/help/autonomous-patching/3a.png) - Enter the name under **Function Name** as **ring_1_populator** and select **Zoho Deluge** as the **Language**. Click **Create Function**. ![Create ring_1_populator custom function](https://www.manageengine.com/sites/meweb/images/desktop-central/desktop-central/help/autonomous-patching/4a.png) - In the **Custom Function** tab, paste the automatic Ring 1 creation script available from [this link](https://workdrive.zohoexternal.in/external/b31b6572b6bb20b3bff6be7af120861698c98b17452668f1938872e2ba9ac90b/download). ![Ring 1 custom function script editor](https://www.manageengine.com/sites/meweb/images/desktop-central/desktop-central/help/autonomous-patching/5a.png) ### Create the Connection - Click **Connection** in the upper-right corner. Under **My Connections**, click **Create Connection**. ![Create connection for patch_auto_ring_connection](https://www.manageengine.com/sites/meweb/images/desktop-central/desktop-central/help/autonomous-patching/6.png) - Under **Pick Your Service**, select **Default Service** → **Endpoint Central**. ![Choosing Service](https://www.manageengine.com/sites/meweb/images/desktop-central/desktop-central/help/autonomous-patching/7.png) - Enter a **Connection Name** and set the **Connection Link Name** as **patch_auto_ring_connection**. Select the following scopes: - `DesktopCentralCloud.PatchMgmt.READ` — Reads approved patches, managed systems, and system-specific patch reports. - `DesktopCentralCloud.Common.READ` — Reads Custom Group details. - `DesktopCentralCloud.Common.UPDATE` — Creates and updates Custom Groups. - Click **Create and Connect**. In the new tab, click **Connect** and then **Allow** to complete the authentication. ![Ring 1 script user configuration variables](https://www.manageengine.com/sites/meweb/images/desktop-central/desktop-central/help/autonomous-patching/8a.png) ### Configure the Script Configure the following variables in the **USER CONFIGURATION** section at the beginning of the script: - **baseUrl:** Enter the base URL for the data center in which your Endpoint Central Cloud instance is hosted. Ensure that the URL ends with a forward slash (`/`). Refer to [this page](https://www.manageengine.com/products/desktop-central/api/cloud_index.html) for the appropriate data center URL. - **PLATFORM:** Specify the platform managed by this function instance. Accepted values are `"Windows"`, `"Mac"`, and `"Linux"`. **Preconfigured value:** `"Windows"` - **RING1_CG_NAME:** Specify the name of the first-ring Custom Group that the function must create or update. **Preconfigured value:** `"Ring 1 Test Group - Windows"` - **TESTING_CG_NAME:** Enter the name of the Custom Group containing the test machines that must always be included in Ring 1. **Example value:** `"Test_Patch_CG"` - **CRITICAL_CG_NAME:** Enter the name of the Custom Group containing the business-critical or production machines that must always be excluded from Ring 1. **Example value:** `"Patch_Critical_CG"` - **MIN_COVERAGE:** Enter the minimum number of Ring 1 machines required to test each patch. For example, enter `2` to ensure that every patch can be tested on at least two machines. A machine will not be removed if it is required to maintain this coverage. - Do not modify any code below the boundary marked in the script. After configuring the script, click **Save and Execute**. This immediately executes the function and creates the custom group of first ring of computers. ### Verify Automatic Ring Creation After the workflow is executed, navigate to the **Custom Groups** section in Endpoint Central and open the first test ring Custom Group specified by **RING1_CG_NAME**. This created custom group will be used as test group in [Test and Approve](https://www.manageengine.com/products/desktop-central/help/patch-management/enable_patch_approval.html). Verify that the required test machines are included and that the business-critical machines configured under **CRITICAL_CG_NAME** are excluded. Then, under **Test and Approve**, open the corresponding test group, and check the patch view to verify that all patches configured in the Automate Patch Deployment (APD) task are listed. **Note** The function fully rebuilds the custom group containing the first ring of test devices during each scheduled execution and does not retain the state from previous executions. If the custom group does not already exist, it is automatically created and can then be used in the Test and Approve settings. ### Complete and Save the Workflow - After configuring the script, add **End** from the **Flow Control** section to complete the workflow. The workflow can be scheduled only after the **End** block is added. Clicking **Save & Execute** executes the workflow immediately once. - Review the workflow configuration and click **Save**. ### Deploy the Workflow - After creating the workflow, navigate to **Deployments** → **Create Deployment** and enter a name for the deployment. ![Create Deployment](https://www.manageengine.com/sites/meweb/images/desktop-central/desktop-central/help/autonomous-patching/9a.png) - Under **Define Resources**, select **Workflow** as the resource type and choose the automatic Ring 1 creation workflow. - Under **Define Targets**, select a Custom Group containing one computer. - Under **Deployment Mode**, select **Schedule** and set the frequency to **Daily**. - Schedule the workflow outside business hours and after the patch approval window has closed. - Ensure that the selected computer remains online during the scheduled execution window. - Verify that the Custom Group specified under **CRITICAL_CG_NAME** exists and that its name exactly matches the value configured in the script. ![Schedule deployment for automatic Ring 1 workflow](https://www.manageengine.com/sites/meweb/images/desktop-central/desktop-central/help/autonomous-patching/10a.png) **Note** If the Custom Group specified under **CRITICAL_CG_NAME** is not found, the workflow treats the exclusion list as empty. As a result, managed production machines may be considered as candidates for Ring 1. Deploy a separate instance of this workflow for each platform: Windows, macOS, or Linux. Each workflow instance manages its own first ring of test devices. ## Workflow 2: Configure Ring-Based Patch Progression This workflow evaluates patches in each deployment ring and allows them to progress only after they meet the configured waiting period and internal reliability score. Patches that do not meet these conditions are temporarily declined. When the conditions are subsequently met, only the declines applied by this workflow are removed. ### Configure the Workflow - Navigate to **DEX** → **Workflows**. - Click **Create Workflow**, select **All Platforms**, and click **Create New**. ![Ring-based patch progression workflow](https://www.manageengine.com/sites/meweb/images/desktop-central/desktop-central/help/autonomous-patching/1.png) - Enter a **Name** for the workflow and, optionally, a **Description**. Click **Done**. - From the pane on the right, drag and drop the **Function** logic under **Logic/Processing** into the workflow. ![Create workflow screen for ring progression](https://www.manageengine.com/sites/meweb/images/desktop-central/desktop-central/help/autonomous-patching/2b.png) - Enter a **Name** for the function and, optionally, a **Stage Description**. - Under **Available Functions**, click the **+** icon. ![Function block added for progression workflow](https://www.manageengine.com/sites/meweb/images/desktop-central/desktop-central/help/autonomous-patching/3b.png) - Enter the name under **Function Name** as **Ring_Progression**, select **Zoho Deluge** as the **Language**, and click **Create Function**. ![Create Ring_Progression custom function](https://www.manageengine.com/sites/meweb/images/desktop-central/desktop-central/help/autonomous-patching/4b.png) - In the **Custom Function** tab, paste the ring-based patch progression script available from [this link](https://workdrive.zohoexternal.in/external/15361a130dd751bb82501ef041add4b5e467cf688387387eadbcc3a9f111791f/download). ![Progression custom function script editor](https://www.manageengine.com/sites/meweb/images/desktop-central/desktop-central/help/autonomous-patching/5b.png) ### Configure the Script Configure the following variables under **User-Configurable Thresholds** at the beginning of the script: - **baseUrl:** Enter the base URL for the data center in which your Endpoint Central Cloud instance is hosted. Ensure that the URL ends with a forward slash (`/`). Refer to [this page](https://www.manageengine.com/products/desktop-central/api/cloud_index.html) for the appropriate data center URL. - **ring1Name / ring2Name / ring3Name:** Enter the names of the Custom Groups used as deployment rings. **Default values:** `"Ring1"`, `"Ring2"`, and `"Ring3"`. - **ring1DelayDays / ring2DelayDays / ring3DelayDays:** Enter the minimum number of days a patch must remain approved before progressing from one ring to the next. These values define the waiting period for each progression stage. **Default values:** `3`, `7`, and `14`. - **internalReliabilityScoreThreshold:** Enter the minimum internal reliability score, from 0 to 10, that a patch must meet. The score is calculated using successful and failed patch installations within the corresponding ring. **Default value:** `7.0`. - Do not modify any code under **Internal / Technical Configuration** unless specifically required. ### Create the Connection - Click **Connection** in the upper-right corner. Under **My Connections**, click **Create Connection**. ![Create connection for ring progression workflow](https://www.manageengine.com/sites/meweb/images/desktop-central/desktop-central/help/autonomous-patching/6.png) - Under **Pick Your Service**, select **Default Service** → **Endpoint Central**. ![Choosing Service](https://www.manageengine.com/sites/meweb/images/desktop-central/desktop-central/help/autonomous-patching/7.png) - Enter a **Connection Name** and set the **Connection Link Name** as **ring_progression_connection**. Select the following scopes: - `DesktopCentralCloud.Common.READ` — Reads the Custom Group and device details required for platform identification. - `DesktopCentralCloud.PatchMgmt.READ` — Reads patch approval, installation, failure, and decline details. - `DesktopCentralCloud.PatchMgmt.UPDATE` — Declines patches that do not meet the configured progression conditions. - `DesktopCentralCloud.PatchMgmt.DELETE` — Removes workflow-applied declines when patches meet the progression conditions. - Click **Create and Connect**. In the new tab, click **Connect** and then **Allow** to complete the authentication. ![Progression script user-configurable thresholds](https://www.manageengine.com/sites/meweb/images/desktop-central/desktop-central/help/autonomous-patching/8b.png) - After configuring the settings, click **Save**. - Add **End** from the **Flow Control** section to complete the workflow. - Review the workflow configuration and click **Save**. ### Deploy the Workflow - Navigate to **Deployments** → **Create Deployment** and enter a name for the deployment. ![Create Deployment](https://www.manageengine.com/sites/meweb/images/desktop-central/desktop-central/help/autonomous-patching/9b.png) - Under **Define Resources**, select **Workflow** as the resource type and choose the ring-based patch progression workflow. - Under **Define Targets**, select a Custom Group containing one computer. - Ensure that the selected computer remains online during the scheduled execution window. - Under **Deployment Mode**, select **Schedule**. - Configure the required execution frequency and complete the remaining scheduler settings according to your organizational requirements. - Schedule this workflow to run after the Automatic Ring 1 Creation workflow and after sufficient time has been provided for the latest patch installation results to be recorded. ![Schedule deployment for ring progression workflow](https://www.manageengine.com/sites/meweb/images/desktop-central/desktop-central/help/autonomous-patching/10b.png) **Note** If fewer than three rings are required, specify a non-existent Custom Group name for the unused ring. The workflow skips that ring without affecting the remaining progression. Only declines applied by this workflow are automatically removed when a patch meets the progression conditions. Manually declined patches remain unchanged. If the devices in the first ring are identified as Linux devices, the workflow terminates without processing any patches.