Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
73 lines (52 sloc) 4.32 KB

DEP Notify for Jamf Pro

Template bash script to start DEP Notify and run Policies during enrollment with Jamf. App installer, source code, and documentation can be found at:

How to Use

This script is designed to make implementation of DEP Notify very easy with limited scripting knowledge. The script has variables that may be modified to customize the end user experience. DO NOT modify things in or below the CORE LOGIC area unless major testing and validation is performed.

Please note, the script is set to testing mode by default. Having testing mode on will cause the following things to occur:

  • Sleep commands in place of running Policies
  • Removal of BOM and configuration files
  • Command + Control + x is set to quit or interrupt DEP Notify

The script will need to be changed from TESTING_MODE=true to TESTING_MODE=false for polices to run properly.

It is recommended that you read the script fully and make changes that suit your organization prior to deployment to end user devices.

Overview of Jamf Pro Setup

While each organization will use a setup tool like DEP Notify differently, here is the most common way that it is delivered as well as how the script was designed to function. Changing the workflow should result in testing prior to production release.

  1. Create policies in Jamf Pro to install core software during first setup. Set the frequency to ongoing and the trigger to custom and type in a manual trigger. Ex: depNotifyFirefox or installOffice201x
  2. Once software policies are created, customize this script with changes to verbiage as well as updating the POLICY_ARRAY with appropriate information. Double check the testing flag once you are ready to proceed.
  3. Upload DEP Notify.pkg (downloaded from and this script to Jamf Pro. Create a policy to install the PKG and this script using the Enrollment Complete trigger. Also set the execution frequency to ongoing.
  4. Once a computer is finished enrolling, the DEP Notify policy will start and then call the other policies in order based on the array.
  5. (Optional) If you are requiring FileVault encryption, the script will automatically check at the end of running policies if deferred enablement is on. This will trigger a logout instead of a quit of DEP Notify.

DEP Notify PKG and additional documentation can be found at:

Tested Software Versions

  • macOS 10.4.0
  • macOS 10.13.6
  • DEPNotify 1.1.0
  • Jamf Pro 10.7.1

Change Log

10/4/18 - Added check for Finder process by Kyle Bareis

  • Thanks @remusache for finding a workflow that need to be addressed
  • Script now should handle workflows which do not have an end user configure the device
  • After checking to see if Setup Assistant is finished, script will now check to see if Finder is running

9/25/18 - Added variable and check for custom Self Service branding by Kyle Bareis

  • Added true/false variable for custom Self Service branding
  • Added loop for waiting for the custom branding to be downloaded
  • Removed To Do list, how to use, and tested versions from bash script
  • Updated GitHub Readme file with additional information

9/24/18 - Updated loop for verifying Apple Setup Complete by Arek Dryer and Kyle Bareis

  • Changed loop to look for the Setup Assistant process rather than files and users
  • Changed /dev/console lookup to stat per recommendation
  • Verified with 10.13.6, 10.14 and Jamf Pro 10.7.1
  • Removed double \ in the new line escapes. Has changed in a recent update.
  • Added a troubleshooting and debugging log for helping out with DEP related issues.
  • Debug log focused on what happens prior to DEP Notify creation.
  • Changed default image to Self Service icon.

7/13/18 - Major updates to script logic and error correction by Kyle Bareis

  • updated if statements to use true/false over yes/no
  • added FileVault deferred enablement check and modified to logout or continue
  • added tested versions comment
  • additional cleanup and error checking

6/28/18 - Initial commit by Kyle Bareis

To Do List