Skip to content

Instantly share code, notes, and snippets.

@infestacool
Created February 8, 2018 22:00
Show Gist options
  • Select an option

  • Save infestacool/d161fb1f566dc339b079d98eec88ce0a to your computer and use it in GitHub Desktop.

Select an option

Save infestacool/d161fb1f566dc339b079d98eec88ce0a to your computer and use it in GitHub Desktop.
Run this logged in as a user to enable secureToken for that user. It will prompt for admin credentials and the the user's password.
#!/bin/bash
echo We will enable SecureToken on $USER
sysadminctl interactive -secureTokenOn $USER -password -
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment