Get-EsxImageProfile Error

I use autodeploy where I work at and use image builder to build images for autodeploy.  I have been doing this for years and have the process documented well so other co-workers can use when I leave.

First thing I always do is connect to the online VMware depot :

Add-EsxSoftwareDepot -DepotUrl

Then I run the Get-EsxImageProfile command to show the latest image profiles.  But this time I received the following error :

get-esximageprofile errorSo after some google searching I found that it is a known issue in Powercli 5.5 r2 Release notes .  So it tells you to run – Get-EsxImageProfile -name “ESXi-5.x*”, but that did not work for me.  I still received the same error.

So I did some more google searching and found this VMware knowledge base article .  It said after you run the command and receive the error message, you need to close the powercli window and open a new window and then run the – Get-EsxImageProfile -name “ESXi-5.x*” command.

After I opened a new window and ran the command, it worked for me.

get-imagageprofile-error-03If you run the command Get-EsxImageProfile without the -name, you will receive the error message again and you will have to close and reopen your powercli window.

As long as you use the -name with the Get-EsxImageProfile you will not have any problems.  Hopefully a fix will be provided soon.


1 thought on “Get-EsxImageProfile Error

  1. I am seeing exactly the same thing, only without being able to get it to run at all. I tried running the commands as you’d shown, closing out the window, then re-opening a session, inputting the Get-EsxImageProfile -name “ESXi-5.x* , but still coming out with similar output. This is a major drag!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s