VMware Cloud Community
Zass1
Contributor
Contributor

How to choose the patch in the script ?

Hello everyone,

I make a script for update my ESXi, so for that I use this :  " Install-VMHostPatch -HostPath /vmfs/volumes/DatastoreName/ESXi670-202111001/metadata.zip".

And when I execute the script, I want to be able choose the patch with this name (= ESXi670-201906002 or other)  and the script install the patch alone..

 

So how can i do that ?
I hope I was as clear as possible and that you understood me.

Cordially

 

0 Kudos
4 Replies
LucD
Leadership
Leadership

Afaik you can't select an included version in a rollup patch.
In your case, you would need to use the ESXi670-201906002.zip rollup instead of ESXi670-202111001.zip.


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

0 Kudos
Zass1
Contributor
Contributor

Thanks for you reply.

So I have to write the name of the patch manually in the script ?

What do you mean about "included version in rollup patch" ?

Can I use the .zip with Install-VMHostPatch without metadata.zip ?
The command want the metadata.zip no ?

0 Kudos
LucD
Leadership
Leadership

No, you still have to use the metadata file, but that is in the extracted folder when you unzip the patch


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

0 Kudos
Zass1
Contributor
Contributor

Ok, I can't select the patch in the script why ? I have to change the path in the script each time ?

 

0 Kudos