LucD You are the real Man... :smileyhappy::smileyblush:
Above given script worked like charm.. Awesome LucD.. I have seen your all efforts helping on VMware PowerCLi forum is Commendable, Appreciable.
Hats off to you. :smileycool:
Connect-viserver vcenter.domain.tld
$sourcedatastore = “SOURCEDATASTORE“
$destinationdatastore = “DESTINATIONDATASTORE“
$vms = Get-VM -Datastore $sourcedatastore | where{(Get-HardDisk -VM $_ ).StorageFormat -contains 'Thick'}
foreach($vm in $vms){
Move-VM -VM (Get-VM -Name $vm) -Datastore $destinationdatastore -DiskStorageFormat thin
}