The VMware Host Profiles feature enables you to create standard configurations for ESX and ESXi hosts. With PowerCLI, you can automate creation and modifying of host profiles.

Connect to a host that runs vCenter Server 4.0 or later.

1

Get the host named Host1 and store it in the $host variable.

$host = Get-VMHost Host1
2

Create a profile based on the Host1 host.

New-VMHostProfile -Name MyHostProfile01 -Description "This is my test profile based on Host1." -ReferenceHost $host
3

Get the newly created host profile.

$hp1 = Get-VMHostProfile -Name MyHostProfile01
4

Change the description of the HostProfile1 host profile.

Set-VMHostProfile -Profile $hp1 -Description "This is my old test host profile based on Host1."