vSphere ESXi Image Builder cmdlet 可讓您管理映像設定檔和 VIB。

vSphere ESXi Image Builder 包含下列 cmdlet。
備註: 執行 vSphere ESXi Image Builder cmdlet 時,請在叫用 cmdlet 時於命令列上提供所有參數。不建議以互動模式提供參數。

如需詳細的參考資訊,請在 PowerCLI 提示字元中執行 Get-Helpcmdlet_name

表 1. vSphere ESXi Image Builder Cmdlet
Cmdlet 說明
Add-EsxSoftwareDepot 將指定位置的軟體存放庫或 ZIP 檔案新增到目前環境。從存放庫下載中繼資料,並分析 VIB 的相依性。
Remove-EsxSoftwareDepot 中斷與指定軟體存放庫的連線。
Get-EsxSoftwareDepot 傳回目前環境中軟體存放庫的清單。如果您想要檢查並管理映像設定檔和 VIB,您必須先將對應的軟體存放庫新增到環境。
Get-EsxSoftwarePackage 傳回軟體套件物件 (VIB) 的清單。使用此 cmdlet 的選項篩選結果。
Get-EsxImageProfile 從目前新增的所有存放庫傳回 ImageProfile 物件的陣列。
New-EsxImageProfile 建立新的映像設定檔。在大多數情況下,建議透過複製現有的設定檔來建立新設定檔。請參閱 複製映像設定檔
Set-EsxImageProfile 修改本機 ImageProfile 物件並對已修改的設定檔執行驗證測試。cmdlet 會傳回已修改的物件,但不會加以保留。
Export-EsxImageProfile 將映像設定檔匯出為 ESXi 安裝的 ESXi ISO 映像,或匯出為 ZIP 檔案。
Compare-EsxImageProfile 傳回 ImageProfileDiff 結構,顯示這兩個設定檔是否具有相同的 VIB 清單和接受程度。請參閱 接受程度
Remove-EsxImageProfile 從軟體存放庫中移除映像設定檔。
Add-EsxSoftwarePackage 將一或多個新套件 (VIB) 新增到現有映像設定檔。
Remove-EsxSoftwarePackage 從映像設定檔中移除一或多個套件 (VIB)。