Last active
January 26, 2020 06:48
-
-
Save neilmartin83/c4066a4adcb3bc1d10c0fceb3eb9196e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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