---
title: Managing Scripts
slug: device-management-apple/managing-scripts
createdAt: 2026-10-06T07:47:35.939Z
---

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**.

:::hint{type="info"}
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&#xA0;**

1. In the EPMM admin portal, go to **Admin > Admins > Actions**.
2. Select **Edit Roles** option from the drop-down menu.
3. In the **Script Management** section, select **Manage Scripts** to enable Scripts.
4. Click **Save**.

### Creating Scripts

**Procedure&#xA0;**

1. In the EPMM admin portal, go to **Policies \&Configs > Scripts**.
2. 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.
3. 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](docId\:JOTIyD2zqKjrARpMpjvJI)
