Need a PowerCLI script to automate VMTools installtion on multiple servers
Is it an initial VMware Tools installation or an upgrade?
And which guest OS are we talking about?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hello,
I am talking about the upgrade part. I am just wishing to automate the VMTools Upgradation for multiple servers in our environment.I am currently working on 2012R2 and 2016 OS server. Currently,firstly i have to Install (Push )the VMCentre End. Then for installing it i have to go to that particular server one by one. Then pushing it from Drive (For VMWare Tools Upgradation.
I am just seeking help for this so that i can minimize the time to updrade the VMTools for multiple servers.
Did you try the Update-Tools cmdlet?
You could do something like this
Where-Object { $_.ExtensionData.Guest.ToolsVersionStatus -eq 'guestToolsNeedUpgrade' -and $_.PowerState -like 'PoweredOn' } |
Get-VMGuest | Where-Object { $_.GuestFamily -like 'WindowsGuest'} |
Update-Tools -NoReboot -RunAsync
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hello Luc,
I have tried this as well. This will surely update one server at a time. But what about if i try to use this for multiple servers at a single time. Can you help me with some link which could be helpful for this action.
Thanks & Regards,
Saurabh Chawla
The RunAsync switch launches the tasks in the background, and the script continues.
So I don't think it is one at a time.
Did you see something else?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hello Luc,
I tried but it is giving error while implementing . Can you help me with this script implementation or some Link or Blog which could help me while installation.
What error are you getting?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference