Skip to content

Instantly share code, notes, and snippets.

@rtrouton
Created March 22, 2014 22:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtrouton/9715231 to your computer and use it in GitHub Desktop.
Save rtrouton/9715231 to your computer and use it in GitHub Desktop.
Expect script which automates running the fdesetup disable process. Script has been tested on both 10.8.5 and 10.9.2.
#!/usr/bin/expect
log_user 0
set password s3kr1tp4ssw0rd_or_recovery_key
spawn fdesetup disable
expect ": "
send "$password\n"
expect EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment