Device Offboarding [RMM, Intune and Entra]
Summary
The Device Offboarding [RMM, Intune and Entra] workflow runs the Device Offboarding [RMM, Intune and Entra] bot once a day at 6:00 AM. It uses CW RMM's built-in schedule trigger, so there's no separate trigger to import.
Once a day is the most often a scheduled workflow can run, so a device marked for offboarding is handled at the next morning's run.
How it works:
- The schedule trigger starts the workflow every day at 6:00 AM.
- The workflow runs the bot, which offboards every device in the Offboard - Pending group as set by each device's Offboard_Action.
- Devices that can't be offboarded keep the reason in Offboard_Failure_Reason and are retried at the next run.
Details
| Name | Description | Category tags | Trigger |
|---|---|---|---|
| Device Offboarding [RMM, Intune and Entra] | Runs the Device Offboarding [RMM, Intune and Entra] bot daily at 6:00 AM. Devices in the Offboard - Pending group are removed from Intune and Entra as set by Offboard_Action, then their CW RMM agent is uninstalled. If a check fails, nothing is deleted and the reason goes to Offboard_Failure_Reason. | Device Management | Built-in schedule trigger: Repeats every day |
Dependencies
- Bots: Device Offboarding [RMM, Intune and Entra]
- Group: Offboard - Pending
- Custom Field: Offboard_Action
- Custom Field: Offboard_Skip_Offline_Check
- Custom Field: Offboard_Failure_Reason
- Custom Field: Offboard_Tenant_ID
- Custom Field: Offboard_App_Client_ID
- Custom Field: Offboard_App_Client_Secret
The bot must be installed and published before this workflow is imported. A workflow that references a bot that doesn't exist in the environment can't be saved.
Workflow Setup Path
- Tasks Path:
Automation➞Workflows➞All Workflows
Usage Example
A client replaces the laptop LAPTOP-014 with a new one that reuses the same name.
- On Monday afternoon, a technician sets Offboard_Action on the old
LAPTOP-014toRMM Intune and Entra. The device joins the Offboard - Pending group. - At 6:00 AM on Tuesday, the workflow runs the bot. It finds the old laptop in Intune by its name and serial number, so the new
LAPTOP-014isn't touched. - The old laptop is deleted from Intune and Entra, then its CW RMM agent is uninstalled.
If the old laptop is already wiped and offline, the technician also checks Offboard_Skip_Offline_Check. Otherwise the bot skips it and writes the skip to Offboard_Failure_Reason.
Component Used
This workflow uses the following ConnectWise RMM workflow components:
- Schedule Trigger (Repeats every day): The built-in trigger that starts the workflow every day at 6:00 AM.
- Bot: Runs the Device Offboarding [RMM, Intune and Entra] custom bot, which does all of the offboarding work.
Diagram
End-to-end flow of the workflow. The workflow itself is a single bot step; the bot node lists what the bot does on each run. Colour coding matches the workflow builder (green = trigger, teal = bot, blue circle = stop).
Legend
- 🟩 Trigger – the built-in schedule trigger that starts the workflow once a day (entry point).
- 🟦 Bot (teal) – the custom RPA bot step that does all of the offboarding work.
- 🔵 Stop (■) – the end of the workflow.
Node Descriptions
- Trigger (Repeats every day): Starts the workflow every day at 6:00 AM. This is the most often a scheduled workflow can run.
- Device Offboarding [RMM, Intune and Entra] (Bot): Reads the members of the Offboard - Pending group and offboards each one as set by its Offboard_Action. The bot takes no input from the workflow. See the bot document for exactly what it checks and removes.
Workflow Creation
Install the workflow from the ProVal - Content Community. The Device Offboarding [RMM, Intune and Entra] bot must already be installed and published, otherwise the bot step can't resolve. After installation, check the following settings.

1. Confirm the Schedule
- Open the workflow and select the Trigger node.
- Confirm it's set to Repeats every day at 6:00 AM. You can choose a different time, but keep it to once a day.
2. Confirm the Bot Action
- Select the Bot node and confirm the selected bot is Device Offboarding [RMM, Intune and Entra].
- Leave Allow Failure unchecked, so a failed run shows as a workflow failure rather than passing silently.
- Save the workflow.
Primary Note: User Permissions
The workflow runs under the account that created it. Create it with an account that has access to every device you'll offboard and is allowed to uninstall agents. The bot can't offboard devices that account can't access, and if agent uninstallation is turned off for it, each device fails with ErrAgentUninstallationDisabled in Offboard_Failure_Reason.
Completed Screenshot
Changelog
2026-10-27
- Initial version of the document