Question about add-vmdisk for SCSI

Aug 15, 2009 at 8:01 AM
Edited Aug 15, 2009 at 8:11 AM

    Hello, dear group members, I just begin to work with powershell and hyper-V. Thanks for the very useful library, and here is my question.
    My leader want me to add some physical hard disks to the VM SCSI Controller (there are 36 extra hard disks in all), and I am caught by the problem.
  I can add SCSI controller by function Add-VMSCSIController, add SCSI drive by function Add-VMDRIVE, but how can I add a physical hard disk other than a VHD or a ISO to the VM, like the hyper-V Manager do.
  By the way, I have tried to pass the DeviceID like "\\.\PHYSICALDRIVE13" as the VHDPATH parameter, but it doesn't work. Could any one please teach me how to deal with this problem, can I still use the original Add-VMDISK function or must add some other code?
  Thanks very much for your warmly help!!!

Aug 15, 2009 at 8:47 AM

PS. I heard Jamesone had written a seperate add passthru function, would you please send the function to me in reply or to my mail

                  Thanks very much for your assistance!!!

Sep 3, 2009 at 6:28 PM

It's in the 1.0c release which will go live later today