Skip to content

Instantly share code, notes, and snippets.

@chaderoth
Last active October 11, 2018 22:05
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 chaderoth/6e94268403fa80dca26571212cb6cd81 to your computer and use it in GitHub Desktop.
Save chaderoth/6e94268403fa80dca26571212cb6cd81 to your computer and use it in GitHub Desktop.
Write-Host "Ejecting Media In Guest For "$VM.Parent.Name""
Invoke-VMScript -ScriptText "eject" -ScriptType Bash -VM $VM.Parent.Name -GuestCredential $Creds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment