This is a script I made to make things easier for admins to send Recovery Lock Commands to their endpoints. (Had they forgotten to set the setting in their Prestage.) It also serves as an option if admins want to rotate their Recovery Lock Passwords as well!
Put in some credentials (API Role or Standard Account), your URL, and how you want to input your computers! (I prefer the static or smart group option myself.) The script will then get a list of machines and start pushing out the API command to set the Recovery Lock Password.
Currently the Recovery Lock API call does not have a way to set randomized passwords (this can only be done through pre-stage enrollment. However, this script can create randomized passwords -- if you so choose. The password will be randomized for each computer.)
Created a new script for this workflow that leverages SwiftDialog. To use this newer workflow, check out swiftDialog Recovery Lock.
I thought it was time to give this a makeover so the workflow would look a little more modern and would help streamline the experience. (There were a ton of prompts with the AppleScript method.)
Here are some screenshots of the swiftDialog workflow: