Skip to content

Instantly share code, notes, and snippets.

@GrahamWalters
Last active May 6, 2019 03:54
Show Gist options
  • Save GrahamWalters/f597e743ae1a0d7271ee2f267fe35976 to your computer and use it in GitHub Desktop.
Save GrahamWalters/f597e743ae1a0d7271ee2f267fe35976 to your computer and use it in GitHub Desktop.
On supported systems, restarts computer and unlocks FileVault one time
sudo fdesetup authrestart
# It will ask for:
# 1. the sudo password
# 2. the drive password or recovery key
# -delayminutes <minutes> Number of minutes before restart.
# -1 to set the key but allow something like a software update the restart the computer.
sudo fdesetup authrestart -delayminutes -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment