Hi guys,
I'm trying to get a report of VM's where storage drs is set to disabled.
I'm able to get a list of VM's where status is manual but VM's where storage drs is set to disabled are not shown with status disabled.
For example:
$dsc=Get-DatastoreCluster -name DatastoreCluster01 $dsc.ExtensionData.PodStorageDrsEntry.StorageDrsConfig.VmConfig | select behavior,@{N="VM";E={[string]::Join('/',(Get-View -Id $_.VM -Property Name | Select -ExpandProperty Name))}}
Behavior | VM |
-------- | -- |
SRV00013 | |
manual | SRV00014 |
SRV00015 | |
SRV00016 | |
manual | SRV00017 |