Skip to content

Instantly share code, notes, and snippets.

@mallej
Last active February 1, 2018 12:13
Show Gist options
  • Save mallej/b62c925052b0e9c6c20415f4ce89f312 to your computer and use it in GitHub Desktop.
Save mallej/b62c925052b0e9c6c20415f4ce89f312 to your computer and use it in GitHub Desktop.
[reset DEP testing mac] #dep #jamf #macos
#!/bin/bash
# #####################################################################################################################################
# Run this as root on your DEP testing computer, it'll bring it back to a state that will kick off DEP on reboot. Also, VMs will be your friend as well
#
# source: https://www.jamf.com/jamf-nation/discussions/26940/what-is-your-dep-test-environment-look-like#responseChild159889
#
# #####################################################################################################################################
# Remove .AppleSetupDone Allows the Setup Assistant to show again
rm /var/db/.AppleSetupDone
# Remove JAMF Binaries and Software
jamf removeFramework
# Remove any lasting Configuration Profiles
rm -rf /var/db/ConfigurationProfiles
# Remove apds.keychain This is on recommendation of Apple. Seems to have some push cert related data in it
rm /Library/Keychains/apsd.keychain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment