# Add a License

{% hint style="info" %}
During installation you have the option to add license keys from the installer wizard. However, if you skipped that step or want to add additional keys, you can follow the steps below to add them from the Adaptiva Admin Portal
{% endhint %}

After the Adaptiva Server setup is complete, enable one of the evaluation licenses or install your Adaptiva-provided license key to enable the product. This will activate the product and prepare to license clients. License keys can only be added via the Adaptiva Admin Portal.

1. In a web browser, enter the Adaptiva Server Admin Portal URL: `https://AdaptivaServerFQDN[:Port]`.
2. At the Adaptiva Web Portal, click **Log in with Active Directory**. If an Adaptiva login account was created, enter the email address and password created during installation and click **Log in**.

   * If you are using Mozilla Firefox, see Resolve the [Mozilla Firefox Active Directory Login Issue](https://support.adaptiva.com/hc/en-us/articles/37109022499341-Resolve-the-Mozilla-Firefox-Active-Directory-Login-Issue) KB article.

   ![Admin Portal Login](https://1238239958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzBcNZqjCKqgdpA83eD4o%2Fuploads%2Fgit-blob-9670fd68c09a474c6b447f031397aa51830ad470%2Fimage38.png?alt=media)
3. After logging in, the Adaptiva Web Portal will be displayed. A license must be added to activate the features of that product in the Adaptiva Web Portal.

   ![Admin Portal](https://1238239958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzBcNZqjCKqgdpA83eD4o%2Fuploads%2Fgit-blob-995aee2f209747c3debf121b59143a34d8c7bfc2%2Fimage39.png?alt=media)
4. Click **Manage Licenses**.

   ![Manage Licenses](https://1238239958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzBcNZqjCKqgdpA83eD4o%2Fuploads%2Fgit-blob-3439e2f2c96e06c9ad3b38251c8fff71bea7c7da%2Fimage40.png?alt=media)
5. Click **Add Key**, enter your license key, and click **OK**.
6. Optionally, click **Start Free Trial**, select the product you wish to preview and click **OK**.
7. You will be prompted to Accept an End User License Agreement. Click **Accept**.
8. Your Adaptiva products will be listed on the left, with license details in the right pane.
9. Select an Adaptiva product to review the current license status.

   ![License Status](https://1238239958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzBcNZqjCKqgdpA83eD4o%2Fuploads%2Fgit-blob-ee345f9c8763d14999b27c51b4e5021d6d0022bd%2Fimage41.png?alt=media)

   * Notice the **License Count**, **Expiration Date** and specific **Licensed Collections** of devices targeted to receive the license.

## Target Clients for Licensing

1. In the Target Collections pane, target which clients will receive this license.
2. Toggle **Use All Clients**. In the confirmation window, click **OK**.
3. Optionally, click **Browse** and select a collection or group of clients, then click **OK**.

## Server Activation (OneSite Anywhere only)

Once you receive an activation code from Adaptiva continue with the next steps below. If you have not requested an activation code, see the section Server Activation in the [Installation Prerequisites](https://docs.adaptiva.com/platform-install/install-platform-prerequisites#server-activation-onesite-anywhere-only).

1. In a web browser connect to the Admin Portal -- `http://AdaptivaServerFQDN[:port]`.
2. Enter the appropriate credentials or click on **Login with Active Directory**.
3. Click on the ![gear](https://1238239958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzBcNZqjCKqgdpA83eD4o%2Fuploads%2Fgit-blob-d2b221df2de0048227242eef95b09dda2b96dea1%2Fimage42.png?alt=media) with the drop-down on the far right and select **Settings | Server Activation**.

   ![Server Activation Settings](https://1238239958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzBcNZqjCKqgdpA83eD4o%2Fuploads%2Fgit-blob-832d7bb8b4553f30f6e8f1bde76d514cb3771758%2Fimage43.png?alt=media)
4. On the Server Activation page, click **Activate Server**.
5. Enter the activation code provided by Adaptiva Support and click **OK**.

   ![Activation Code](https://1238239958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzBcNZqjCKqgdpA83eD4o%2Fuploads%2Fgit-blob-5734b64bde7bbca9182e799b703b4b39ec9aa6fd%2Fimage44.png?alt=media)
6. The Adaptiva Server Service will attempt to contact the Adaptiva Cloud Relay Server at [http://services.adaptiva.cloud](http://services.adaptiva.cloud/).
   * If it cannot reach the service using port 80 you will the following error:

     ![Activation Failed](https://1238239958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzBcNZqjCKqgdpA83eD4o%2Fuploads%2Fgit-blob-5816fac7c04d41aeeb1cd9005b357e1223a36e58%2Fimage45.png?alt=media)
   * If it successfully registers with the Adaptiva Cloud Relay Service, the Server activated slider will be slid to the right

     ![Server Activated](https://1238239958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzBcNZqjCKqgdpA83eD4o%2Fuploads%2Fgit-blob-abcc00f55bfad6d0b2b93e6cd71cc94a1e26772a%2Fimage46.png?alt=media)

Note the other information available in the Cloud Connect Adaptiva Server settings screen:

* **Customer name**: This is initially the FQDN of the Adaptiva server. After activation, it will display the name that was entered at the Cloud Relay Server.
* **Global ID**: Unique ID of the Adaptiva Server assigned at registration time
* **Tenant ID**: Unique ID of the Adaptiva Server. Also, part of the certificate issued to the server and make up the server's identity
* **Server GUID**: This uniquely identifies your Adaptiva Server and can be used for client installations. It is required if the client is being installed without connectivity to the Adaptiva Server, requiring the client to validate through the Adaptiva Cloud Relay Service.
