Purpose
This article explains how to use SureMDM’s Run Script feature to remotely provision and manage E-SIM profiles on Android devices.
With this feature, administrators can remotely download, install, and delete E-SIM profiles directly from the SureMDM console without physically handling SIM cards.
This functionality is especially useful for organizations managing cellular-enabled Android devices deployed across multiple locations, remote environments, or large enterprise fleets.
Using SureMDM’s E-SIM Lifecycle Management, IT administrators can:
- Simplify device onboarding
- Remotely activate carrier profiles
- Reduce physical SIM management
- Perform bulk E-SIM operations efficiently
- Improve scalability and deployment speed
Prerequisites
- Android device enrolled in SureMDM
- Device must be:
- Fully Managed (Device Owner mode)
- Running Android 15 or above
- Device should have an active internet connection
- Valid E-SIM activation code provided by the carrier
- Subscriber ID/EID available for deleting E-SIM profiles
Steps
Procedure to Create a Run Script
- Log in to the SureMDM Console >> Jobs > New Job > Choose OS Platform [Android] > Choose Run Script.
- Copy and paste the script into the column and modify it as per your use case.
Run Script to Download and Install an E-SIM Profile
!#suremdm
esim_download(activation_code)
Replace activation_code with the actual E-SIM activation code provided by the carrier.
Example:
!#suremdm
esim_download(LPA:1$examplecode123)
This script downloads and installs the E-SIM profile on the target Android device.
Run Script to Delete an E-SIM Profile
!#suremdm
esim_delete(subscriber_id)
Replace subscriber_id with the actual Subscriber ID/EID of the E-SIM profile.
Example:
!#suremdm
esim_delete(89049032000000000000)
This script removes the specified E-SIM profile from the target Android device.
Notes
- The activation_code is provided by the mobile carrier for E-SIM activation.
- The subscriber_id refers to the E-SIM Subscriber ID/EID associated with the installed profile.
- These commands are supported only on:
- Fully Managed Android devices
- Android 15 and above
- Save the job and deploy it to the target device or device group.
Conclusion
Using SureMDM’s Run Script functionality, IT administrators can efficiently automate E-SIM provisioning and lifecycle management across Android devices.
This approach eliminates the dependency on physical SIM cards, simplifies remote deployments, improves scalability, and significantly reduces manual effort for managing cellular-enabled enterprise devices.
Need more help? Here’s how to get help from our experts.