VMware Cloud Community
jyhshing
Contributor
Contributor
Jump to solution

Image Builder cmdlet Add-EsxSoftwareDepot?

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

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

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

View solution in original post

0 Kudos
4 Replies
LucD
Leadership
Leadership
Jump to solution

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

0 Kudos
jyhshing
Contributor
Contributor
Jump to solution

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.

0 Kudos
Mohamed_Hamad
Enthusiast
Enthusiast
Jump to solution

Hi All,

can i use the PowerCLI version 1.0 to execute the same command ???

thanks

Mohamed Hamad
0 Kudos
LucD
Leadership
Leadership
Jump to solution

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

0 Kudos