Skip to content

Instantly share code, notes, and snippets.

@neilmartin83
Last active January 26, 2020 06:48
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 neilmartin83/c4066a4adcb3bc1d10c0fceb3eb9196e to your computer and use it in GitHub Desktop.
Save neilmartin83/c4066a4adcb3bc1d10c0fceb3eb9196e to your computer and use it in GitHub Desktop.
#!/bin/sh
loggedInUser=$( scutil <<< "show State:/Users/ConsoleUser" | awk '/Name :/ && ! /loginwindow/ { print $3 }' )
sudo -u "${loggedInUser}" /usr/local/bin/vboxmanage setextradata global GUI/PreventApplicationUpdate true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment