get-disk with dynamic disk RRS feed

  • Question

  • Hi guys,
    I'm working in automatisation on iSCSI SAN. The idea is that with SAN provider Module connect to my SAN, take the LUN online and config the iSCSI access. Then use "$iSCSISession = connect-iSCSITarget" to connect the LUN and obtain an iSCSISession object to get the disk with "$Disk_ID = $iSCSISession | get-disk", by last with de disk use add-PartitionAccessPath to mount the disk in a path.
    This works right with basic disks but not with dynamic disks, I'm trying to solve it using CIM/WMI but I can't  resolve the asociation between the diferents cim instances, I'm using Windows 2012 R2.
    Is this possible? 
    Thank at all.
    • Moved by Bill_Stewart Friday, October 7, 2016 6:03 PM Unanswerable drive-by question
    Wednesday, July 27, 2016 3:45 PM