eject-media.ps1 is currently implemented using EjectVolumeMedia. For Windows VMs that do not have internet access at build time they will be unable to download and execute this tool. So this change implements ejecting media (Floppy disk drives and CD drives) using pure powershell.
Related Issue
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Chore (non-breaking change that does not add functionality or fix an issue)
Checklist:
[x] I have read the CONTRIBUTING document.
[ ] I have run the pre-merge tests locally and they pass.
Avoid downloading application to implement eject-media.ps1.
Description
eject-media.ps1 is currently implemented using EjectVolumeMedia. For Windows VMs that do not have internet access at build time they will be unable to download and execute this tool. So this change implements ejecting media (Floppy disk drives and CD drives) using pure powershell.
Related Issue
Types of changes
Checklist: