Managing Scripts
The admins can use the Scripts tab under the Policies & Configs section to upload script file or adding the script content directly and can edit or delete the scripts, these scripts can be distributed to macOS devices through Policies & Configs > Configurations > Apple > iOS/macOS > Scripts via Declarative Management configuration.
Scripts were earlier supported on EPMM through Mobile@Work macOS script configuration and now it is also supported through Declarative Management configuration.
Enabling Scripts
The Scripts configuration tab is only available only when the Manage Scripts role is assigned.
Procedure
-
In the EPMM admin portal, go to Admin > Admins > Actions.
-
Select Edit Roles option from the drop-down menu.
-
In the Script Management section, select Manage Scripts to enable Scripts.
-
Click Save.
Creating Scripts
The following procedure describes how to add new scripts.
-
In the EPMM admin portal, go to Policies &Configs > Scripts.
-
Click Add +, in the Add Script page update the following:
-
Name: Enter the name of the script.
-
Description: Enter the description of the script.
-
Script Type: The supported script types are .bash, .zsh, .python, and .swift scripts
-
Import code from a script: Click browse to upload the files
-
Script Content: The content of the script that is displayed after uploading the script file or the admin write scripts in this section.
-
-
Click Save
The scripts are pushed to the macOS devices through a Services background task configuration.
For more information, see Scripts via Declarative Management section in macOS settings