Git Product home page Git Product logo

dep-notify's Introduction

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: https://gitlab.com/Mactroll/DEPNotify

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 https://gitlab.com/Mactroll/DEPNotify) 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: https://gitlab.com/Mactroll/DEPNotify

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 shellcheck.net 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.