powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Export-EsxImageProfile



NAME
Export-EsxImageProfile

SYNOPSIS


SYNTAX
Export-EsxImageProfile [-ImageProfile] [-FilePath] -ExportToIso [-Force] [-NoSignatureCheck
] [-RunAsync] [-WarningAction ] [-WarningVariable ] []

Export-EsxImageProfile [-ImageProfile] [-FilePath] -ExportToBundle [-Force] [-NoSignatureCh
eck] [-RunAsync] [-WarningAction ] [-WarningVariable ] []


DESCRIPTION
Exports an Image Profile object as either an ESXi ISO image that can be booted up and used as an ESXi installer, or
an offline depot ZIP file that contains metadata plus the VIB packages. In both cases, downloads the VIB binaries
and validates the VIB signatures.


You can perform the following tasks with the offline depot ZIP file:


*Import the ZIP into VMware Update Manager for patch remediation
*Download the ZIP to an ESXi host and used with esxcli for installation
*Re-import the ZIP into ImageBuilder itself using Add-EsxSoftwareDepot


You can specify either -ExportToIso or -ExportToBundle but not both.


PARAMETERS
-ImageProfile
(pipeline input, prompt) Specifies the image profile to export.
Takes one of the following forms:
*Name of an image profile, as displayed in the Name column of Get-EsxImageProfile, or the Name property of any
ImageProfile object
*ImageProfile object

Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-FilePath
Required; specifies the destination for the ISO or the ZIP file path. Include the extension, either .iso or .z
ip. Offline depots must be named with .zip at the end. If the file already exists, it will not be overwritten
unless -Force is specified.

Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false

-ExportToIso


Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Force
Optional. If specified, the cmdlet overwrites an existing destination file with the same name.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-NoSignatureCheck
Optional. If specified, disables VIB signature validation. The use of this option may lead to debilitating sec
urity vulnerabilities.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-RunAsync


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WarningAction


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WarningVariable


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-ExportToBundle


Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS



NOTES




---------- Example 1 ----------

C:\PS>Export-EsxImageProfile -ImageProfile "Evan's Profile" -ExportToIso -FilePath c:\isos\evans-iso.iso


Export an ISO image

---------- Example 2 ----------

C:\PS>New-EsxImageProfile -CloneProfile "ESXi-5.0.0-234567-standard" -Name "Evan's Profile"
Add-EsxSoftwarePackage -ImageProfile "Evan's Profile" -SoftwarePackage cisco-vem-v140
Export-EsxImageProfile -ImageProfile "Evan's Profile" -ExportToBundle -FilePath c:\isos\base-plus-vem.zip


Clone an image profile, add a software package, then export to offline bundle.


RELATED LINKS