8.0

Table Of Contents
Prerequisites
n Verify that the image profile you want to use to reprovision the host is available. Use vSphere
ESXi Image Builder in a PowerCLI session. See Customizing Installations with vSphere ESXi
Image Builder.
n Verify that the setup you performed during the first boot operation is in place.
Procedure
1 At the PowerShell prompt, run the Connect-VIServer PowerCLI cmdlet to connect to the
vCenter Server system that vSphere Auto Deploy is registered with.
Connect-VIServer ipv4_or_ipv6_address
The cmdlet might return a server certificate warning. In a production environment, make
sure no server certificate warnings result. In a development environment, you can ignore the
warning.
2 Determine the location of a public software depot that contains the image profile that you want
to use, or define a custom image profile with vSphere ESXi Image Builder.
3 Run Add-EsxSoftwareDepot to add the software depot that contains the image profile to the
PowerCLI session.
Depot Type
Cmdlet
Remote depot Run Add-EsxSoftwareDepot depot_url.
ZIP file a Download the ZIP file to a local file path or create a mount point local to
the PowerCLI machine.
b Run Add-EsxSoftwareDepot C:\file_path\my_offline_depot.zip.
4 Run Get-EsxImageProfile to see a list of image profiles, and decide which profile you want
to use.
5 Run Copy-DeployRule and specify the ReplaceItem parameter to change the rule that
assigns an image profile to hosts.
The following cmdlet replaces the current image profile that the rule assigns to the host with
the
my_new_imageprofile
profile. After the cmdlet completes, myrule assigns the new image
profile to hosts. The old version of myrule is renamed and hidden.
Copy-DeployRule myrule -ReplaceItem my_new_imageprofile
VMware ESXi Installation and Setup
VMware, Inc. 162