Looking over PowerCLI documentation, trying to use Get-LCMImage to store a particular version of VMware Tools to a variable
The following is a snippet from the manual
VMware PowerCLI User's Guide -
The following is the closest I've come after several attempts, takes a while to run but then comes back with an error
PS C:\Windows\system32> $esxiCompToolsPackage = Get-LcmImage -Id 'Component-VMware Tools Async Release/12.3.5'
Get-LcmImage : 12/3/2023 7:11:43 PM Get-LcmImage No vLCM image with id 'Component-VMware Tools Async Release/12.3.5' found.
At line:1 char:25
+ ... lsPackage = Get-LcmImage -Id 'Component-VMware Tools Async Release/12 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (:) [Get-LcmImage], VimException
+ FullyQualifiedErrorId : ViCore_GetLcmImage_DoWork_IdNotFound,VMware.VimAutomation.ViCore.Cmdlets.Commands.Lcm.GetLcmImage