Created
November 19, 2014 19:18
-
-
Save uchagani/79f356a2fb5fa76d4e39 to your computer and use it in GitHub Desktop.
Vagrant Status In PowerShell
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
#Gets the vagrant status in returns it as a PowerShell Object | |
function Vagrant-Status | |
{ | |
$output = vagrant status --machine-readable | Select-String -Pattern "state-human-short" -AllMatches | |
$output = $output | ? { $_ } | sort -uniq | |
$status = ConvertFrom-Csv $output -Header TimeStamp,Machine,StatusType,State | |
return $status | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment