Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save henrik242/65d26a7deca30bdb9828e183809690bd to your computer and use it in GitHub Desktop.
Save henrik242/65d26a7deca30bdb9828e183809690bd to your computer and use it in GitHub Desktop.
@icarus2712
Copy link

I did a direct update from working great Ventura 13.7 to Sequoia 15 and had no issues.

I did follow the instruction posted by @sonomadep after performing the upgrade. I didn't wait for any nag screens to appear, I just proactively did it.

could u share how did u do it ? step by step?

@icarus2712
Copy link

@Jbb08 Thank you for your answer I will do the same and let everyone know. Around 1 hour before I updated to 15. I'm using it without problem now.

please share how did u update?

@spiralz23
Copy link

spiralz23 commented Sep 25, 2024

Ok so I tried to update straight from 13.7 to 15 in software update but it failed then update showed up Sonoma (14.7)

so I made sure my hosts were set blocking the usual suspects

went into my router (lynksis) and opened up parental controls found my mac in devices and blocked access to the same as hosts file.

then just updated to sonoma took a while but at went ok mac is working as normal no MDM or difference to previous.

Now the update to 15 has showed up in update so I've now installed the update to 15 no issues at all no MDM pop ups everything seems to be working as it should , Hosts file remains unchanged still blocking as it should.

TLDR; I just made sure my hosts file and router was blocking deviceenrollment.apple.com, mdmenrollment.apple.com, iprofiles.apple.com and just updated as normal. 13 - 14 - 15

thanks.

@fmodesto30
Copy link

fmodesto30 commented Sep 25, 2024

Hi everyone !

It's about to complete a year since I followed @joshworksit's bypass. M1 Pro 2021.

Since then I have always updated without problems.

I just updated (09/25/2024) from 14.6.1 to Sequoia 15.0.

Make sure to have it configured.

echo "0.0.0.0 deviceenrollment.apple.com" >>/Volumes/Macintosh\ HD/etc/hosts
echo "0.0.0.0 mdmenrollment.apple.com" >>/Volumes/Macintosh\ HD/etc/hosts
echo "0.0.0.0 iprofiles.apple.com" >>/Volumes/Macintosh\ HD/etc/hosts

@Ph0eN1x1917
Copy link

I've been on Ventura, currently 13.6.9 M1 2020. After following the guide as well. For every update, I was able to just run this command
rm -r /private/var/db/ConfigurationProfiles
I wouldn't see the nagging pop-up anymore. Until the last update and I can't remove it anymore. Restricted access etc...

Can I still update to 15 without an issue? I've been hesitant for far to long if anyone can clarify what might happen??
Thank you!

@Ran-Xing
Copy link

If you don't want to toss or encounter difficulties, you can ask me for a paid solution, whether it's a command line or an automatic program.

@joaoteubner
Copy link

Has anyone updated to MacOs Sequoia 15.0.1? I've been looking for a permanent solution for days to end this remote management blockage once and for all and not worry about future updates but I can't find it anywhere.

@contactsunilkumar
Copy link

Hello, thanks to all of you with the detailed instructions to upgrade the system.

I managed to upgrade the system, but now after usage for about 1-2 hours, started getting those MDM profile notifications. How do I completely avoid such profile notifications, as the system is not letting me do anything unless I enrol.

Please suggest

@joaoteubner
Copy link

Hi, I tried everything, but I only came to two conclusions.
Contact the company and ask them to unlink the Mac's serial number from their system, or hire a good Indian guy that I found on Telegram to resolve it for me, which is what I did lol.
Here is the link to the video that made me find it.
https://youtu.be/XIk-GWb4K_Q?si=FumfZpFsFCEFx6mS

@gboy13
Copy link

gboy13 commented Oct 24, 2024

Another one... anyone updated from MDM ventura (13.7) to 15? (2021 MBP M1)
Thanks

I have the same questions. Used my instructions here on ventura but would like to migrate to 15. https://gist.github.com/henrik242/65d26a7deca30bdb9828e183809690bd?permalink_comment_id=4620471#gistcomment-4620471

My upgrade went smooth. Only thing I did preemptively in addition to my own instructions from the OG install is add the blacklist to the hosts file.

@N4ssim
Copy link

N4ssim commented Nov 8, 2024

IMG_6849
Hi, how can I get around this page without reinstalling macos and losing my data?
I have version 14.6

and how can I transfer my data without losing it?

@bagofcig
Copy link

IMG_6849 Hi, how can I get around this page without reinstalling macos and losing my data? I have version 14.6

and how can I transfer my data without losing it?

