Skip to main content

Deploying Swif Silently on Mac/macOS Machines

Overview

The Swif silent installer for macOS simplifies the process of enrolling devices into Swif's management system and removing existing MDM profiles. This guide outlines the steps to retrieve required configurations, prepare the installer, and deploy it silently on macOS devices.

Important Note: Silent Installer Does Not Support BYOD Enrollment

The Swif silent installer for macOS is designed for corporate-owned devices and does not support Bring Your Own Device (BYOD) enrollment. Ensure that all devices being enrolled using the silent installer are organization-owned.

Important Notes about Existing MDM Profiles

  • The Swif agent removes the old MDM profile itself, when macOS allows it. It checks every 10 minutes, and removes non-Swif MDM profiles with administrator rights.

  • You don't need the old MDM's removal key. macOS never shows a profile's removal password, only whether there is one, so it can't be read from the Mac. Leave the Removal Key empty.

  • Some old profiles can't be removed on the Mac: profiles marked as non-removable, and profiles locked with a removal password. For these, release the Mac from MDM in your old MDM, after the Swif installer is on it. The Swif agent then opens the Swif profile at its next check. See Remove the Existing MDM Enrollment.

  • Swif doesn't remove the old MDM's agents, services, or apps. Uninstall them separately.

For a complete migration guide, see Migrate Macs from Another MDM to Swif.


When an Existing MDM Profile Cannot Be Removed

The Swif silent installer attempts to remove an existing third-party MDM enrollment profile before enrolling the Mac in Swif. However, macOS permits only one active MDM enrollment at a time, and Swif cannot remove a profile that the previous MDM provider configured as non-removable.

When this occurs, Swif enrollment may fail with the following message:

Profile installation failed.
Your computer is already enrolled with an MDM server. It can be enrolled with only one MDM server at a time.

This commonly affects Macs enrolled through Apple Business Manager using Automated Device Enrollment, formerly called Device Enrollment Program or DEP. Automated Device Enrollment allows the previous MDM provider to prevent users, local administrators, and command-line tools from removing its enrollment profile.

No key or setting on the Mac can remove a non-removable profile. Release the Mac from MDM in your old MDM instead. See Remove the Existing MDM Enrollment.

Check Whether the Existing Profile Is Removable

  1. On the Mac, open System Settings.

  2. Go to General > Device Management.

  3. Select the existing MDM enrollment profile.

  4. Check whether the Unenroll or remove (–) control is available.

If the remove control is disabled, the profile cannot be removed locally. The Swif silent installer will continue trying to remove the profile, but macOS will reject the request.

To check many Macs at once, run the read-only check script in Migrate Macs from Another MDM to Swif through your old MDM. It shows, for each Mac, whether the old profile can be removed, whether it's locked with a removal password, and whether the Swif agent is running.


Remove the Existing MDM Enrollment

Use one of the following methods.

Method 1: Release the Mac from MDM in your old MDM

Use this for most migrations. You don't need to erase the Mac.

  1. Deploy the Swif silent installer with your old MDM, while the Mac is still managed by it.

  2. Check that the Mac appears in Swif.

  3. Release the Mac from MDM in your old MDM. Each MDM names this differently, such as Release from MDM, Unenroll, or Remove MDM.

  4. The Swif agent opens the Swif profile at its next check. The user clicks Install, and enters their password.

Release the Mac only after the installer is on it. Once it's released, your old MDM can't install anything on it.

If you can't use the old MDM, ask its previous administrator to release the Mac.

Method 2: Migrate in Apple Business, without erasing (macOS 26 and later)

Use this for Macs enrolled with Automated Device Enrollment, running macOS 26 or later. You don't need the old MDM, and you don't need to erase the Mac.

In Apple Business (formerly Apple Business Manager), assign the Mac to Swif's MDM server, with an enrollment deadline. macOS asks the user to enroll in Swif, removes the old MDM, and enrolls the Mac in Swif, by the deadline at the latest. Users keep their accounts, files, and settings.

You must set an enrollment deadline. Without one, the Mac stays with the old MDM.

Macs running macOS 15 or earlier can't migrate this way. Use Method 1, or assign the Mac to Swif's MDM server in Apple Business, then erase it, so it enrolls in Swif during setup. Erasing deletes all local data, so back it up first.

Reassign the Mac. Don't use Release Devices in Apple Business. Release Devices removes the Mac from your organization, and you can't add it back without Apple Configurator. This is different from releasing a Mac from MDM in your old MDM, in Method 1.

If the Mac Re-enrolls in the Previous MDM After an Erase

The Mac may still be assigned to the previous MDM server in Apple Business Manager.

Before erasing it again:

  1. Locate the Mac by serial number in Apple Business Manager.

  2. Reassign it to the correct MDM server.

  3. Confirm that the new assignment has synchronized.

  4. Erase and reactivate the Mac.

If the assignment is not changed, Automated Device Enrollment can enroll the Mac in the previous MDM again during Setup Assistant.


How to use silent installer

Step 1: Download the Silent Installer

Download a new copy for each rollout or migration, rather than reusing an old one.

If the silent installer tab in Swif shows Identifier and Removal Key fields, leave them empty. The Swif agent finds the old MDM profile on its own.

Copy the silent installer's download link from the Swif admin dashboard. Don't type the link yourself: it's specific to your organization, and to the current installer version.

You can download the installer in your browser, but macOS may flag files downloaded that way as unsafe. To avoid this, download it with curl in Terminal:

curl -OL "<download link you copied from Swif>"

Step 2: Install Swif Silently

Once the installer is downloaded, use the following command to install Swif silently:

sudo installer -pkg <installer file>.pkg -target /

Replace <installer file>.pkg with the name of the file you downloaded.

The Swif agent finds the existing MDM profile and removes it, when macOS allows it.

Note, profiles configured as non-removable through Automated Device Enrollment must first be removed through the previous MDM provider or migrated through Apple Business Manager.

Step 3: Approve MDM profile

Go to System Settings > General > Device Management. The Swif MDM profile appears automatically. Click Install, and enter the password of a local administrator.

If the Mac had another MDM, the Swif profile appears only after the old MDM profile is removed. If it doesn't appear, release the Mac from MDM in your old MDM. See Method 1.

Step 4: Verify Installation

  1. After the installation is complete, verify that the Swif agent has been successfully installed and the device is enrolled in Swif.

  2. Check for the removal of the previous MDM profile by running:

    sudo /usr/bin/profiles list

Additional Notes

  • The Swif agent checks for old MDM profiles every 10 minutes, and removes them when macOS allows it.

  • Non-removable profiles, and profiles locked with a removal password, can only be removed by releasing the Mac from MDM in your old MDM.

  • If double-clicking the package doesn't open it, allow it in System Settings > Privacy & Security. Installing from the command line is recommended.


Benefits of Silent Installation

  • Streamlined Setup: Automates the removal of existing MDM profiles and enrollment into Swif.

  • Scalable Deployments: Supports bulk deployment for enterprise environments.

  • User-Friendly Transition: Ensures minimal disruption during the device management transition.

For additional support, visit our help center or contact Swif support.

You can also use the silent installer on existing MDM-managed machines to silently migrate the existing MDM to Swif. Here are 2 examples:

Note, that the silent installer package can not be opened by double-clicking because of Apple policy or you might get this error "macOS silent installer can't be opened because Apple cannot check it for malicious software.

Did this answer your question?