Now that this code works, im looking to log any errors that might result in the overallocation of resources; the following does not work:
try{
move-vm -VM $Vm -destination $dest
}catch{
write-log "Some log here $_ "
}
Any ideas how i can catch WHICH vm's do not end up moving or finishing their move?
Thanks