Remove orphaned Hexnode MDM profile from macOS after Mac transferSolved

Participant
Discussion
4 hours ago Nov 23, 2026
A replaced MacBook was set up using the “transfer all” option from an older Mac. The Hexnode MDM profile also got transferred to the new Mac, but the new Mac was never properly enrolled in Hexnode.
The old Mac was already disenrolled and deleted from the portal. Now the new Mac still shows the old Hexnode profile under System Settings > General > Device Management, and removing it asks for the UEM/profile removal passcode.
The setup uses unique device passwords, so the common removal password does not work. The Device Info page no longer shows a passcode either, only an option to configure it. The Mac is not in Apple Business.
Is there any way to recover the old UEM passcode or remove this orphaned profile so the Mac can be enrolled again?

Replies (1)

Marked SolutionPending Review
Hexnode Expert
16 minutes ago Nov 23, 2026
Marked SolutionPending Review

Welcome to the Hexnode Community.

When unique device passwords are enabled under Admin > Enrollment, Hexnode generates a separate profile removal passcode for each enrolled device. That passcode is stored against the device record in the portal.

If the device has been disenrolled and the device record has also been deleted or fully purged, the unique profile removal passcode cannot be retrieved from the portal. There is no emergency override passcode that can be issued for that deleted record.

Before assuming the record is fully gone, check whether the device still appears under Reports > Disenrollment Pending Devices. If it is not listed there and is also absent from the device list, the record has been purged.

For an orphaned macOS profile that was transferred to a new Mac, try removing the profile locally from Terminal:

  1. Open Terminal on the Mac.
  2. Run:

sudo profiles list

3. Find the Hexnode profile identifier. It is commonly:

com.hexnode.mdm

4. Run the removal command using the exact identifier found in the previous step:

sudo profiles -rf -p [ProfileIdentifier]

Example:

sudo profiles -rf -p com.hexnode.mdm

If macOS blocks the local removal or the command fails due to local security restrictions, the remaining option is to erase/wipe the Mac. Erasing the Mac clears the orphaned MDM profile, after which the device can be enrolled again.

Regards,
Mary Romero

Save