Created
December 10, 2012 07:29
-
-
Save nlinker/4249045 to your computer and use it in GitHub Desktop.
Powershell script to run several vagrant machines headless
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
# make sure this mode is enabled under administrator: Set-ExecutionPolicy RemoteSigned | |
# use a batch file like this: | |
# C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Vbox\rabbits-headless.ps1 | |
$items = @( 'vagrant-rabbitmq-cluster_1351840619', 'vagrant-rabbitmq-cluster_1351840685', 'vagrant-rabbitmq-cluster_1351840745', 'vagrant-rabbitmq-cluster_1351840804' ) | |
Foreach ($item in $items) { | |
$p = '-s ' + $item | |
start-process 'C:\ProgramsX\Oracle\VirtualBox\VBoxHeadless.exe' $p -WindowStyle Hidden | |
} | |
write-host "All systems go" -foregroundcolor "magenta" -backgroundcolor "blue" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment