{"id":7339,"date":"2023-10-15T21:41:22","date_gmt":"2023-10-15T21:41:22","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=7339"},"modified":"2023-10-15T21:41:24","modified_gmt":"2023-10-15T21:41:24","slug":"disable-mdm-from-mac","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/disable-mdm-from-mac","title":{"rendered":"Disable MDM from mac"},"content":{"rendered":"\n<p>Go to\u00a0<a href=\"https:\/\/skipmdm.com\/\">https:\/\/skipmdm.com<\/a><\/p>\n\n\n\n<p>Run the below in recovery mode<\/p>\n\n\n\n<p>You can verify the contents with&nbsp;<code>curl https:\/\/raw.githubusercontent.com\/skipmdm-phoenixbot\/skipmdm.com\/main\/Autobypass-mdm.sh | cat<\/code><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>For my Ventura Mac , I have to use Disk Tool to Restore a copy of a old OS onto the Computer ( Monterary ) <\/p>\n\n\n\n<p>Once I use the Online recovery of Monterary , it let me go through the Setup Wizard without Internet then I could run the Bypass and restrict the MDM via Host File<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">\r\nsudo -i\r\necho \"0.0.0.0 iprofiles.apple.com\" >> \/etc\/hosts\r\necho \"0.0.0.0 mdmenrollment.apple.com\" >> \/etc\/hosts\r\necho \"0.0.0.0 deviceenrollment.apple.com\" >> \/etc\/hosts\r\necho \"0.0.0.0 gdmf.apple.com\" >> \/etc\/hosts\r\necho \"0.0.0.0 acmdm.apple.com\" >> \/etc\/hosts\r\necho \"0.0.0.0 albert.apple.com\" >> \/etc\/hosts\r\n<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>The below disables the prompt however will not let you create a user during setup<\/strong><\/p>\n\n\n\n<p>Restart again in Recovery Mode (Command+R)<\/p>\n\n\n\n<p>Click on Utilities (top menu bar) then select Terminal<\/p>\n\n\n\n<p>type in: mount then press enter\/return<\/p>\n\n\n\n<p>A list of things will show up once you enter in (mount) in Terminal Write down the disk associated with \/Volumes\/Macintosh HD (mine was \/dev\/disk2s5) Note: it&#8217;s not \/, and it&#8217;s not \/Volumes\/Macintosh HD &#8211; Data<\/p>\n\n\n\n<p>Next, in Terminal, write: umount \/Volumes\/Macintosh\\ HD<\/p>\n\n\n\n<p>then: mkdir \/Volumes\/Macintosh\\ HD<\/p>\n\n\n\n<p>then: mount -t apfs -rw \/dev\/disk2s5 \/Volumes\/Macintosh\\ HD<\/p>\n\n\n\n<p>then: cd \/Volumes\/Macintosh\\ HD\/System\/Library\/LaunchAgents<\/p>\n\n\n\n<p>then: mkdir xtemp<\/p>\n\n\n\n<p>then: mv com.apple.ManagedClientAgent.* xtemp\/<\/p>\n\n\n\n<p>then: mv com.apple.mdmclient.* xtemp\/<\/p>\n\n\n\n<p>then: cd ..\/LaunchDaemons<\/p>\n\n\n\n<p>then: mkdir xtemp<\/p>\n\n\n\n<p>then: mv com.apple.ManagedClient.* xtemp\/<\/p>\n\n\n\n<p>then: mv com.apple.mdmclient.* xtemp\/<\/p>\n\n\n\n<p>then: csrutil authenticated-root disable (this will Turn off Signed System Volume SSV)<\/p>\n\n\n\n<p>then lastly: bless &#8211;folder \/Volumes\/Macintosh\\ HD\/System\/Library\/CoreServices &#8211;bootefi &#8211;create-snapshot? (this will Save the current disk status in the boot snapshot)<\/p>\n\n\n\n<p>Now you can restart your Mac, DEP notification is disabled.&#8221;<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><a href=\"https:\/\/gist.github.com\/henrik242\/65d26a7deca30bdb9828e183809690bd?permalink_comment_id=4555340#gistcomment-4555340\">https:\/\/gist.github.com\/henrik242\/65d26a7deca30bdb9828e183809690bd?permalink_comment_id=4555340#gistcomment-4555340<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Go to\u00a0https:\/\/skipmdm.com Run the below in recovery mode You can verify the contents with&nbsp;curl https:\/\/raw.githubusercontent.com\/skipmdm-phoenixbot\/skipmdm.com\/main\/Autobypass-mdm.sh | cat For my Ventura Mac , I have to use Disk [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7339","post","type-post","status-publish","format-standard","hentry","category-research"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/7339","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=7339"}],"version-history":[{"count":2,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/7339\/revisions"}],"predecessor-version":[{"id":7378,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/7339\/revisions\/7378"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=7339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=7339"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=7339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}