Last active
August 24, 2016 21:23
-
-
Save ed-flanagan/2b97949f4851a696878b9a1f67a97f08 to your computer and use it in GitHub Desktop.
Poweroff all running VirtualBox vms
This file contains 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
#!/usr/bin/env bash | |
vboxmanage list runningvms | awk '{print $2}' | tr -d '{}' | xargs -I '{}' vboxmanage controlvm {} poweroff |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment