Open kash1982 opened 1 month ago
@kash1982 You'll need to provide more context in order for me to help you out.
sure. what do you need? its on snoma currently.
sure. what do you need? its on snoma currently.
I can assure you that the script works as long as you follow the guidelines. Which Mac model are you using? Did you re-format the Mac before starting? Elaborate on your exact workflow.
A1989
wipe drive in disk utils
Reinstall mac os snoma
turn off mchine then follow your guidelines the readme
@kash1982 did you get as far as the enrollment screen after installing sonoma? I just ran this bypass today on a new M3 Air that shipped with macOS 14.5 and it worked fine.
no i just powered down after snoma install finished. i did try before hand when i was at the click to enrole button but got the same
Do you arrive at a screen similar to this one? This is when you should be starting the guide.
just tried it on that screen. powered down and run the script. same errors. on reboot im back at select your country
will try Option-Shift-Command-R instead and report back
i get a curl error in the old recovery environment (high Sierra install) curl: (4) A requested feature, protocolor option was not found or built-in in this libcurl due to a build-time decision.
the only thing i can think of is has start up secuiity enabled so i cant boot from usb. there no way to disable it also becuase there no users on the macbook and it errors when trying to turn it off saying no admin users found.
I had the same "Not a Know DirStatus" error - my pre-owned macbook air 2020 i7 got "the remoate management screen" right after system upgrade to Sonoma a few days ago. Followed the guideline to reinstall the system, tried the script and then got the following. Not sure what went wrong.
-bash-3.2# curl https://raw.githubusercontent.com/assafdori/bypass-mdm/main/bypass-mdm.sh -o bypass-mdm.sh && chmod +x ./bypass-mdm.sh && ./bypass-mdm.sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 4831 100 4831 0 0 7231 0 --:--:-- --:--:-- --:--:-- 7232 Bypass MDM By Assaf Dori (assafdori.com)
1) Bypass MDM from Recovery 2) Reboot & Exit Please enter your choice: 1 Bypass MDM from Recovery Create a Temporary User Enter Temporary Fullname (Default is 'Apple'): Enter Temporary Username (Default is 'Apple'): Enter Temporary Password (Default is '1234'): Creating Temporary User Operation failed with error: Not a known DirStatus Operation failed with error: Not a known DirStatus Operation failed with error: Not a known DirStatus Operation failed with error: Not a known DirStatus Operation failed with error: Not a known DirStatus mkdir: /Volumes/Data/Users: No such file or directory Operation failed with error: Not a known DirStatus Operation failed with error: Not a known DirStatus Operation failed with error: Not a known DirStatus Successfully blocked MDM & Profile Domains touch: /Volumes/Data/private/var/db/.AppleSetupDone: No such file or directory MDM enrollment has been bypassed! Exit terminal and reboot your Mac.
@assafdori @kash1982 I found the issue and get it fixed. my Macbook is now MDM free. my Mac originally used Chinese language and so was set up with a slightly different directory naming, even after system reinstall if language kept using Chinese. What I did is to change the language back to English right after Command-R, then make all system reinstall and script execution in English. all the steps in Readme could be successfully completed. Job well done !!. Thanks !
@jhtang5 Thanks for providing the solution, I'll update the README file accordingly.
Experienced the same issue described above despite being in English. Eventually realized the install volume needed to be named “Macintosh HD”. Once I erased/renamed the volume and reinstalled I was able to successfully bypass.
@tiinpa Here is my experience: I had encountered this issue before, but I discovered that it was due to the system still being set on a non-English language during the reinstallation process.
Experienced the same issue described above despite being in English. Eventually realized the install volume needed to be named “Macintosh HD”. Once I erased/renamed the volume and reinstalled I was able to successfully bypass.
this solution resolved my issue. thank you so much!
I’m having the same issue regarding the “not a known DirStatus” error but after thoroughly reading everyone’s troubleshooting attempts I noticed that my language is set to English and my volume is named the correct “Macintosh HD” yet I am still receiving this error. If anyone could help me out on this issue I’ll be happy to provide more details and context
Update - didn’t re-format the macOS like the instructions clearly said to do(I’m slow). After erasing the volume group then reinstalling the macOS through recovery mode I was able to execute the script successfully. After rebooting the Mac I was met with no Device enrollment message and the Mac operates with no issues.
Thank you so much @assafdori. You are very talented and I seriously appreciate you providing a fix to what is clearly a very meticulous issue.
1) Bypass MDM from Recovery 2) Reboot & Exit Please enter your choice: 1 Bypass MDM from Recovery Create a Temporary User Enter Temporary Fullname (Default is 'Apple'): Enter Temporary Username (Default is 'Apple'): Enter Temporary Password (Default is '1234'): Creating Temporary User Operation failed with error: Not a known DirStatus Operation failed with error: Not a known DirStatus Operation failed with error: Not a known DirStatus Operation failed with error: Not a known DirStatus Operation failed with error: Not a known DirStatus mkdir: /Volumes/Data/Users: No such file or directory Operation failed with error: Not a known DirStatus Operation failed with error: Not a known DirStatus Operation failed with error: Not a known DirStatus ./bypass-mdm.sh: line 51: /Volumes/Macintosh HD/etc/hosts: No such file or directory ./bypass-mdm.sh: line 52: /Volumes/Macintosh HD/etc/hosts: No such file or directory ./bypass-mdm.sh: line 53: /Volumes/Macintosh HD/etc/hosts: No such file or directory Successfully blocked MDM & Profile Domains touch: /Volumes/Data/private/var/db/.AppleSetupDone: No such file or directory touch: /Volumes/Macintosh HD/var/db/ConfigurationProfiles/Settings/.cloudConfigProfileInstalled: No such file or directory touch: /Volumes/Macintosh HD/var/db/ConfigurationProfiles/Settings/.cloudConfigRecordNotFound: No such file or directory MDM enrollment has been bypassed! Exit terminal and reboot your Mac.