# Trigger DEP Re-enrollment

> Trigger Apple DEP re-Enrollment on a Mac already set up — bypass a factory reset using a Terminal command with Apple Business.

Source: https://docs.applivery.com/en/device-management/apple/macos/troubleshooting/force-dep-enrollment/  •  Last updated: 2026-05-12

**Key topics:** DEP enrollment bypass, Mac MDM enrollment, Apple Business Manager integration, Terminal commands for macOS, Avoiding factory reset, Mac, Apple Business, DEP, Applivery, MDM, Terminal, Smart Enrollment

---

**TL;DR:** You can trigger Apple DEP enrollment on an already set up Mac without a factory reset by adding it to Apple Business and running `sudo profiles renew -type enrollment` in Terminal.

When a Mac is turned on and goes through the initial setup before being added to Apple Business, it misses the DEP check-in that normally happens at first boot. In most cases, the standard fix is a factory reset — but if you need to avoid wiping the device, there is an alternative.

By adding the Mac to AB and running a single Terminal command, you can trigger DEP enrollment on a device that is already set up.

:::warning
This method triggers MDM enrollment, but **Smart Enrollment does not apply fully**. Automations that run at first boot — such as automatic admin account creation — will not execute. Configure those settings manually after enrollment if needed.
:::

**Add the Mac to Apple Business**

In [Apple Business](https://business.apple.com/), add the device and assign it to Applivery as the MDM server. Make sure a DEP profile is assigned to the device in Applivery before proceeding.

If you need help with this, refer to [DEP configuration in Applivery](/en/device-management/apple/enrollment/dep/).

**Run the enrollment command**

On the Mac, open **Terminal** and run the following command:

```bash
sudo profiles renew -type enrollment
```

Enter the admin password when prompted. This triggers the DEP check-in and sends the MDM enrollment profile to the device.

**Complete enrollment**

A system prompt will appear asking the user to allow device management. Follow the on-screen steps to complete enrollment.

Once done, the device will appear under **Devices** in the Applivery Dashboard.