Hey, i have encountered the same thing after updating my mac to sequoia. I was able to get around this page by booting the mac into recovery mode and open terminal and execute this command below, thanks to (holyMolyTolli) and everyone else who shared this

echo "0.0.0.0 deviceenrollment.apple.com" >>/Volumes/Macintosh\ HD/etc/hosts
echo "0.0.0.0 mdmenrollment.apple.com" >>/Volumes/Macintosh\ HD/etc/hosts
echo "0.0.0.0 iprofiles.apple.com" >>/Volumes/Macintosh\ HD/etc/hosts

@solis98
Copy link

solis98 commented Dec 7, 2024

Hello! I am a Macbook Pro M1 2020 user, I bought it in 2022, I used one of the commands that were placed in that year and so far it has not given me any problems and I can update it normally. But I am noticing my macbook is slow, I have never given it maintenance so I want to factory reset it. If I reset it, can the mdm profile be reactivated?

@alucardness
Copy link

alucardness commented Dec 7, 2024

Hello! I am a Macbook Pro M1 2020 user, I bought it in 2022, I used one of the commands that were placed in that year and so far it has not given me any problems and I can update it normally. But I am noticing my macbook is slow, I have never given it maintenance so I want to factory reset it. If I reset it, can the mdm profile be reactivated?

Yes, it will be reactivated. The only way I found for factory reset is to install fresh big sur, apply the commands for deactivate mdm and then updating os versions.

@vitor-eto
Copy link

WhatsApp Image 2024-12-18 at 13 07 44
@joshworksit Can you help me? I used your command and still getting this error message

@Yassine-64
Copy link

Hello! I am a Macbook Pro M1 2020 user, I bought it in 2022, I used one of the commands that were placed in that year and so far it has not given me any problems and I can update it normally. But I am noticing my macbook is slow, I have never given it maintenance so I want to factory reset it. If I reset it, can the mdm profile be reactivated?

Yes, it will be reactivated. The only way I found for factory reset is to install fresh big sur, apply the commands for deactivate mdm and then updating os versions.

Hey bro, I have a MacBook Pro M1 2020 that's already bypassed, and I'm running Sequoia 15. If I update it, will it get the MDM lock again?

@alucardness
Copy link

Hello! I am a Macbook Pro M1 2020 user, I bought it in 2022, I used one of the commands that were placed in that year and so far it has not given me any problems and I can update it normally. But I am noticing my macbook is slow, I have never given it maintenance so I want to factory reset it. If I reset it, can the mdm profile be reactivated?

Yes, it will be reactivated. The only way I found for factory reset is to install fresh big sur, apply the commands for deactivate mdm and then updating os versions.

Hey bro, I have a MacBook Pro M1 2020 that's already bypassed, and I'm running Sequoia 15. If I update it, will it get the MDM lock again?

No, you won't. It might be a good idea to read the release notes of new macOS updates. As far as I can tell, the hosts file, Apple are not allowed to overwrite it.

@zayantharani
Copy link

This worked really well!
Thank you so much!

@eechukwu
Copy link

WhatsApp Image 2025-04-25 at 14 17 59 (1)
Any idea on how to go about this one?

@alucardness
Copy link

WhatsApp Image 2025-04-25 at 14 17 59 (1) Any idea on how to go about this one?

I know a solution only for M1, what processor do you have?

@eechukwu
Copy link

I was able to fix this by installing macOS Monterey, and I had the option to proceed without that issue. I am currently running a MacBook Pro with an Apple M1 Pro chip.

@captaindooley
Copy link

**** WORKING!!! ******. HI EVERYONE! I have a simplified way I figured out today to bypass DEP today with Ventura against a M2 Macbook Air
Need 3 things

  1. A separate M1/M2 Mac (could be anytjhing, macbook, studio, etc). this machine must not have DEP/Business Manager enabled
  2. Create a USB Boot installer flash drive with Ventura - you can google the instructions on how to create a boot usb drive.
  3. An external SSD that you can install a fresh OS on. I just use a sandish extreme USB 3.1 256GB drive.

Steps I did On the non-DEP M1/M2 Mac

  1. USB BOOT installer and install Ventura on the External SSD --- using the non-DEP Mac
  2. Once installed, go thru the account creation so you have an account
  3. Boot from USB SSD drive just to make sure it is working.

Now you have a bootable external disk.
On the DEP enabled M1/M2 Mac

  1. Boot to recovery mode
  2. Disk Utility
  3. Erase the internal physical disk
  4. Click on internal disk and use the RESTORE option, FROM the external SSD
  5. Let it run - will take a while.

