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.
@oracle-code
Copy link

Hi all,

I am having trouble running a curl command to remove the mdm on my macbook pro 2019 T2 intel chip.

I erased everything and reinstalled MacOS Catalina but it shoes me the MDM Company credentials AGAIN !!

Please help.

When I am trying to run the curl command the error is : Failed to create the file: Read-only file system.

And sudo command is not found.

@MikeParder
Copy link

Has anyone managed to install the Sequoia developer beta on a bypassed machine?

Writing from Sekoia rn! I used the method I sent earlier and upgraded just like I normally would have.

Cant find that method you are referring to. Can you re-post?

@spoved-aws
Copy link

Any method to block the pop up of MDM wants to make changes? I have unlocked my M1 chip macbook using the OP method last year.

@oracle-code
Copy link

I found this script I tested it on a dummy MacBook Pro intel T2 chip on macOS Sonoma : https://github.com/maclifevn/bypasmdm

It works perfectly, and I think no malware is associated with it. Also, no payment required.

@spoved-aws
Copy link

I found this script I tested it on a dummy MacBook Pro intel T2 chip on macOS Sonoma : https://github.com/maclifevn/bypasmdm

It works perfectly, and I think no malware is associated with it. Also, no payment required.

Thanks which option do I select if I only want to remove the notification that comes to the system every 10 min.

  1. Bypass on Recovery 4) Check MDM Enrollment
  2. Disable Notification (SIP) 5) Thoát
  3. Disable Notification (Recovery)

@oracle-code
Copy link

The first option is the one that worked for me

After you press enter and enter. That will create the default user MAC and the password will be 1234.

You can change that after in your user settings.

@spoved-aws
Copy link

I just want the notification gone. I think 1 is bypassing the mdm? Can someone confirm?
image

@oracle-code
Copy link

I did not try other options, I guess notifications would be 2 or 3

@holyMolyTolli
Copy link

Hello all, Does anybody know is the file ".deviceConfigurationBits" is needed or can be removed? If I'm doing cat of it I can see parameter "DeviceConfigurationFlags" with value 9. I have changed it to 0. Tried to find info regarding this parameter and value but seems it is not a lot info regarding it. https://github.com/mosen/macdocs/blob/master/source/DEP/ios-activation.rst?plain=1#L143

photo_2023-11-06_16-56-24

@TomRider22 How did it end? Also sitting in front of this file. Did changing the "9" to a "0" have any effect, or is it irrelevant after all the previous steps @joshworksit described?

@ehsan58
Copy link

ehsan58 commented Sep 17, 2024

is there any update about sequoia? anyone updated from 14.6 to 15?

@BurakcanA
Copy link

I did this last year when I upgraded to Sonoma after I received a notification.
'# Block Mac from reaching the domain iprofiles.apple.com
0.0.0.0 iprofiles.apple.com'

Just recently I updated to 14.7 so far no problem.
To let you know I didn't do any bypass. I'm only blocking the domain.
I'm waiting for someone to let me know that I'll be safe with Sequoia after the update with this method.

@Jbb08
Copy link

Jbb08 commented Sep 19, 2024

is there any update about sequoia? anyone updated from 14.6 to 15?

I updated to 15 from the latest version of 14 Sonoma.
I made sure my host file was blocking all. Then I also blocked all the Apple sites on my router and updated
It was like a normal update nothing special
And works perfectly no alerts or pop ups and terminal commands to check MDM reports no.

@BurakcanA
Copy link

BurakcanA commented Sep 19, 2024

@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.

@spiralz23
Copy link

spiralz23 commented Sep 25, 2024

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

Thanks

@gboy13
Copy link

gboy13 commented Sep 25, 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

@holyMolyTolli
Copy link

FYI, rebooted my MackbookPro 2,6 GHz 6-Core Intel Core i7 Sequoia the other day, hand had to hack back in. it worked with @joshworksit's last described approach (mix of setting up a new admin user and, changing settings and such).

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

touch /Volumes/Data/private/var/db/.AppleSetupDone
rm -rf /Volumes/Macintosh\ HD/var/db/ConfigurationProfiles/Settings/.cloudConfigHasActivationRecord
rm -rf /Volumes/Macintosh\ HD/var/db/ConfigurationProfiles/Settings/.cloudConfigRecordFound
touch /Volumes/Macintosh\ HD/var/db/ConfigurationProfiles/Settings/.cloudConfigProfileInstalled
touch /Volumes/Macintosh\ HD/var/db/ConfigurationProfiles/Settings/.cloudConfigRecordNotFound

@2020sux
Copy link

2020sux commented Sep 25, 2024

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.

@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?

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