Hi All
Long time scince i have used the site, I have had a nosy about and wanted some help with enabling the "check and update tools before each power on" option for VMware tools.
Also where is the best scripting guide?
Thanks
Phil
Glad you found us!
Here's a script (previously posted by LucD here) that will do this for all VMs:
get-viserver -server YourVIServerHere $vmConfigSpec = New-Object VMware.Vim.VirtualMachineConfigSpec $vmConfigSpec.Tools = New-Object VMware.Vim.ToolsConfigInfo $vmConfigSpec.Tools.ToolsUpgradePolicy = "UpgradeAtPowerCycle" Get-VM | % { (Get-View $_.ID).ReconfigVM($vmConfigSpec)}
As far as a guide goes, my book is a great place to start, if I do say so myself.
[vExpert|http://www.vmware.com/communities/vexpert/], PowerShell MVP, VI Toolkit forum moderator
Author of the book: Managing VMware Infrastructure with PowerShell
Co-Host, PowerScripting Podcast (http://powerscripting.net)
Need general, non-VMware-related PowerShell Help? Try the forums at PowerShellCommunity.org
Hi
Thanks for the script, I was actualy just look at your book, thought it was a little pricy thou ha ha ha.
I will certainly give it a read.
Thanks
Phil
Believe me, its well worth the money and more than pays for itself in the time it gives you back.
If you found this information useful, please consider awarding points for Correct or Helpful.
Alan Renouf
FWIW I had nothing to do with setting the price on the book. 🙂
[vExpert|http://www.vmware.com/communities/vexpert/], PowerShell MVP, VI Toolkit forum moderator
Author of the book: Managing VMware Infrastructure with PowerShell
Co-Host, PowerScripting Podcast (http://powerscripting.net)
Need general, non-VMware-related PowerShell Help? Try the forums at PowerShellCommunity.org