Hi all,
I'm having a bit of a hard time getting this info from a couple of VMs. I need the local bus:target address for all virtual disks whether they be vmdks or RDMs. I've seen a few examples of comparing the widonws configuration to the virtual machine configuration but I'm not interested in this right now, I just need the virtual machine configuration. I would really appreciate your help. Thanks...
Try something like this
Get-VM | Get-Harddisk |
Select @{N='VM Name';E={$_.Parent.Name}},
@{N='HD Name';E={$_.Name}},
@{N="SCSIid";E={$strControllerKey = $_.ExtensionData.ControllerKey.ToString(); "{0}`:{1}" -f $strControllerKey[$strControllerKey.Length - 1], $_.ExtensionData.Unitnumber}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Try something like this
Get-VM | Get-Harddisk |
Select @{N='VM Name';E={$_.Parent.Name}},
@{N='HD Name';E={$_.Name}},
@{N="SCSIid";E={$strControllerKey = $_.ExtensionData.ControllerKey.ToString(); "{0}`:{1}" -f $strControllerKey[$strControllerKey.Length - 1], $_.ExtensionData.Unitnumber}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
That's Fantastice thanks LucD!
I was poking around and I also found this function get-vmdiskmap which gives some good info as well. I think this function also grabs the Windows disk configuration.