Datasheet

32 CHAPTER 1
AUTOMATING VCENTER SERVER DEPLOYMENT AND CONFIGURATION
.NOTES
Source: Automating vSphere Administration
Authors: Luc Dekens, Arnim van Lieshout, Jonathan Medd,
Alan Renouf, Glenn Sizemore
.EXAMPLE 1
PS> Get-LicenseKey
#>
Process {
$servInst = Get-View ServiceInstance
$licMgr = Get-View `
(Get-View ServiceInstance).Content.licenseManager
$licMgr.Licenses
}
}
Get-LicenseKey
Each of the existing license keys will be returned in an output listing like this:
LicenseKey : 00000-00000-00000-00000-00000
EditionKey : eval
Name : Product Evaluation
Total : 0
Used : 0
CostUnit :
Properties :
Labels :
DynamicType :
DynamicProperty :
LicenseKey : AAAAA-BBBBB-CCCCC-DDDDD-EEEEE
EditionKey : esxEnterprisePlus
Name : vSphere 4 Enterprise Plus
Total : 0
Used : 2
CostUnit : cpuPackage:12core
Properties : {ProductName, ProductVersion, feature...}
Labels :
DynamicType :
890790c01.indd 32890790c01.indd 32 3/3/11 10:22:16 AM3/3/11 10:22:16 AM