DeviceOffboarding

Presented at MacSysAdmin 2023.

This repository contains scripts for managing macOS devices using Jamf Pro presented at Masters of Mac events.

The scripts serve various purposes such as device refresh, user offboarding, and providing hourly notifications for account disablement.

List of Scripts Here is a brief description of each script:

Initial User Offboarding Prompt: This script presents the user with a dialog box stating that their last working day is approaching and their account will be disabled at the end of the day.

Confirmation Prompt for User Offboarding: This script prompts the user to confirm if they want to surrender their device. It warns them that all data will be wiped and will not be accessible again.

Hourly Account Disablement Notification: This script prompts the user with an hourly reminder that their account will be disabled soon. It calculates the remaining time and updates the message accordingly.

Device Refresh Notice: This script notifies the user that a device refresh is coming up and provides instructions on how to back up their data and set up a new Mac. It also allows the user to proceed with the device refresh if they are ready.

Usage To use these scripts, you need to:

Download the scripts. Modify them as needed to suit your specific environment and requirements. For example, you may need to replace placeholder text or paths with actual content.

Implement the scripts in your Jamf Pro instance, typically as policies or configuration profiles. Please note that the scripts may need to be tested and modified before being deployed in a production environment. Be sure to follow best practices for scripting and Jamf Pro management to ensure that the scripts work as expected and do not cause unintended side effects.

For any issues or suggestions, please reach out to the Kavan (kavan.joshi@jamf.com, Slack: MacAdmins > Kavan Joshi)

Disclaimer These scripts are provided as is, without warranty of any kind. The author is not responsible for any damage or data loss that may occur from using these scripts. Always test scripts in a controlled environment before deploying them to production.

Use the scripts from attachment for generating similar messages & Prompts:

  1. setExpiryDate.sh
image image image image
  1. user_message_jamfhelper.sh
image image
  1. returnDevice.sh
image image image
These scripts can be used to do manual prompt testing with your desired time and values :
3.1 returnDevicePrompt1.sh,     3.2 returnDevicePrompt2.sh,    3.3 returnDevicePrompt3.sh 
  1. deviceRefresh.sh
image image