Scenario 26

< Back

Scenario:

You are the administrator of a large vSphere environment. You need to develop an automated method for applying licenses in your vSphere environment. You want to use PowerCLI and LicenseDataManager to facilitate this.

Requirements:

Environment Information:

Objective: : 9.2 Install ESXi Hosts Using Auto Deploy

Guide Reference(s):

 

Click Here For Solution

 

Solution

$licenseKeyEntry = New-Object Vmware.VimAutomation.License.Types.LicenseKeyEntry

$licenseKeyEntry.TypeId = "vmware-vsphere"

$licenseKeyEntry.LicenseKey = "6540M-Z8L44-68341-0U1R0-1XNQ4"