Reply to Message

View discussion in a popup

Replying to:
haripetrov
Contributor
Contributor

Here is a simple script which can save a lot of time:

$hosts = Get-Cluster "Public Cluster" | Get-VMHost

foreach($vihost in $hosts){

  $esxcli = get-vmhost $vihost | Get-EsxCli

$esxcli.software.vib.update($null,$false,$false,$false,$false,$true,$null,$null,"/vmfs/volumes/DATASTORE/VMware_locker_tools-light_5.1.0-2.44.2191751.vib")

}

P.S. Please, have in mind that when you have a vib file you have to specify "string[] viburl" and leave "string[]  vibname" empty (the example provided by LucD is not entirely correct).

Reply
0 Kudos