Skip to content

Instantly share code, notes, and snippets.

Revisions

  1. @henrik242 henrik242 revised this gist Sep 1, 2023. 2 changed files with 5 additions and 54 deletions.
    Original file line number Diff line number Diff line change
    @@ -1,54 +0,0 @@
    # Disable Device Enrollment Program (DEP) notification on macOS Ventura.md

    New Ventura docs for M2 Macs in this comment: https://gist.github.com/henrik242/65d26a7deca30bdb9828e183809690bd?permalink_comment_id=4555340#gistcomment-4555340

    # Old Monterey docs:

    NB! `command-R` is replaced with holding the power button on M1 macs.

    ## With full reinstall (recommended)

       a. Boot into recovery using `command-R` during reboot, wipe the harddrive using Disk Utility, and select reinstall macOS

       b. Initial installation will run for approximately 1 hour, and reboot once

       c. It will then show a remaining time of about 10-15 minutes

       d. When it reboots again, be sure to press `command-R` to boot into recovery and continue with **Main procedure**

    ## Without full reinstall

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

    ## Main procedure

    1. Open Utilities → Terminal and type
    ```
    $ csrutil disable
    $ reboot
    ```

    2. Hold `command-R` during the reboot to enter Recovery Mode again

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

    4. 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
    ```

    5. If you come to the “Choose your country/location” dialogue, make sure to not select a wireless network, but “continue without an internet connection”

    6. After a normal boot, you can verify the DEP status in Terminal:
    ```
    $ profiles status -type enrollment
    Enrolled via DEP: No
    MDM enrollment: No
    ```
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    # Disable Device Enrollment Program (DEP) notification on macOS Ventura.md

    New Ventura docs for M2 Macs in this comment: https://gist.github.com/henrik242/65d26a7deca30bdb9828e183809690bd?permalink_comment_id=4555340#gistcomment-4555340

    Old Monterey docs in this old revision: https://gist.github.com/henrik242/65d26a7deca30bdb9828e183809690bd/32c410e3a1de73539c76fa13ea5486569c4e0c5d
  2. @henrik242 henrik242 revised this gist Sep 1, 2023. 1 changed file with 5 additions and 1 deletion.
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,8 @@
    # Disable Device Enrollment Program (DEP) notification on macOS Monterey.md
    # Disable Device Enrollment Program (DEP) notification on macOS Ventura.md

    New Ventura docs for M2 Macs in this comment: https://gist.github.com/henrik242/65d26a7deca30bdb9828e183809690bd?permalink_comment_id=4555340#gistcomment-4555340

    # Old Monterey docs:

    NB! `command-R` is replaced with holding the power button on M1 macs.

  3. @henrik242 henrik242 revised this gist Jan 18, 2022. 1 changed file with 2 additions and 0 deletions.
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,7 @@
    # Disable Device Enrollment Program (DEP) notification on macOS Monterey.md

    NB! `command-R` is replaced with holding the power button on M1 macs.

    ## With full reinstall (recommended)

       a. Boot into recovery using `command-R` during reboot, wipe the harddrive using Disk Utility, and select reinstall macOS
  4. @henrik242 henrik242 renamed this gist Dec 20, 2021. 1 changed file with 1 addition and 4 deletions.
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Disable Device Enrollment Program (DEP) notification on macOS Catalina.md
    # Disable Device Enrollment Program (DEP) notification on macOS Monterey.md

    ## With full reinstall (recommended)

    @@ -29,9 +29,6 @@ $ reboot
    4. Exit Disk Utility, open Utilities → Terminal, and type
    ```
    $ cd "/Volumes/Macintosh HD/System/Library"
    $ mkdir LaunchDaemons.disabled LaunchAgents.disabled
    $ mv LaunchDaemons/com.apple.ManagedClient* LaunchDaemons.disabled/
    $ mv LaunchAgents/com.apple.ManagedClient* LaunchAgents.disabled/
    $ cd ../../etc
    $ echo "0.0.0.0 iprofiles.apple.com" >> hosts
    $ echo "0.0.0.0 mdmenrollment.apple.com" >> hosts
  5. @henrik242 henrik242 revised this gist Aug 25, 2020. 1 changed file with 1 addition and 1 deletion.
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@

       c. It will then show a remaining time of about 10-15 minutes

       d. When it reboots, be sure to press `command-R` to boot into recovery and continue with **Main procedure**
       d. When it reboots again, be sure to press `command-R` to boot into recovery and continue with **Main procedure**

    ## Without full reinstall

  6. @henrik242 henrik242 revised this gist Apr 22, 2020. 1 changed file with 1 addition and 1 deletion.
    Original file line number Diff line number Diff line change
    @@ -41,7 +41,7 @@ $ csrutil enable
    $ reboot
    ```

    5. When it comes to “Choose your country/location”, make sure to not select a wireless network, but “continue without an internet connection”
    5. If you come to the “Choose your country/location” dialogue, make sure to not select a wireless network, but “continue without an internet connection”

    6. After a normal boot, you can verify the DEP status in Terminal:
    ```
  7. @henrik242 henrik242 revised this gist Mar 26, 2020. 1 changed file with 2 additions and 2 deletions.
    Original file line number Diff line number Diff line change
    @@ -4,9 +4,9 @@

       a. Boot into recovery using `command-R` during reboot, wipe the harddrive using Disk Utility, and select reinstall macOS

       b. It will perform installation for approximately 1 hour, and reboot once
       b. Initial installation will run for approximately 1 hour, and reboot once

       c. It will then show a remaining time of appr. 10-15 minutes
       c. It will then show a remaining time of about 10-15 minutes

       d. When it reboots, be sure to press `command-R` to boot into recovery and continue with **Main procedure**

  8. @henrik242 henrik242 revised this gist Mar 26, 2020. 1 changed file with 4 additions and 4 deletions.
    Original file line number Diff line number Diff line change
    @@ -2,13 +2,13 @@

    ## With full reinstall (recommended)

      a. Boot into recovery using `command-R` during reboot, wipe the harddrive using Disk Utility, and select reinstall macOS
       a. Boot into recovery using `command-R` during reboot, wipe the harddrive using Disk Utility, and select reinstall macOS

      b. It will perform installation for approximately 1 hour, and reboot once
       b. It will perform installation for approximately 1 hour, and reboot once

      c. It will then show a remaining time of appr. 10-15 minutes
       c. It will then show a remaining time of appr. 10-15 minutes

      d. When it reboots, be sure to press `command-R` to boot into recovery and continue with **Main procedure**
       d. When it reboots, be sure to press `command-R` to boot into recovery and continue with **Main procedure**

    ## Without full reinstall

  9. @henrik242 henrik242 revised this gist Mar 26, 2020. 1 changed file with 4 additions and 4 deletions.
    Original file line number Diff line number Diff line change
    @@ -2,13 +2,13 @@

    ## With full reinstall (recommended)

     a. Boot into recovery using `command-R` during reboot, wipe the harddrive using Disk Utility, and select reinstall macOS
      a. Boot into recovery using `command-R` during reboot, wipe the harddrive using Disk Utility, and select reinstall macOS

     b. It will perform installation for approximately 1 hour, and reboot once
      b. It will perform installation for approximately 1 hour, and reboot once

     c. It will then show a remaining time of appr. 10-15 minutes
      c. It will then show a remaining time of appr. 10-15 minutes

     d. When it reboots, be sure to press `command-R` to boot into recovery and continue with **Main procedure**
      d. When it reboots, be sure to press `command-R` to boot into recovery and continue with **Main procedure**

    ## Without full reinstall

  10. @henrik242 henrik242 revised this gist Mar 26, 2020. 1 changed file with 4 additions and 4 deletions.
    Original file line number Diff line number Diff line change
    @@ -2,13 +2,13 @@

    ## With full reinstall (recommended)

    a. Boot into recovery using `command-R` during reboot, wipe the harddrive using Disk Utility, and select reinstall macOS
     a. Boot into recovery using `command-R` during reboot, wipe the harddrive using Disk Utility, and select reinstall macOS

    b. It will perform installation for approximately 1 hour, and reboot once
     b. It will perform installation for approximately 1 hour, and reboot once

    c. It will then show a remaining time of appr. 10-15 minutes
     c. It will then show a remaining time of appr. 10-15 minutes

    d. When it reboots, be sure to press `command-R` to boot into recovery and continue with **Main procedure**
     d. When it reboots, be sure to press `command-R` to boot into recovery and continue with **Main procedure**

    ## Without full reinstall

  11. @henrik242 henrik242 revised this gist Mar 26, 2020. 1 changed file with 5 additions and 5 deletions.
    Original file line number Diff line number Diff line change
    @@ -2,17 +2,17 @@

    ## With full reinstall (recommended)

    1. Boot into recovery using `command-R` during reboot, wipe the harddrive using Disk Utility, and select reinstall macOS
    a. Boot into recovery using `command-R` during reboot, wipe the harddrive using Disk Utility, and select reinstall macOS

    2. It will perform installation for approximately 1 hour, and reboot once
    b. It will perform installation for approximately 1 hour, and reboot once

    3. It will then show a remaining time of appr. 10-15 minutes
    c. It will then show a remaining time of appr. 10-15 minutes

    4. When it reboots, be sure to press `command-R` to boot into recovery and continue with **Main procedure**
    d. When it reboots, be sure to press `command-R` to boot into recovery and continue with **Main procedure**

    ## Without full reinstall

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

    ## Main procedure

  12. @henrik242 henrik242 revised this gist Mar 26, 2020. 1 changed file with 2 additions and 2 deletions.
    Original file line number Diff line number Diff line change
    @@ -8,11 +8,11 @@

    3. It will then show a remaining time of appr. 10-15 minutes

    4. When it reboots, be sure to press `command-R` to boot into recovery and skip to **Main procedure**
    4. When it reboots, be sure to press `command-R` to boot into recovery and continue with **Main procedure**

    ## Without full reinstall

    1. Boot to Recovery Mode by holding `command-R` during restart and skip to **Main procedure**
    1. Boot to Recovery Mode by holding `command-R` during restart and continue with **Main procedure**

    ## Main procedure

  13. @henrik242 henrik242 revised this gist Mar 26, 2020. 1 changed file with 13 additions and 9 deletions.
    Original file line number Diff line number Diff line change
    @@ -1,28 +1,32 @@
    # Disable Device Enrollment Program (DEP) notification on macOS Catalina.md

    **You'll get the best results with a full reinstall. Skip to step 5 if you don't want this**
    ## With full reinstall (recommended)

    1. Boot into recovery using `command-R` during reboot, wipe the harddrive using Disk Utility, and select reinstall macOS

    2. It will perform installation for approximately 1 hour, and reboot once

    3. It will then show a remaining time of appr. 10-15 minutes

    4. When it reboots, be sure to press `command-R` to boot into recovery and **proceed to step 6**
    4. When it reboots, be sure to press `command-R` to boot into recovery and skip to **Main procedure**

    5. Boot to Recovery Mode by holding `command-R` during restart
    ## Without full reinstall

    6. Open Utilities → Terminal and type
    1. Boot to Recovery Mode by holding `command-R` during restart and skip to **Main procedure**

    ## Main procedure

    1. Open Utilities → Terminal and type
    ```
    $ csrutil disable
    $ reboot
    ```

    7. Hold `command-R` during the reboot to enter Recovery Mode again
    2. Hold `command-R` during the reboot to enter Recovery Mode again

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

    9. Exit Disk Utility, open Utilities → Terminal, and type
    4. Exit Disk Utility, open Utilities → Terminal, and type
    ```
    $ cd "/Volumes/Macintosh HD/System/Library"
    $ mkdir LaunchDaemons.disabled LaunchAgents.disabled
    @@ -37,9 +41,9 @@ $ csrutil enable
    $ reboot
    ```

    10. When it comes to “Choose your country/location”, make sure to not select a wireless network, but “continue without an internet connection”
    5. When it comes to “Choose your country/location”, make sure to not select a wireless network, but “continue without an internet connection”

    11. After a normal boot, you can verify the DEP status in Terminal:
    6. After a normal boot, you can verify the DEP status in Terminal:
    ```
    $ profiles status -type enrollment
    Enrolled via DEP: No
  14. @henrik242 henrik242 revised this gist Mar 26, 2020. 1 changed file with 1 addition and 1 deletion.
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

    **You'll get the best results with a full reinstall. Skip to step 5 if you don't want this**

    1. Boot into recovery, wipe the harddrive, and select reinstall macOS
    1. Boot into recovery using `command-R` during reboot, wipe the harddrive using Disk Utility, and select reinstall macOS

    2. It will perform installation for approximately 1 hour, and reboot once

  15. @henrik242 henrik242 revised this gist Mar 26, 2020. 1 changed file with 17 additions and 19 deletions.
    Original file line number Diff line number Diff line change
    @@ -1,18 +1,28 @@
    # Disable Device Enrollment Program (DEP) notification on macOS Catalina.md

    1. Boot to Recovery Mode by holding `command-R` during restart
    **You'll get the best results with a full reinstall. Skip to step 5 if you don't want this**

    2. Open Utilities → Terminal and type
    1. Boot into recovery, wipe the harddrive, and select reinstall macOS

    2. It will perform installation for approximately 1 hour, and reboot once

    3. It will then show a remaining time of appr. 10-15 minutes

    4. When it reboots, be sure to press `command-R` to boot into recovery and **proceed to step 6**

    5. Boot to Recovery Mode by holding `command-R` during restart

    6. Open Utilities → Terminal and type
    ```
    $ csrutil disable
    $ reboot
    ```

    3. Hold `command-R` during the reboot to enter Recovery Mode again
    7. Hold `command-R` during the reboot to enter Recovery Mode again

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

    5. Exit Disk Utility, open Utilities → Terminal, and type
    9. Exit Disk Utility, open Utilities → Terminal, and type
    ```
    $ cd "/Volumes/Macintosh HD/System/Library"
    $ mkdir LaunchDaemons.disabled LaunchAgents.disabled
    @@ -27,23 +37,11 @@ $ csrutil enable
    $ reboot
    ```

    6. When it comes to “Choose your country/location”, make sure to not select a wireless network, but “continue without an internet connection”
    10. When it comes to “Choose your country/location”, make sure to not select a wireless network, but “continue without an internet connection”

    7. After a normal boot, you can verify the DEP status in Terminal:
    11. After a normal boot, you can verify the DEP status in Terminal:
    ```
    $ profiles status -type enrollment
    Enrolled via DEP: No
    MDM enrollment: No
    ```

    ## macOS reinstall instructions

    You'll get the best results with a full reinstall.

    a. Boot into recovery, wipe the harddrive, and select reinstall macOS

    b. It will perform installation for approximately 1 hour, and reboot once

    c. It will then show a remaining time of appr. 10-15 minutes

    d. When it reboots, be sure to press `command-R` to boot into recovery and proceed with the instructions above.
  16. @henrik242 henrik242 revised this gist Mar 24, 2020. 1 changed file with 2 additions and 2 deletions.
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

    1. Boot to Recovery Mode by holding `command-R` during restart

    2. Open Tools → Terminal and type
    2. Open Utilities → Terminal and type
    ```
    $ csrutil disable
    $ reboot
    @@ -12,7 +12,7 @@ $ reboot

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

    5. Exit Disk Utility, open Tools → Terminal, and type
    5. Exit Disk Utility, open Utilities → Terminal, and type
    ```
    $ cd "/Volumes/Macintosh HD/System/Library"
    $ mkdir LaunchDaemons.disabled LaunchAgents.disabled
  17. @henrik242 henrik242 revised this gist Mar 24, 2020. 1 changed file with 1 addition and 1 deletion.
    Original file line number Diff line number Diff line change
    @@ -46,4 +46,4 @@ b. It will perform installation for approximately 1 hour, and reboot once

    c. It will then show a remaining time of appr. 10-15 minutes

    d. When it reboots, be sure to press `Command-R` to boot into recovery and proceed with the instructions above.
    d. When it reboots, be sure to press `command-R` to boot into recovery and proceed with the instructions above.
  18. @henrik242 henrik242 revised this gist Mar 24, 2020. 1 changed file with 4 additions and 4 deletions.
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,7 @@ $ reboot

    3. Hold `command-R` during the reboot to enter Recovery Mode again

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

    5. Exit Disk Utility, open Tools → Terminal, and type
    ```
    @@ -27,7 +27,9 @@ $ csrutil enable
    $ reboot
    ```

    6. After a normal boot, you can verify the DEP status in Terminal:
    6. When it comes to “Choose your country/location”, make sure to not select a wireless network, but “continue without an internet connection”

    7. After a normal boot, you can verify the DEP status in Terminal:
    ```
    $ profiles status -type enrollment
    Enrolled via DEP: No
    @@ -45,5 +47,3 @@ b. It will perform installation for approximately 1 hour, and reboot once
    c. It will then show a remaining time of appr. 10-15 minutes

    d. When it reboots, be sure to press `Command-R` to boot into recovery and proceed with the instructions above.

    e. When it comes to “Choose your country/location”, make sure to not select a wireless network, but “continue without an internet connection”
  19. @henrik242 henrik242 revised this gist Mar 24, 2020. 1 changed file with 3 additions and 1 deletion.
    Original file line number Diff line number Diff line change
    @@ -42,6 +42,8 @@ a. Boot into recovery, wipe the harddrive, and select reinstall macOS

    b. It will perform installation for approximately 1 hour, and reboot once

    c. It will then show a remaining time of appr. 10-15 minutes.
    c. It will then show a remaining time of appr. 10-15 minutes

    d. When it reboots, be sure to press `Command-R` to boot into recovery and proceed with the instructions above.

    e. When it comes to “Choose your country/location”, make sure to not select a wireless network, but “continue without an internet connection”
  20. @henrik242 henrik242 revised this gist Mar 24, 2020. 1 changed file with 3 additions and 0 deletions.
    Original file line number Diff line number Diff line change
    @@ -39,6 +39,9 @@ MDM enrollment: No
    You'll get the best results with a full reinstall.

    a. Boot into recovery, wipe the harddrive, and select reinstall macOS

    b. It will perform installation for approximately 1 hour, and reboot once

    c. It will then show a remaining time of appr. 10-15 minutes.

    d. When it reboots, be sure to press `Command-R` to boot into recovery and proceed with the instructions above.
  21. @henrik242 henrik242 revised this gist Mar 24, 2020. 1 changed file with 10 additions and 1 deletion.
    Original file line number Diff line number Diff line change
    @@ -32,4 +32,13 @@ $ reboot
    $ profiles status -type enrollment
    Enrolled via DEP: No
    MDM enrollment: No
    ```
    ```

    ## macOS reinstall instructions

    You'll get the best results with a full reinstall.

    a. Boot into recovery, wipe the harddrive, and select reinstall macOS
    b. It will perform installation for approximately 1 hour, and reboot once
    c. It will then show a remaining time of appr. 10-15 minutes.
    d. When it reboots, be sure to press `Command-R` to boot into recovery and proceed with the instructions above.
  22. @henrik242 henrik242 revised this gist Mar 2, 2020. 1 changed file with 0 additions and 1 deletion.
    Original file line number Diff line number Diff line change
    @@ -19,7 +19,6 @@ $ mkdir LaunchDaemons.disabled LaunchAgents.disabled
    $ mv LaunchDaemons/com.apple.ManagedClient* LaunchDaemons.disabled/
    $ mv LaunchAgents/com.apple.ManagedClient* LaunchAgents.disabled/
    $ cd ../../etc
    $ echo "0.0.0.0 albert.apple.com" >> hosts
    $ 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
  23. @henrik242 henrik242 revised this gist Jan 8, 2020. 1 changed file with 3 additions and 4 deletions.
    Original file line number Diff line number Diff line change
    @@ -1,20 +1,19 @@
    # Disable Device Enrollment Program (DEP) notification on macOS Catalina.md

    1. Boot to Recovery Mode by holding `Command-R` during restart
    1. Boot to Recovery Mode by holding `command-R` during restart

    2. Open Tools → Terminal and type
    ```
    $ csrutil disable
    $ reboot
    ```

    3. Hold `Command-R` during the reboot to enter Recovery Mode again
    3. Hold `command-R` during the reboot to enter Recovery Mode again

    4. Enter Disk Utility, and mount the `Macintosh HD` volume (or whatever your main volume is named)

    5. Exit Disk Utility, open the Terminal, and type
    5. Exit Disk Utility, open Tools → Terminal, and type
    ```
    $ mount -uw /
    $ cd "/Volumes/Macintosh HD/System/Library"
    $ mkdir LaunchDaemons.disabled LaunchAgents.disabled
    $ mv LaunchDaemons/com.apple.ManagedClient* LaunchDaemons.disabled/
  24. @henrik242 henrik242 revised this gist Jan 7, 2020. 1 changed file with 1 addition and 1 deletion.
    Original file line number Diff line number Diff line change
    @@ -29,7 +29,7 @@ $ csrutil enable
    $ reboot
    ```

    6. After a normal boot, you can verify the DEP status
    6. After a normal boot, you can verify the DEP status in Terminal:
    ```
    $ profiles status -type enrollment
    Enrolled via DEP: No
  25. @henrik242 henrik242 revised this gist Jan 7, 2020. 1 changed file with 7 additions and 2 deletions.
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,6 @@
    1. Boot to Recovery Mode by holding `Command-R` during restart

    2. Open Tools → Terminal and type

    ```
    $ csrutil disable
    $ reboot
    @@ -14,7 +13,6 @@ $ reboot
    4. Enter Disk Utility, and mount the `Macintosh HD` volume (or whatever your main volume is named)

    5. Exit Disk Utility, open the Terminal, and type

    ```
    $ mount -uw /
    $ cd "/Volumes/Macintosh HD/System/Library"
    @@ -30,3 +28,10 @@ $ echo "0.0.0.0 gdmf.apple.com" >> hosts
    $ csrutil enable
    $ reboot
    ```

    6. After a normal boot, you can verify the DEP status
    ```
    $ profiles status -type enrollment
    Enrolled via DEP: No
    MDM enrollment: No
    ```
  26. @henrik242 henrik242 revised this gist Jan 7, 2020. 1 changed file with 3 additions and 3 deletions.
    Original file line number Diff line number Diff line change
    @@ -6,9 +6,10 @@

    ```
    $ csrutil disable
    $ reboot
    ```

    3. Restart computer and hold `Command-R` to enter Recovery Mode again
    3. Hold `Command-R` during the reboot to enter Recovery Mode again

    4. Enter Disk Utility, and mount the `Macintosh HD` volume (or whatever your main volume is named)

    @@ -27,6 +28,5 @@ $ 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
    ```

    6. Restart computer again
  27. @henrik242 henrik242 revised this gist Dec 27, 2019. 1 changed file with 1 addition and 1 deletion.
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # Disable Device Enrollment Program (DEP) notification on macOS Catalina.md

    1. Restart to Recovery Mode by holding `Command-R` during restart
    1. Boot to Recovery Mode by holding `Command-R` during restart

    2. Open Tools → Terminal and type

  28. @henrik242 henrik242 revised this gist Dec 20, 2019. 1 changed file with 6 additions and 6 deletions.
    Original file line number Diff line number Diff line change
    @@ -20,12 +20,12 @@ $ cd "/Volumes/Macintosh HD/System/Library"
    $ mkdir LaunchDaemons.disabled LaunchAgents.disabled
    $ mv LaunchDaemons/com.apple.ManagedClient* LaunchDaemons.disabled/
    $ mv LaunchAgents/com.apple.ManagedClient* LaunchAgents.disabled/
    $ echo "0.0.0.0 albert.apple.com
    0.0.0.0 iprofiles.apple.com
    0.0.0.0 mdmenrollment.apple.com
    0.0.0.0 deviceenrollment.apple.com
    0.0.0.0 gdmf.apple.com
    " >> "/Volumes/Macintosh HD/etc/hosts"
    $ cd ../../etc
    $ echo "0.0.0.0 albert.apple.com" >> hosts
    $ 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
    ```

  29. @henrik242 henrik242 revised this gist Dec 20, 2019. 1 changed file with 2 additions and 2 deletions.
    Original file line number Diff line number Diff line change
    @@ -16,7 +16,7 @@ $ csrutil disable

    ```
    $ mount -uw /
    $ cd /Volumes/Macintosh\ HD/System/Library
    $ cd "/Volumes/Macintosh HD/System/Library"
    $ mkdir LaunchDaemons.disabled LaunchAgents.disabled
    $ mv LaunchDaemons/com.apple.ManagedClient* LaunchDaemons.disabled/
    $ mv LaunchAgents/com.apple.ManagedClient* LaunchAgents.disabled/
    @@ -25,7 +25,7 @@ $ echo "0.0.0.0 albert.apple.com
    0.0.0.0 mdmenrollment.apple.com
    0.0.0.0 deviceenrollment.apple.com
    0.0.0.0 gdmf.apple.com
    " >> /Volumes/Macintosh\ HD/etc/hosts
    " >> "/Volumes/Macintosh HD/etc/hosts"
    $ csrutil enable
    ```

  30. @henrik242 henrik242 revised this gist Dec 20, 2019. 1 changed file with 1 addition and 1 deletion.
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,7 @@ $ csrutil disable

    3. Restart computer and hold `Command-R` to enter Recovery Mode again

    4. Enter Disk Utility, and mount the `Macintosh HD` volume
    4. Enter Disk Utility, and mount the `Macintosh HD` volume (or whatever your main volume is named)

    5. Exit Disk Utility, open the Terminal, and type