Hi,
I am trying to setup and run image builder and am following the VMware site Image Builder documentation.
After installing the 5.0 version of the PowerCLI on Windows 7 and starting PowerCLI, I tried the command syntax below.
Add-EsxSoftwareDepot -DepotUrl C:\file_path\offline-bundle.zip
But I got an error indicating:
The Term 'Add-EsxSoftwareDepot' is not recognized as the name of a cmdlet....
What still needs to be set up in order to get the cmdlet Add-EsxSoftwareDepot?
Thanks,
Jyh-shing
Is the ImageBuilder pssnapin loaded in your session ?
Do a
Get-PSSnapin
The output should contain a line saying "VMware.ImageBuider".
If it doesn't, do this
Add-PsSnapin VMware*
and the new snapins should be loaded.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Is the ImageBuilder pssnapin loaded in your session ?
Do a
Get-PSSnapin
The output should contain a line saying "VMware.ImageBuider".
If it doesn't, do this
Add-PsSnapin VMware*
and the new snapins should be loaded.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Indeed, the output from Get.PSSnapin command did not contain the VMware.ImageBuilder in the list.
After issuing Add-PsSnapin VMware*, the Add-EsxSoftwareDepot command is available.
Thanks for the help.
Hi All,
can i use the PowerCLI version 1.0 to execute the same command ???
thanks
Yes, the cmdlet is available in PS v1.
But I would strongly suggest to upgrade to PS v2.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference