Hello Everyone,
I'm trying to add a physical Disk (LUN pass-through) to a VM using PowerShell. Using the GUI is very easy, but sometimes we will not have access to the GUI.
The command I did:
get-disk
get-disk 2 | add-vmharddiskdrive -vmname nameofvm
This didn't work, it added the disk but did not show the Disknumber when I ran this command and it wouldn't boot. It just showed Controllertype, Controllernumber and Controllerlocation.
"get-vmharddiskdrive -vnname nameofvm"
Is there another command I need to use?
Thank you
Devon