Skip to content

Instantly share code, notes, and snippets.

@rtrouton
Created April 8, 2019 20:28
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtrouton/ca3712e9ab4d0fc61f7d1f7bc10268c2 to your computer and use it in GitHub Desktop.
Save rtrouton/ca3712e9ab4d0fc61f7d1f7bc10268c2 to your computer and use it in GitHub Desktop.
One-liner to ID the GUID of the FileVault-enabled account used to unlock the encryption on an encrypted Apple File System drive.
echo $(ioreg -l -w0 -p IODeviceTree | grep efilogin-unlock-ident) | grep -Eo "[A-F0-9]{8}-[A-F0-9]{4}-4[A-F0-9]{3}-[89AB][A-F0-9]{3}-[A-F0-9]{12}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment