Skip to content

Instantly share code, notes, and snippets.

@a-r-m-i-n
Created March 11, 2018 13:42
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 a-r-m-i-n/439b891efe8f05aff82126ec78461ee1 to your computer and use it in GitHub Desktop.
Save a-r-m-i-n/439b891efe8f05aff82126ec78461ee1 to your computer and use it in GitHub Desktop.
Windows Batch file to perform "vagrant halt" on all running machines.
@echo off
vagrant global-status | awk '/running/{print $1}' | xargs -r -d '\n' -n 1 -- vagrant halt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment