Skip to content

Instantly share code, notes, and snippets.

@velaskec
Created September 20, 2010 10:32
Show Gist options
  • Save velaskec/587708 to your computer and use it in GitHub Desktop.
Save velaskec/587708 to your computer and use it in GitHub Desktop.
!|scenario|revert|guests|
|eval|"@guests".split(';') !-|-! % {(Get-VM $_ !-|-! Get-View).Config.Files.VmPathName} !-|-! % {${VMRUN} stop $_ hard; ${VMRUN} start $_}|
|eval|"@guests".split(';') !-|-! % {while((Get-VM $_).Guest.State -ne 'Running' ){ sleep(10) }}|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment