Install licenses from the command line

Install and verify the statuses of seat or concurrent licenses directly from the command line.

Enter the following command, followed by a set of parameters described below.

"<UFT installation directory>\bin\HP.UFT.LicenseInstall.exe"

Install a Seat license (command line)

Add one of the following to install a UFT seat license:

  • seat "<license key string>"
  • seat "<path to the license key file"

For example:

Install a seat license key from a file saved locally:

"C:\Program Files (x86)\HPE\UFT \bin\HP.UFT.LicenseInstall.exe" seat "Downloads\HP UFT-licfile.dat"

Install a seat license key from a license key string:

"C:\Program Files (x86)\HPE\UFT\bin\HP.UFT.LicenseInstall.exe" seat "9CDG C9MA H9P9 8HW3 UXB5 HWWF Y9JL KMPL B89H MZVU 6R4Q LHWE JHRP 3FQ3 CMRG HPMR MFVU A5K9 MWEC EKW9 HKDU LWWP SRL7 QPJQ YMM5 YQVW NV6G AG2A QZWD HY9B N4ZF BGWB B8GX 7YRF T8XT W7VB QW54 G83H 2TRY KBTD EQUZ M8LB DZU7 WE6H 4NMU BG55 4XKB 27LX ATQB UKF8 3F9N JQY5 \" HPE Unified Functional Testing Seat User

Note: If the license key contains a quotation mark character (") in the license key string, add a backslash character (\) before the quotes.

Back to top

Install a Concurrent license (command line)

Add the following to install a UFT concurrent license:

concurrent <license ID> <license version> <server name/address> [<redundant server name/address>] [/force]

Use the following format for the server or redundant server name/address:

<license server address>:<port>

Default port = 5814

The address format must identical the one used in the Main tab of the License Server Configuration pane.

For details, see the Autopass License Server User Guide.

For example:

"C:\Program Files (x86)\HPE\UFT\bin\HP.UFT.LicenseInstall.exe" concurrent 11.11.111.111:5814 /force

/force parameter

The /force parameter saves the license installation information even if the current installation fails.

In subsequent sessions, LeanFT will check the listed license server for the listed license.

Optional parameters

Optional parameters include:

  • port
  • redundant server name/address
  • force

Back to top

Modify server connection details

Add one of the following:

Modify the primary License Server address
config protocol.primary <http/https>
Modify the secondary License Server address
config protocol.second <http/https>

Back to top

Verify available licenses

Add the following:

licenses <server name/address> [<redundant server name address>]

For example:

"C:\Program Files (x86)\HPE\UFT\bin\HP.UFT.LicenseInstall.exe" licenses 11.11.111.111:5814

Back to top