Install-LXCAQuantityLicense
This cmdlet uploads and installs one or more license activation keys in the Lenovo XClarity Administrator server. You can import and install each license-activation key individually or multiple key bundled in a zip archive.
Note
You cannot pipe objects to this cmdlet.
Syntax
Install-LXCAQuantityLicense [-Connection LXCAConnection]
-LicenseFile string
[CommonParameter]
Parameters
- -Connection LXCAConnection
- Specifies the connection to the Lenovo XClarity Administrator server. If no connection is specified, the result from the last Connect-LXCA cmdlet is used.
- -LicenseFile string
- Specifies the full path and file name of the license activation key or zip archive to be uploaded and installed.
- CommonParameters
- This cmdlet supports the following common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -WarningAction, -WarningVariable, -OutBuffer, -PipelineVariable, -OutVariable. For detailed information about each common parameter, see the Microsoft PowerShell Common Parameters webpage.
Results
Lenovo.SysMgmt.LXCA.Integration.Data.QuantityLicenseInstallResult
This cmdlet returns a Lenovo.SysMgmt.LXCA.Integration.Data.QuantityLicenseInstallResult object, that contains information about the operation result on the XClarity Administrator server.
Examples
The following example uploads and installs a license activation key C:\LXCA\lxcaLicense.key in the XClarity Administrator server
$cred = Get-Credential
Connect-LXCA -Host 1.111.11.11 -Credential $cred
$result = Install-LXCAQuantityLicense -LicenseFile C:\LXCA\lxcaLicense.key
# show all information about the request:
$result
$result.InstallInfo
Disconnect-LXCA
Give documentation feedback