Hi,
basically I need to get a output of fdesetup status in order to check the variable and use it for a if check.
Basically I want to do the following:
Somehow I am stuck with this in my brain :/ sorry!
Best regards,
Dan

basically I need to get a output of fdesetup status in order to check the variable and use it for a if check.
Basically I want to do the following:
Code:
## Check for FileVault 2 Status
fdesetup status
## Needs to get an output "deferred for user xxx"
## Exact output: FileVault is Off. Deferred enablement appears to be active for user 'xxx'.
if (fdesetup status = deferred) then
#logout user
osascript -e 'tell application "loginwindow" to «event aevtrlgo»'
exit 0
fi
Somehow I am stuck with this in my brain :/ sorry!
Best regards,
Dan

