Datasheet
LICENSING 33
Install, Con gure, and
Manage the vSphere
Environment
PART I
DynamicProperty :
LicenseKey : AAAAA-BBBBB-CCCCC-DDDDD-EEEEE
EditionKey : vc
Name : vCenter Server 4 Standard
Total : 0
Used : 1
CostUnit : server
Properties : {ProductName, ProductVersion, feature...}
Labels :
DynamicType :
DynamicProperty :
Licensing a Host
Once you have a list of the keys, you can use that information to license the ESX hosts
attached to the vCenter Server. Listing 1.14 shows how you set the license key for a
speci c host.
LISTING 1.14
Adding a license key to a host
Function Set-LicenseKey {
<#
.SYNOPSIS
Sets a License Key for a host
.DESCRIPTION
This function will set a license key for a host
which is attached to a vCenter Server
.NOTES
Source: Automating vSphere Administration
Authors: Luc Dekens, Arnim van Lieshout, Jonathan Medd,
Alan Renouf, Glenn Sizemore
.PARAMETER LicKey
The License Key
.PARAMETER VMHost
The vSphere host to add the license key to
.PARAMETER Name
The friendly name to give the license key
.EXAMPLE 1
PS> Set-LicenseKey -LicKey “AAAAA-BBBBB-CCCCC-DDDDD-EEEEE” `
890790c01.indd 33890790c01.indd 33 3/3/11 10:22:16 AM3/3/11 10:22:16 AM