Administrators can now restrict access to USB storage on macOS devices with SureMDM, preventing unwanted data transfers and protecting private data. By configuring a Run Script job, admins can easily allow or block USB storage devices (such as flash drives, external hard drives, and pen drives). This guide provides steps to configure and apply the Job for effective USB management on macOS.
Purpose
To enable or disable USB Storage devices on macOS using a Run Script in SureMDM, providing control over the use of USB storage peripherals without affecting other types of connected devices (e.g., keyboards, mice, and smartphones).
Prerequisites
- Access to the SureMDM account.
- Permission to create and apply jobs.
- macOS devices are enrolled and managed through SureMDM, and it should be online.
- macOS Agent version >=5.8.3
Note:
- This Script-based approach targets USB Storage devices only (such as flash drives, external hard drives, and pen drives)
- This configuration will not affect other peripherals (e.g., keyboards, mice, and smartphones).
Steps
- Login to SureMDM Console.
- Navigate to Jobs, click on New Job, and select macOS as a platform.
- Now, click on Run script job.
- Enter the Job name and select Allow USB storage Devices/Block USB storage Devices from the USB Media Control section
→Allow USB Storage Devices: !#suremdm USBMode UnBlock
→Block USB Storage Devices: !#suremdm USBMode Block - Click Validate to validate the script, and then click on Insert after validation.
Now the script will be in the script box. - Click Save.
Now, the newly created job will be listed in the Jobs Section. - Go back to the Home tab and select the macOS device(s) or group(s).
- Click Apply to launch the Apply Job/Profile To Device prompt.
- In the Apply Job/Profile To Device prompt, select the created job and click on Apply.
Need help? CONTACT US
Was this helpful?
YesNo