Skip to content

Comments

Hyper-V VM: look for passthrough disks that are likely Offline USB (SSD/NVMe) drives#350

Open
skyblaster wants to merge 1 commit intoOSDeploy:masterfrom
skyblaster:Get-USBDisk-patch
Open

Hyper-V VM: look for passthrough disks that are likely Offline USB (SSD/NVMe) drives#350
skyblaster wants to merge 1 commit intoOSDeploy:masterfrom
skyblaster:Get-USBDisk-patch

Conversation

@skyblaster
Copy link
Contributor

  • Add an if/else block to the Get-USBDisk function to detect when we are working inside a Hyper-V guest VM
  • If working inside Hyper-V, use Get-OSDDisk -MediaType SSD to detect additional offline/passthrough host drives

**This only works with SSD/NVMe USB enclosures. Standard USB flash drives are typically not able to be put offline in diskmgmt.msc

Closes #348

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add detection of Offline drives in Hyper-V

1 participant