Purpose
This article outlines the process to move a Windows device from its current SureMDM console to a new console using a scripted approach. This is typically required during environment changes, tenant migrations, or organizational restructuring.
Prerequisites
Before initiating the migration, ensure the following:
- The Windows device is online and accessible
- You have administrative privileges to execute scripts
- The target SureMDM console URL is available
- Device is currently enrolled and functioning properly in the existing console
Migration Steps
Migration on Windows devices is carried out using a Run Script from the SureMDM console.
Step 1: Execute Migration Script
Create a Run Script Job
- Log in to the SureMDM console
- Navigate to:
Jobs → New Job → Window → Run Script - Create a new Run Script job
Use following script
!#suremdm migratedevice <Account ID> <console URL>
shutdown -r -t 120
Example:
!#suremdm migratedevice 122100617 test.suremdm.io
shutdown -r -t 120
Step 2: Configure Execution Settings
While deploying the script, ensure the following:
- The script is executed in plain text format
- The option “Run as logged-in user” is disabled (unchecked)
Step 3: Customize Reboot Timing (Optional)
- The value specified in the command (-t 120) defines the restart delay in seconds
- You can modify this value based on your requirement (for example, -t 60 for 1 minute or -t 300 for 5 minutes)
- The device will reboot after the specified time, completing the migration process
Need more help? Here’s how to get help from our experts.
Was this helpful?
YesNo