VMware Cloud Community
wallboy_
Enthusiast
Enthusiast

VMWare tools

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

Reply
0 Kudos
4 Replies
halr9000
Commander
Commander

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. Smiley Happy



[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

My signature used to be pretty, but then the forum software broked it. vExpert. Microsoft MVP (Windows PowerShell). Author, Podcaster, Speaker. I'm @halr9000
Reply
0 Kudos
wallboy_
Enthusiast
Enthusiast

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

Reply
0 Kudos
alanrenouf
VMware Employee
VMware Employee

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

Blog: http://virtu-al.net Twitter: http://twitter.com/alanrenouf Co-author of the PowerCLI Book: http://powerclibook.com
Reply
0 Kudos
halr9000
Commander
Commander

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

My signature used to be pretty, but then the forum software broked it. vExpert. Microsoft MVP (Windows PowerShell). Author, Podcaster, Speaker. I'm @halr9000
Reply
0 Kudos