I apologize in advance if this has been answered elsewhere, but I am new here and my search yielded no results.
I am attempting to make an ISO with the latest updates included, but I am running into problems. In the instructions I am using (which can be found here - Create an ESXi ISO that contains all Patches | Virten.net ) says:
In the PowerCLI console Add the Software Depot
PowerCLI C:\> cd c:\tmp
PowerCLI C:\tmp> Add-EsxSoftwareDepot <update_File_Name.zip>
It should give the following output:
Depot Url
---------
zip:C:\tmp\ESXi550-201412001.zip?index.xml
However it appears I do not have that command available and have been unable to determine how to get it. When I run the command I get the following output:
PS C:\> Add-EsxSoftwareDepot ESXi650-201704001.zip
Add-EsxSoftwareDepot : The term 'Add-EsxSoftwareDepot' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:1
+ Add-EsxSoftwareDepot ESXi650-201704001.zip
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Add-EsxSoftwareDepot:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Can anyone point me in the right direction to get past this issue? Thanks in advance!
You didn't mention which PowerCLI version you are using.
If it is 6.5.1, did you do teh following before following the instructions?
Get-Module -Name VMware* -ListAvailable | Import-Module
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I believe I had done that but for good measure I just did it again and I still get the error:
Oh and I forgot again - it is version 6.5.0.234.
And thanks for the reply!
I have 6.5.1, and for me it seems to be working.
Can you check if you have the ImageBuilder module loaded?
Can you try if it is in PSSnapin? Do a 'Get-PSSnapin -Registered'
Eventually try to upgrade to 6.5.1, that's only modules!
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
No Joy. ![]()
Tried again with same results.
But hold on, the Get-Module didn't return anything.
Did you add the PowerCLI modules to the $PSModulePath variable?
Or did you place them in a folder that is already in that variable?
Kyle did a great post in PowerCLI 6.5.1 Installation Walkthrough
I suggest you follow that one and upgrade to PowerCLI 6.5.1
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I am actually doing it right now. ![]()
So I was following @kmruddy's install guide and I think something went wrong. I get to the point where we issue the Get-module command but I do not get the same results that he is showing:
My Results:
PS H:\> Get-Module
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Manifest 3.1.0.0 Microsoft.PowerShell.Management {Add-Computer, Add-Content, Checkpoint-Computer, Clear-Content...}
Manifest 3.1.0.0 Microsoft.PowerShell.Utility {Add-Member, Add-Type, Clear-Variable, Compare-Object...}
Binary 1.0.0.1 PackageManagement {Find-Package, Find-PackageProvider, Get-Package, Get-PackageProvider...}
Script 1.0.0.1 PowerShellGet {Find-DscResource, Find-Module, Find-Script, Get-InstalledModule...}
Script 1.1 PSReadline {Get-PSReadlineKeyHandler, Get-PSReadlineOption, Remove-PSReadlineKeyHandler, Set-PSReadlineKeyHandler...}
His results:
I seem to be missing:
Manifest 3.1.0.0 Microsoft.PowerShell.Security
Manifest 3.1.0.0 Microsoft.WSMan.Management
And I have other entries that he does not. Now forgive me if this seems like a dumb thing to point out, but as I said before I am new to this. Thank you for any insight!
For PowerCLI we are not really interested in other modules than the ones whose name stars with VMware.
Unfortunately in your screenshot, I can't see the folder where these VMware* modules are located (the parent foldername).
To have this working the directory needs to be in the $env:PSModulePath variable.
Can you chekc the paren t directory, and then the content of the variable?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I believe you path you are asking about is C:\Users\jsantiago.AASYS\Documents\WindowsPowerShell\Modules
This path is found in the PSModulePath:
PSModulePath C:\Users\jsantiago.AASYS\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
Also when I look at what is available low and behold:
PS H:\> Get-Module VMware* -ListAvailable
Directory: C:\Users\jsantiago.AASYS\Documents\WindowsPowerShell\Modules
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Binary 6.5.1.5... VMware.DeployAutomation {Add-DeployRule, Add-ProxyServer, Add-ScriptBundle, Copy-D...
Binary 6.5.1.5... VMware.ImageBuilder {Add-EsxSoftwareDepot, Add-EsxSoftwarePackage, Compare-Esx...
Manifest 6.5.1.5... VMware.PowerCLI
Binary 6.5.1.5... VMware.VimAutomation.Cis.Core {Connect-CisServer, Disconnect-CisServer, Get-CisService}
Binary 6.5.1.5... VMware.VimAutomation.Cloud {Add-CIDatastore, Connect-CIServer, Disconnect-CIServer, G...
Manifest 6.5.1.5... VMware.VimAutomation.Common
Binary 6.5.1.5... VMware.VimAutomation.Core {Add-PassthroughDevice, Add-VirtualSwitchPhysicalNetworkAd...
Binary 6.0.0.5... VMware.VimAutomation.HA Get-DrmInfo
Binary 7.1.0.5... VMware.VimAutomation.HorizonView {Connect-HVServer, Disconnect-HVServer}
Binary 6.5.1.5... VMware.VimAutomation.License Get-LicenseDataManager
Binary 6.5.1.5... VMware.VimAutomation.PCloud {Connect-PIServer, Disconnect-PIServer, Get-PIComputeInsta...
Manifest 1.0.0.5... VMware.VimAutomation.Sdk {Get-PSVersion, Get-InstallPath}
Binary 6.5.1.5... VMware.VimAutomation.Srm {Connect-SrmServer, Disconnect-SrmServer}
Binary 6.5.1.5... VMware.VimAutomation.Storage {Copy-VDisk, Export-SpbmStoragePolicy, Get-NfsUser, Get-Sp...
Script 1.0 VMware.VimAutomation.StorageUtility Update-VmfsDatastore
Binary 6.5.1.5... VMware.VimAutomation.Vds {Add-VDSwitchPhysicalNetworkAdapter, Add-VDSwitchVMHost, E...
Binary 6.5.1.5... VMware.VimAutomation.vROps {Connect-OMServer, Disconnect-OMServer, Get-OMAlert, Get-O...
Binary 6.5.1.5... VMware.VumAutomation {Add-EntityBaseline, Copy-Patch, Get-Baseline, Get-Complia...
So I was able to go from there and
I have created the image now I just have to test it! Thank you so much for your help and patience with a n00b. You are a great resource!
You're welcome!
Good luck with the testing
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
