-
-
Save Jeket/a33c6f9579ecc5f968a1bbd0dbbead84 to your computer and use it in GitHub Desktop.
Revisions
-
opragel renamed this gist
Mar 24, 2021 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
opragel revised this gist
Mar 24, 2021 . 1 changed file with 5 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,22 +1,18 @@ #!/bin/bash # Seriously there still apparently aren't enough warning labels # If you don't understand the consequences don't do it REMOVE_PATHS=( # "/var/db/ConfigurationProfiles/.passcodePolicesAreInstalled" # "/var/db/ConfigurationProfiles/.cloudConfigHasActivationRecord" # "/var/db/ConfigurationProfiles/.cloudConfigNoActivationRecord" # "/var/db/ConfigurationProfiles/.cloudConfigProfileObtained" # "/var/db/ConfigurationProfiles/.cloudConfigRecordFound" # "/var/db/ConfigurationProfiles/.profilesAreInstalled" # "/var/db/ConfigurationProfiles/MDM_ComputerPrefs.plist" # "/var/db/ConfigurationProfiles/Setup" "/var/db/ConfigurationProfiles/Store" "/Library/Keychains/apsd.keychain" ) for removePath in "${REMOVE_PATHS[@]}" do -
opragel revised this gist
Dec 10, 2017 . 1 changed file with 1 addition and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,10 +2,7 @@ # Seriously there still apparently aren't enough warning labels # If you don't understand the consequences don't do it # ################ # #### May cause 10.13.2+ machines that were DEP-enrolled to not be considered as such # ################ # but really, you shouldn't do this # one local user enabled for MDM come on apple -
opragel revised this gist
Dec 10, 2017 . 1 changed file with 5 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,11 +12,11 @@ # ¯\_(ツ)_/¯ REMOVE_PATHS=( "/var/db/ConfigurationProfiles/.passcodePolicesAreInstalled" # "/var/db/ConfigurationProfiles/.cloudConfigHasActivationRecord" # "/var/db/ConfigurationProfiles/.cloudConfigNoActivationRecord" # "/var/db/ConfigurationProfiles/.cloudConfigProfileObtained" # "/var/db/ConfigurationProfiles/.cloudConfigRecordFound" # "/var/db/ConfigurationProfiles/.profilesAreInstalled" "/var/db/ConfigurationProfiles/MDM_ComputerPrefs.plist" "/Library/Keychains/apsd.keychain" "/var/db/ConfigurationProfiles/Setup/" ) -
opragel revised this gist
Nov 29, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ #!/bin/bash # Seriously there still apparently aren't enough warning labels # If you don't understand the consequences don't do it # ################ # #### Warning in 10.13 this will result in DEP-enrolled machines -
opragel revised this gist
Nov 29, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ #!/bin/bash # Seriously there still apparently aren't not enough warning labels # If you don't understand the consequences don't do it # ################ # #### Warning in 10.13 this will result in DEP-enrolled machines -
opragel revised this gist
Nov 29, 2017 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,6 @@ #!/bin/bash # Seriously there are not enough warning labels # If you don't understand the consequences don't do it # ################ # #### Warning in 10.13 this will result in DEP-enrolled machines # #### not being DEP-enrolled, if re-enrolled outside of the DEP process. -
opragel revised this gist
Nov 6, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,7 +17,7 @@ REMOVE_PATHS=( "/var/db/ConfigurationProfiles/.passcodePolicesAreInstalled" "/var/db/ConfigurationProfiles/.profilesAreInstalled" "/var/db/ConfigurationProfiles/MDM_ComputerPrefs.plist" "/Library/Keychains/apsd.keychain" "/var/db/ConfigurationProfiles/Setup/" ) for removePath in "${REMOVE_PATHS[@]}" do -
opragel created this gist
Nov 6, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,30 @@ #!/bin/bash # ################ # #### Warning in 10.13 this will result in DEP-enrolled machines # #### not being DEP-enrolled, if re-enrolled outside of the DEP process. # #### If you re-enroll in MDM outside the DEP process, users will have # #### to approve the MDM profile for you to have full capabilities. # ################ # but really, you shouldn't do this # one local user enabled for MDM come on apple # ¯\_(ツ)_/¯ REMOVE_PATHS=( "/var/db/ConfigurationProfiles/.passcodePolicesAreInstalled" "/var/db/ConfigurationProfiles/.cloudConfigHasActivationRecord" "/var/db/ConfigurationProfiles/.cloudConfigNoActivationRecord" "/var/db/ConfigurationProfiles/.cloudConfigProfileObtained" "/var/db/ConfigurationProfiles/.cloudConfigRecordFound" "/var/db/ConfigurationProfiles/.profilesAreInstalled" "/var/db/ConfigurationProfiles/MDM_ComputerPrefs.plist" "/Library/Keychains/apsd.keychain" "/var/db/ConfigurationProfiles/Setup/" ) for removePath in "${REMOVE_PATHS[@]}" do if [ -e "$removePath" ]; then printf "Deleting: %s\n" "$removePath" rm -rf "$removePath" else printf "Not found: %s\n" "$removePath" fi done