This article covers the “Download Pre-Reboot Security Logs” option, available exclusively for DO-enrolled devices.
Purpose
Use Case: In scenarios where device behavior before a reboot is critical (e.g., crash analysis, unauthorized access attempts), enabling pre-reboot security logging helps in diagnosing issues or auditing user actions.
Prerequisites
This option is only available for DO-enrolled devices. It does not apply to WPCO or other enrollment modes.
Steps
Run Script Command
To enable this feature, use the following SureMDM script:
!#suremdm
enablePreRebootSecurityLogs(true)

Options:
- true – Enables the downloading of pre-reboot security logs.
- false – Disables the feature (if needed later).
Example: To disable the feature:
!#suremdm
enablePreRebootSecurityLogs(false)
Steps to create and use the runscript jobs on SureMDM Console
1. On the SureMDM Console, click on Job > New Job > choose Android > click on Run Script Job.
2. Enter the Job Name, and in the text box, enter the Script

3. Select Save to save this Job.
Applying the Job to Devices
- Navigate to the SureMDM Home page.
- Select the desired device(s) or Group of devices.
- Select the Apply button (or Group-Apply button) and apply the above-created job.
Expected Behavior
When true is passed, the device will start collecting and retaining pre-reboot security logs.
Need help?