Skip to content

Instantly share code, notes, and snippets.

@nlinker
Created December 10, 2012 07:29
Show Gist options
  • Save nlinker/4249045 to your computer and use it in GitHub Desktop.
Save nlinker/4249045 to your computer and use it in GitHub Desktop.
Powershell script to run several vagrant machines headless
# 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