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"
What does it say in the vmware.log of this VM?
And which PowerCLI version are you using?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Looks like you might be having an issue with the CD on that VM.
If possible remove the CD from the Settings, then add a new CD to the VM.
Now try the VMware Tools upgrade again.
You might also try to power off/power on the VM (not the guest OS), before doing the above.
PS: you are running a very old version of PowerCLI.
Any particular reason why you can't upgrade?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
yes, there is a restriction in my office we cant upgrade however i will try to upgrade, and i will try removing CD drive
You could try to upgrade the tools from within the guest OS.
Curious to know if that would work.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Manually mounting the ISO tools and installing the tools via installation wizard is working. But i have to update tools for hundreds of server.
Manually installing is too much effort. so i am trying through powercli script, but though powercli its not installing.
And is Update-Tools failing on all the VMs on which you tried it?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
yes its failing in all vms
Might you be hitting the issue described in KB2007298?
Can you try the solution proposed in that KB on one the VMs?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference