Hi, i am trying to update tools for multiple VMs, here is my code below, i have tried in two different ways but still i am getting error
for each($vm in $vms){
get-vm $vm | Update-Tools - Noreboot
}
another way
foreach ($vm in $vms)
{
get-vm $vm | Mount-Tools
get-vm $vm | update-tools -Noreboot
get-vm $vm | Dismount-Tools
}
Please help me on this, what i am missing?
But i am getting below error
The Operation of the entity VirtualMachine-vm-12573 with following message:"Error Upgarding vmware Tools"