Skip to content

Instantly share code, notes, and snippets.

@mwrock
Created February 19, 2016 21:57
Show Gist options
  • Save mwrock/4d4cba7509c254873fad to your computer and use it in GitHub Desktop.
Save mwrock/4d4cba7509c254873fad to your computer and use it in GitHub Desktop.
Vagrant windows detect
if ((Test-Path $env:systemroot) -and (get-item $env:systemroot).PSIsContainer) {
exit 0
}
exit 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment