VMware Cloud Community
jdd_HP
Contributor
Contributor

Upgrade VMtools based upon list

I have a large number of vm's for which I need to upgrade vmtools.  What I am looking to do is upgrade tools based upon a CSV or other type of list, also suppressing reboot.  I would prefer to use powercli 5.

Thanks,
JDD

0 Kudos
3 Replies
LucD
Leadership
Leadership

Try something like this

Import-Csv C:\vmnames.csv -UseCulture | %{

     Get-VM -Name $_.VmName | Update-Tools

}


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
jdd_HP
Contributor
Contributor

I have tried this suggestion and it didn't work.  There were no error messages, also I didn't see anything show up in the eventviewer on the vm's I tried to update.

0 Kudos
LucD
Leadership
Leadership

Does your CSV file look something like this

VMname

VM1

VM2

VM3

You need to have to columnheader in the 1st row.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos