Skip to main content

I bought a used Macbook and have updated it to the latest Mavericks. From when I first powered it on I have been getting prompts to enroll the device. I can't get them to go away...only cancel them and they reappear dozens of times per day.



I guess the folks who sold the machine have it in their DEP server? Or there is an agent that keeps checking?



How can I disable the agent that keeps prompting me to join?



Could not figure out after 30 minutes searching JAMF and other sites discussions of the various woes of school IT admins. :(




This was purchased through Amazon, or it’s in Amazon’s DEP account?



If it was purchased through Amazon, but via a third party seller, Amazon is not going to be able to remove it from DEP. It’s probably stolen in this case. Only the company that is on the enrollment can remove it. You should have returned it as soon as you saw the problem.



If it’s actually in Amazon’s DEP account, you’re going to have to try getting ahold of someone in their IT Dept, but it’s probably still stolen so they might not release it.



it's in Amazon's DEP account. My question is, in the DEP management console, is there an option to remotely lock or wipe the device? If not,  I'll contact them and take my chances. Maybe they just forgot to remove this Mac from DEP system and it's not stolen. BUT IF they can lock or wipe it from the DEP console, I don't think I can afford to take this chance. Maybe in the future, when I buy a new Mac.


Greetings to every one!
I bought one MBP 2019 from craigslist and was running very smoothly. I did not encounter any pop ups. My issue happens when i updated catalina. I am attaching some photos. I cannot get past the last sign in stage. Please help.







I bought a 2015 MBP in 2018 from an ebay seller located in Seattle. Just did an erase and install and i'm getting these exact same popup messages! I called the number and amazon basically told me it's stolen and won't release it from MDM. Ebay seller is no where to be found. Ugh. 


it's in Amazon's DEP account. My question is, in the DEP management console, is there an option to remotely lock or wipe the device? If not,  I'll contact them and take my chances. Maybe they just forgot to remove this Mac from DEP system and it's not stolen. BUT IF they can lock or wipe it from the DEP console, I don't think I can afford to take this chance. Maybe in the future, when I buy a new Mac.


I have the same issue. Called Amazons IT dept and they told me it was stolen because they never get rid of or sell devices, which I find hard to believe. So basically i'm skunked. 


I am faceing same problem to remove Device enrollment from my MacBook device plz help me to remove it guys just gave me correct information to remove it ranjitranapal42@gmail.com

 


I am faceing same problem to remove Device enrollment from my MacBook device plz help me to remove it guys just gave me correct information to remove it ranjitranapal42@gmail.com

 


@Ranjitranapal This is not something anyone can do except the company that owns the device.  Please read the thread as I've described what's going on in-depth.


Just want to pop in here to see if anyone has insight. I’ve had my MacBook for 2 years I got from a swappa.com It was added cleanly to my iCloud account and apple sold me applecare+ for it. Last nov they replaced the logic board and factory fresh when I got it. I’m trying to wipe it to trade it in and I get this remote management thing from AVC auctions. I can log in and remove the profile but it’s weird after 2 years and many updates and at least 2 full reinstalls it’s never had this pop up before. Any ideas what happened? 


Just want to pop in here to see if anyone has insight. I’ve had my MacBook for 2 years I got from a swappa.com It was added cleanly to my iCloud account and apple sold me applecare+ for it. Last nov they replaced the logic board and factory fresh when I got it. I’m trying to wipe it to trade it in and I get this remote management thing from AVC auctions. I can log in and remove the profile but it’s weird after 2 years and many updates and at least 2 full reinstalls it’s never had this pop up before. Any ideas what happened? 


@Askingquestion It's possible the "owner" of the ABM/ASM account recently assigned the Serial Number so that it would enroll into their MDM.

You're able to remove the MDM Profile from the device after it's enrolled?  That's both surprising and shouldn't be possible -- unless it's still running an older OS Version and the MDM owner configured their MDM Profile's to be removable, which is also very surprising.

I would ensure that the serial number that is programmed into the device matches the serial number that is physically written on the device.  You can check the serial number programmed into the board via running the following command in Terminal:

/usr/sbin/ioreg -c IOPlatformExpertDevice -d 2 | /usr/bin/awk -F\\" '/IOPlatformSerialNumber/{print $(NF-1)}'

That should spit out the exact serial number and you can verify that it matches the physical serial number.

 

We have two devices in our environment that have the same serial number programmed on the devices, so it is possible that the wrong serial number was programmed on the replacement board.


Just want to pop in here to see if anyone has insight. I’ve had my MacBook for 2 years I got from a swappa.com It was added cleanly to my iCloud account and apple sold me applecare+ for it. Last nov they replaced the logic board and factory fresh when I got it. I’m trying to wipe it to trade it in and I get this remote management thing from AVC auctions. I can log in and remove the profile but it’s weird after 2 years and many updates and at least 2 full reinstalls it’s never had this pop up before. Any ideas what happened? 


Sometimes the /etc/hosts file is used to block communication with Apple's mdm/dep servers ,  and that can persist through updates and maybe a re-installation if the drive isn't erased.


I'm going to try to address many historical and current questions on this topic below...



If a device is in a company's ABM/ASM (DEP) account that means it was purchased and assigned to an institutional (company) account at Apple. If you have a device that is popping up a message like this, then it was a registered as an institutional purchase.



Apple will not remove a device from a companies account as they do not know if it was stolen. This is the responsibility of the original owner of the device. This is just like Activation Lock or signing into iCloud on an iPhone (to prevent its use if it's been stolen).



So the first thought is a device was stolen if you are getting this pop up. If it's not, you should contact the company that sold it. (Maybe it was an oversight as one person mentioned.) Companies that have ABM/ASM accounts are Legally Obligated to release device from their ABM/ASM accounts that they no longer own, per the terms and conditions of the program. I do know my own organization fails to properly address devices like this and I strive to educate our techs on this, but unfortunately, most do not understand the impact or even the stress of using Automated Device Enrollment (DEP) in the first place. Also, just because a device is new in box, does not mean the device is not stolen.



For the suggestion to pay for a service to re-program the Serial Number, this is an illegal service not condoned or supported by Apple. (If the device was under warranty, it would likely be voided.) The suppliers of this type of service are supporting the theft of devices, whether directly or indirectly, as that is the only reason to re-program a serial number. When another serial number is programmed in, you now have the serial number of another device some where in the word, which could cause issues in and of itself. Going forward with new hardware release (as announced at WWDC 2020) this type of service (re-programming serial numbers) will be much harder as the serial number will be completely unique and no longer be able to identify the device. So you won't be able to simply change a single value and it be valid.



Yes, there are ways to "remove" the notification from a Mac itself, but those are likely temporary. The next time the Mac connects to Apple's activation servers, it will pop up again. You can never remove it from ABM/ASM, only the institution can do that.



Yes, you can not connect to the internet during the setup of the device, but again, this is likely only temporary. The device will eventually check-in with Apple's activation server, and the message will pop up.



If you cannot find enough suitable information after reviewing the MDM Profile that the notification wants to install, you can run the command, which should give information on the organization that the device is registered too:



sudo profiles show -type enrollment


For the comments that mention that the device was removed (released) from the ABM/ASM (DEP) account, but the device is popping up the notification, this is normal/expect at this time. When the device checks in to Apple's activation servers, it downloads its activation record and saves it to disk (see above command -- this is the same content save to disk). The device doesn't check-in again to see if the record is "gone" -- that's not an expected scenario that Apple would bother programming for. You have two options: wipe and reinstall (strong and dumb approach) or delete the files that store this information. The files are stored in a SIP protected directory in modern versions of macOS, but you can reboot into the Recovery Volume and delete the files. This command will work from recovery to delete the related files:



rm /Volumes/Macintosh HD/var/db/ConfigurationProfiles/Settings/.cloudConfig*


For those that have legit purchases... Seeing this message/notification does not mean the device is enrolled and no, the organization cannot access your files/device. But if it has been enrolled, then yes, they can take over, view, and lock your device as well as apply configurations, restrictions, requirements, etc.



For the instructions above about removing profiles, etc. That is not possible once the MDM Profile is installed if the organizations required the MDM Profile to be installed (in other words, configured the Profile to not allow un-enrollment), which is a requirement (no longer an option to configure) going forward with macOS Catalina 10.15 and newer.



Finally, @aalamerican, we've seen similar scenarios with our primary vendor or even phone carrier stores. Staff will say they're an employee with our organization to receive a discount and the vendor will incorrectly add the device to our company's ABM/ASM account. Then the device will attempt to enroll. You should be able to go back to that store, explain the situation, provide your paid receipt, and they should be able to remove it. (Besides the "purchasing institution" only the originally selling vendor can/will remove a device from ADE/DEP.) My recommendation, if what you're telling the normal Joe/Jane you speak with in the store is flying over their head, ask to speak with someone from the business team in the store. The business team should understand ADE/DEP to some degree and at least be able to discuss the topic (where a normal employee likely only ever deals with consumer sales which this will never touch).



Hope this information helps someone.



This didn't work for me. 


This didn't work for me. 


Assuming your hard drive is labeled "Macintosh HD", this is how you diable
the mdm popup:

Boot to Recovery Mode by holding command-R during restart and continue with
Main procedure

Main procedure
Open Utilities → Terminal and type
$ csrutil disable
$ reboot
Hold command-R during the reboot to enter Recovery Mode again

Enter Disk Utility, and mount the Macintosh HD volume (or whatever your
main volume is named). (It might already be mounted.)

Exit Disk Utility, open Utilities → Terminal, and type

$ cd "/Volumes/Macintosh HD/System/Library"
$ cd ../../etc
$ echo "0.0.0.0 iprofiles.apple.com" >> hosts
$ echo "0.0.0.0 mdmenrollment.apple.com" >> hosts
$ echo "0.0.0.0 deviceenrollment.apple.com" >> hosts
$ echo "0.0.0.0 gdmf.apple.com" >> hosts
$ csrutil enable
$ reboot

---------------------------------------------------------------

Then you also have to delete the existing MDM profile info from
/var/db/configurationprofiles/settings/
/var/db/configurationprofiles/store/

The files may be hidden so you won't see them unless you use "ls -a".
Remove the the files from /settings/ with: rm .* and remove the
files from /store/ with: rm *

csrutil enable
reboot
Assuming your hard drive is labeled "Macintosh HD", this is how you diable
the mdm popup:

Boot to Recovery Mode by holding command-R during restart and continue with
Main procedure

Main procedure
Open Utilities → Terminal and type
$ csrutil disable
$ reboot
Hold command-R during the reboot to enter Recovery Mode again

Enter Disk Utility, and mount the Macintosh HD volume (or whatever your
main volume is named). (It might already be mounted.)

Exit Disk Utility, open Utilities → Terminal, and type

$ cd "/Volumes/Macintosh HD/System/Library"
$ cd ../../etc
$ echo "0.0.0.0 iprofiles.apple.com" >> hosts
$ echo "0.0.0.0 mdmenrollment.apple.com" >> hosts
$ echo "0.0.0.0 deviceenrollment.apple.com" >> hosts
$ echo "0.0.0.0 gdmf.apple.com" >> hosts
$ csrutil enable
$ reboot

---------------------------------------------------------------

Then you also have to delete the existing MDM profile info from
/var/db/configurationprofiles/settings/
/var/db/configurationprofiles/store/

The files may be hidden so you won't see them unless you use "ls -a".
Remove the the files from /settings/ with: rm .* and remove the
files from /store/ with: rm *

csrutil enable
reboot

Tried this. So far so good. Thanks!


Go to the DEP site for your company to take your laptop out of the DEP prompt. Next, use the serial number to locate your device, then choose "Unassign Device." By doing this, the enrollment prompt will be removed, and your laptop will be removed from the DEP.


Key steps:




  • Access the DEP portal: Log in to your company's Apple Device Enrollment Program portal with admin credentials. 




  • Navigate to device management: Go to the "Manage Devices" section within the portal. 




  • Identify your device: Enter your laptop's serial number to find it in the devices list. 




  • Unassign the device: Select "Unassign Device" as the action to take on your laptop. 




To know more details, visit here: Macbook Repair Dubai


Reply