Now you jsut copied the clean ventura to the internal drive.
Once the restore is finished. Remove the External SSD Boot from the internal disk
You WILL get an error that it cannot find the OS or some other stupid errors like no owner, or some other silly error... don't worry.
Now you boot again using the USB BOOT Ventura disk. REINSTALL Ventura again on the internal disk - DO NOT DO ANY DISK FORMATTING this time.
Once USB Installer is done, reboot - you will get to the login prompt of the user you created on the initial fresh install. you will have a working Ventura M1/M2 that just bypassed DEP/Business Manager.
Why this works? Because you first lay down the image on internal disk but due to some apple security, it will never boot unless you "fresh install" it. But the good things about fresh installs, Apple doesn't really wipe the system, it just lays whatever that is necessary for the OS. This means it will fix the ownership of the disks, do whatever it does but won't overwrite local accounts etc. so you will not get prompted for DEP enrollment. I don't know the actual internal details but I just know this works.
Enjoy. took me a while to figure this out after trying many things.
I do not need to do any /etc/hosts hacks, csrutil, etc. nothing. It's pretty simple to do but it does require a double install but it's easier than editing files.
You could in theory transfer a fully working Mac to another Mac now but I don't need to do that so I did the clean Ventura Install.
Now I can use this method to clean/wipe any DEP enabled machine and have myself a "pre-built" machine with certain things like chrome etc already installed. I can just boot from the external SSD periodically to get new updates of OS and software and continue to use it on any new Macs I wipe.

How to Bypass Activation Lock on Mac:

5/14/23 - another successful bypass of DEP on M1 2020 MacBook Air with Ventura (credit goes to @maclover696 πŸ‘πŸ‘πŸ‘)

Here is an updated version that works (modified steps to erase internal physical drive, which forces device restart into Activation screen):

Pre-requirements:

  • Mac with Activation Lock
  • Unlocked Mac laptop or desktop (e.g., M1, M2, Pro, Mini, Studio, etc.) - not enrolled in Device Enrollment Program (DEP) / Mobile Device Management (MDM)
  • USB Flash Drive (14GB+ USB3.x/USB-C/Thunderbolt) - To create a USB Boot installer for macOS
  • External SSD (50GB+ USB3.x/USB-C/Thunderbolt) - To install and boot from external drive

Step by step instructions on:

Unlocked Mac

  1. Create a bootable installer with macOS Ventura on USB Flash Drive, see instructions at https://support.apple.com/en-us/HT201372
  2. Restart and boot from USB Flash Drive with macOS Ventura
  3. Install macOS Ventura on the External SSD
  4. Finish installation and create a user account
  5. Boot from External SSD to make sure it is working

Congrats πŸŽ‰πŸŽ‰πŸŽ‰ now you have a bootable external SSD

Mac with Activation Lock*

  1. Boot into Recovery mode, see instructions at https://support.apple.com/en-us/HT201255
  2. Open Disk Utility > select Internal Drive (or Macintosh HD) > click Restore > select External SSD (this process will fail, nothing to worry about)
  3. Erase Internal Drive (all volumes)
  4. Repeat step 3 above, select Internal Drive (or Macintosh HD) > click Restore > select External SSD. Be patient, the restoration speed varies depending on the type of External SSD and connectivity - some 45-60min on Samsung 980Pro 1TB NVMe in Sabrent USB-C enclosure. (this time the operation will succeed)
  5. Shut down > remove External SSD
  6. Boot from Internal Drive (this process will fail, and it will restart into Recovery mode, nothing to worry about)
  7. Restart and boot from USB Flash Drive with macOS Ventura
  8. Connect to WiFi/LAN, macOS Ventura requires internet connection for installation (no need to block ports on your router or /etc/hosts hacks, csrutil, etc.)
  9. Install macOS Ventura from USB Flash Drive to Internal Drive (this time do not erase internal drive)
  10. Restart after the OS installation is complete and login with the user credentials created on External SSD installation (step 4 from unlocked Mac)

Congrats πŸŽ‰πŸŽ‰πŸŽ‰ you've just πŸ”—β€πŸ’₯ bypassed DEP/Business Manager

*Depending on the state of your Mac, you may need Apple Configurator to revive / restore your Mac to bring it back to life. See instructions at https://support.apple.com/guide/apple-configurator-mac/revive-or-restore-a-mac-with-apple-silicon-apdd5f3c75ad/mac and Apple Silicon M1/M2 macOS IPSW Firmware Restore Files Database https://mrmacintosh.com/apple-silicon-m1-full-macos-restore-ipsw-firmware-files-database/ alternatively Apple Configurator will download automatically the latest version.

Will this work for Intel macs? Can this be used for Sonoma or Sequoia?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment