EUS Multitool is a Bash-based utility designed to assist IT technicians in managing Apple devices through Jamf Pro without directly interacting with the Jamf console. It leverages SwiftDialog for user interaction and Jamf Pro's API for device management tasks.
- Serial Number Lookup: Prompt users to input a serial number and select device type (Computer or Mobile Device).
- ABM Check: Verify if a device is present in Apple Business Manager. (currently via ADE in Jamf, ABM API to coming soon)
- Prestage Assignment Check: Identify the prestage configuration assigned to a device.
- LAPS Management:
- View current LAPS password and expiration.
- Schedule a LAPS password change.
- Personal Recovery Key (PRK) Management:
- View the current PRK.
- Schedule a PRK change.
- Remote Desktop: Enable Remote Desktop on a specified computer.
- Mobile Device Management:
- Assign device to a user.
- Update inventory.
- Clear passcode.
- Restart device.
- SwiftDialog: Used for GUI prompts and user interaction.
- Jamf Pro: Requires access to Jamf Pro API with appropriate credentials and permissions.
- jq: Command-line JSON processor.
- xmllint: Used for parsing XML responses.
-
Install SwiftDialog: Ensure SwiftDialog is installed at
/usr/local/bin/dialog. If not, the script will attempt to install it using a Jamf policy triggerSwiftDialog_Install. -
Configure API Credentials: Update the following variables with your Jamf Pro instance details:
JSS_URL: URL of your Jamf Pro server.client_id: OAuth client ID.client_secret: OAuth client secret.
-
Install Required Tools: Ensure
jqandxmllintare installed on the system for JSON and XML parsing.
- Ensure the Jamf Pro API credentials have sufficient permissions to perform the required actions.
- The script uses bearer tokens for authentication and invalidates them after execution.
- The LAPS and PRK management features rely on specific extension attribute IDs and static group IDs. Update these values as needed for your environment.
- The script includes error handling and user prompts to guide technicians through the process.