If that would help yes , but I run into error like the other User in the Thread.
So thanks for the Answer, but It would be nice to pole all Datastores
Like that ( from someone else, which provide Infos to the Datastores )
$Datastores = Get-Datastore
foreach($DS in $Datastores)
{
$DSInfo = $DS.ExtensionData.Info
if($DSInfo -is [VMware.Vim.VmfsDatastoreInfo] -and $DSInfo.Vmfs.MajorVersion -eq 6)
{$DSInfo.Vmfs | select Name, BlockSizeMb,Version, UnmapPriority, UnmapGranularity, Uuid, Extent}
else {
$prop = [ordered]@{Name = $DSInfo.vmfs.Name
BlockSizeMb = $DSInfo.Vmfs.BlockSizeMb
Version = $dsinfo.vmfs.Version
UnmanPriority = "VMFS Version is below 6"
UnmapGranularity = "VMFS version is below 6"
}
New-Object -TypeName psobject -Property $prop | ft -AutoSize
}
}
And then have the ability to change Unmap Priority in a Bulk.