Python script to set Recovery Lock key for Apple M1 computers.
- Python3
- Python package: requests (can be installed by running
python3 -m pip install requests
) - Username and password from Jamf Pro (https://[company].jamfcloud.com) -> System Settings -> Jamf Pro User Accounts & Groups
- Clone this repo:
git clone https://github.com/shbedev/jamf-recovery-lock.git
- Edit auth/creds.py and fill the required info
- Before running this on all computers, test the script by editing main.py and filtering for 1 computer (you can just change the name of the computer from "jdoe-mbp" to the computer name you are testing on).
- Open command line and run
python3 main.py
The recovery key will now be showen under Jamf Pro > Computer > Inventory > Security > Recovery Lock Password (Show Password)
👉 Note that the Recovery Lock status will be shown as Not Enabled until the next inventory collection.