Quantcast
Channel: rtrouton – Der Flounder
Viewing all articles
Browse latest Browse all 764

Booting to macOS Recovery or Diagnostics via Jamf Pro’s Self Service

$
0
0

One of the advantages provided by Jamf Pro’s Self Service is that you can use it to provide easy access to tools for your users or helpdesk folks. One such tool could be a script which helps folks boot to their Macs to one of the following Apple support services:

For more details, please see below the jump.

This script sets one of four boot arguments and passes it to NVRAM:

  • RecoveryModeDisk – Boots to the Recovery volume on your local boot drive
  • RecoveryModeNetwork – Boots to Internet Recovery
  • DiagsModeDisk – Boots to the Diagnostics or Apple Hardware Test volume on your local boot drive.
  • DiagsModeNetwork – Boots to Internet Diagnostics or Apple Hardware Test

Note: If booting to macOS Recovery, this script will set the logged-in account to have admin privileges. This is because, on Macs equipped with T2 security chips, an admin account is needed to be able to access the macOS Utilities tools in the Recovery environment.

Macos catalina recovery mode auth installer password

To set it up for use with Jamf Pro, do the following:

1. Add the script to Jamf Pro.

Screen Shot 2020 03 24 at 4 58 31 PM

Screen Shot 2020 03 24 at 4 58 35 PM

2. Create a new Self Service policy.

Screen Shot 2020 03 28 at 4 38 19 PM

Screen Shot 2020 03 24 at 5 02 19 PM

3. Select the script as part of the policy.
4. Set the policy’s Execution Frequency to Ongoing.

Screen Shot 2020 03 28 at 4 38 20 PM

5. Set target scope as desired.

Screen Shot 2020 03 24 at 5 03 17 PM

Note: While this script was written with Jamf Pro’s Self Service in mind, it should be adaptable with either no alteration or minor edits to other Self Service tools which can run scripts.

Once the policy is set up in Jamf Pro, it should look like this when run.

Screen Shot 2020 03 24 at 5 11 55 PM

Screen Shot 2020 03 24 at 5 12 03 PM

Screen Shot 2020 03 24 at 5 12 10 PM

When the Mac restarts, it should boot to Diagnostics or macOS Recovery (depending on your choices.)

Diagnostics checking mac

Screen Shot 2020 03 24 at 4 34 21 PM

The script is available below. It is also available from the following location on GitHub:

https://github.com/rtrouton/rtrouton_scripts/tree/master/rtrouton_scripts/set_recovery_or_diagnostics_boot_mode


Viewing all articles
Browse latest Browse all 764

Trending Articles