7.0

Table Of Contents
2 View the itemlist property of the object to see the difference between what is in the rule set
and what the host is currently using.
$tr.itemlist
3 Remediate the host to use the revised rule set by using the Repair-
DeployRuleSetCompliance cmdlet with the variable.
Repair-DeployRuleSetCompliance $tr
The example remediates the host the next time you boot the host.
Set Up Bulk Licensing
You can use the vSphere Client or ESXi Shell to specify individual license keys, or you can set up
bulk licensing by using PowerCLI cmdlets. Bulk licensing works for all ESXi hosts, but is especially
useful for hosts provisioned with vSphere Auto Deploy.
Assigning license keys through the vSphere Client and assigning licensing by using PowerCLI
cmdlets function differently.
Assign license keys with the vSphere Client
You can assign license keys to a host when you add the host to the vCenter Server system or
when the host is managed by a vCenter Server system.
Assign license keys with LicenseDataManager PowerCLI
You can specify a set of license keys to be added to a set of hosts. The license keys are
added to the vCenter Server database. Each time a host is added to the vCenter Server
system or reconnects to it, the host is assigned a license key. A license key that is assigned
through PowerCLI is treated as a default license key. When an unlicensed host is added or
reconnected, it is assigned the default license key. If a host is already licensed, it keeps its
license key.
The following example assigns licenses to all hosts in a data center. You can also associate licenses
with hosts and clusters.
The following example is for advanced PowerCLI users who know how to use PowerShell
variables.
Prerequisites
Prepare Your System for vSphere Auto Deploy.
Procedure
1 In a PowerCLI session, connect to the vCenter Server system you want to use and bind the
associated license manager to a variable.
Connect-VIServer -Server 192.XXX.X.XX -User username -Password password
$licenseDataManager = Get-LicenseDataManager
VMware ESXi Installation and Setup
VMware, Inc. 128