Datto RMM Tenant-to-Tenant Migration: Windows Script and Recovery Checks

Infostruction banner: a person holding a mug stands in a dim home office lit by server racks and monitors, with the Infostruction logo and wordmark across the centre.

I wrote the original scripts while moving endpoints from my MSP’s Datto RMM tenant into a client’s own tenant. That field experience is useful, but the migration needs more than new account values and a running agent service. You also need a way back if the endpoint never appears where you expect.

Updated November 3, 2026. The Windows helper now previews by default, rejects placeholder destinations, backs up selected local identity files, and uses bounded polling waits. Its recovery path restores those files and the configuration when a local cutover fails. The revised helper has not been tested against a live Datto RMM tenant in this refresh.

Check the current migration options first

This is a community configuration-file method. Confirm the current supported migration route with Datto and review any available migration components before choosing it. The old blanket statement that Datto has no self-service path has been removed; this post is not a current product-feature inventory.

Know the destination platform and its control-channel hostname. Datto runs separate regional platforms; copying a hostname from another tenant is not a safe way to discover yours. See Datto’s platform documentation.

Before the pilot

  • Confirm source and destination ownership, the device list, destination AccountUid, site GUID and control-channel hostname.
  • Have independent endpoint access. The agent you are moving must not be your only recovery channel.
  • Record source configuration, existing device identity and the endpoint’s expected destination policies. A device move is not a transfer of ticket history, tenant configuration or every related integration.
  • Map destination UDF definitions and confirm how monitoring, scripts, patching and remote access should behave.
  • Use one noncritical Windows device before a staged rollout.

Windows download and preview

Download the revised Windows migration helper and save it as Datto-RMM-Tenant-Migration-Windows.ps1. Use this dated revision in place of the original September 2025 Windows download.

It requires administrator/SYSTEM rights, Windows PowerShell 5.1 or later, and a native 64-bit process on 64-bit Windows. It expects the existing CentraStage installation layout; a missing setting or unexpected artifact path is a reason to stop and inspect that agent version.

# Replace all destination values with the ones from YOUR tenant.
.\Datto-RMM-Tenant-Migration-Windows.ps1 -DestinationAccount 'YOUR-ACCOUNT-UID' -DestinationHost 'YOUR-CONTROL-CHANNEL.centrastage.net' -DestinationSite 'YOUR-SITE-GUID'

Without -Apply, it inspects the source and reports the intended configuration and identity-file paths without changing them. Review that output. Then add -Apply -WhatIf for the explicit change preview, or -Apply to proceed through the confirmation prompt.

What the Windows helper changes

It backs up the agent configuration and selected local identity files into a new directory under the installation folder. It captures nonempty process-environment values named UDF_1 through UDF_30, stops the service, updates AccountUid/Profile/CsIp, removes only the selected identity files, and starts the service again. It reads the configuration back and restores the captured UDF values.

This revision does not delete the branding, runtime or remote-control directories. It also does not overwrite Custom25 or Custom30 with migration status. Preserve the returned backup directory and its manifests.

A recovery task is armed before the cutover so that an interrupted local run can restore its backed-up files and start the service. The normal error path attempts local restoration too. The task is removed after local checks pass; it is not a continuing cloud-connectivity watchdog.

Verify the destination console

The result deliberately says local cutover checks passed; destination console verification required. A running service and matching local configuration cannot establish cloud registration, correct policy assignment, or working remote control.

In the destination tenant, verify the expected device identity/site, a fresh audit/check-in, UDF values, monitoring and policy application, and a working remote session. Confirm any expected source-tenant behavior separately. Retire source access only after those checks pass.

If local checks pass but the destination never checks in, use independent access to investigate platform, network and agent logs. The helper does not detect that cloud failure automatically. For a manual recovery, stop the service and restore the original configuration and identity files using the backup manifests, then start the service and verify the source console. Do not restore selected files while the agent is running.

macOS and Linux are separate validation work

Original macOS archive - retained as a historical download. It has not received this Windows revision’s code review or regression checks. Do not assume equivalent recovery behavior.

The previous suggestion that Linux was the same script with a path and service-command substitution has been removed. Validate agent layout, identity handling and recovery separately for each operating system.

Validation for this revision: PowerShell syntax and local checks for destination validation, timeout behavior, UDF mapping and configuration restoration. No live agent service, scheduled recovery task, tenant cutover or macOS/Linux migration was exercised during this refresh.

Share your thoughts, leave a comment

Your email address will not be published. Required fields are marked *

You may also like these

INFOSTRUCTION

You're about to become an infostruction VIP!

By subscribing, you’ll receive a monthly round-up of the latest news. There’ll be no spam, I promise :)