#!/bin/bash ########################################################################## # Script : Change FW-PW # Autor : Andreas Vogel # Copyright : NEXT Enterprise gmbh, 2021 ########################################################################## unset setpassword_fv unset rotatepassword_fv unset adduser_fv ############################################# Jamf Hepler Messanger ############################################################# jamfHelper="/Library/Application Support/JAMF/bin/jamfHelper.app/Contents/MacOS/jamfHelper" jamf="/usr/local/bin/jamf" ErrorIcon="" Error="An unexpected error has occurred. The encryption does not work properly. Please contact Mac support." MessageIcon="/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/ToolbarCustomizeIcon.icns" Message="The Filevault setting must be updated. Please enter your current Windows password in the next window." ############################################# Variablen ######################################################################### Status=$(fdesetup status | cut -d ' ' -f 3) echo $Status user=$(stat -f '%u %Su' /dev/console | cut -d ' ' -f 2) adminName="ladmin" adminPass="" ############################################# Funktion ######################################################################### enable_fv () { expect <