#!/bin/bash ########################################################################## # Script : Rotate Recovery Key by User # Autor : Andreas Vogel # Copyright : nextenterprise gmbh, 2021 ########################################################################## unset setpassword_fv unset rotatepassword_fv ############################################# Variablen ######################################################################### Status=$(fdesetup status | cut -d ' ' -f 3) user=$(stat -f '%u %Su' /dev/console | cut -d ' ' -f 2) UUID=$(dscl . -read /Users/$user GeneratedUID | awk '{print $2}') jamfHelper="/Library/Application Support/JAMF/bin/jamfHelper.app/Contents/MacOS/jamfHelper" jamf="/usr/local/bin/jamf" BRANDING="/Users/$user/Library/Application Support/com.jamfsoftware.selfservice.mac/Documents/Images/brandingimage.png" SuccessfulIcon="/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertNoteIcon.icns" ErrorIcon="/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns" ############################################# Funktion ############################################################################# setpassword_fv () { expect <