How to Upload a License to Dynamics 365 Business Central On-Premise

Here you can learn how to upload the license file to Microsoft D365 BC or Dynamics NAV using Administration Shell or PowerShell. Follow the below simple steps.

Upload the license using Business Central Administration Shell

  1. Run Business Central Administration Shell as an Administrator.
  2. Execute the following command to import the license file:
    Import-NAVServerLicense -ServerInstance <server instance> -LicenseFile "<path to the license>"
    Follow the below example:
    Import-NAVServerLicense -ServerInstance BC190 -LicenseFile "c:\licenses\license.flf"
  3. Restart the server instance using following command or Business Central Administration tool:
    Restart-NAVServerInstance -ServerInstance <server instance>

Upload the license using Windows PowerShell

  1. Run the Windows PowerShell as an Administrator.
  2. Import the module NavAdminTool.PS1.
    This can be found in the service folder of the related version. You can execute the following command with an example to import the module:
    Import-Module "C:\Program Files\Microsoft Dynamics 365 Business Central\190\Service\NavAdminTool.ps1"
  3. Execute the following command to import the license as done in the previous method:
    Import-NAVServerLicense -ServerInstance <server instance> -LicenseFile "<path to the license>"
  4. Restart the server instance using following command or Business Central Administration tool:
    Restart-NAVServerInstance -ServerInstance <server instance>

Solution for error NotSpecified: (0:Int32) [Import-NAVServerLicense], FaultException`1

When uploading the license to the latest versions of Business Central you have to mention the Database parameter else the error: “CategoryInfo : NotSpecified: (0:Int32) [Import-NAVServerLicense], FaultException`1” can be thrown. Follow the below example of adding the Database parameter.

Import-NAVServerLicense -ServerInstance BC190 -LicenseFile "c:\licenses\license.flf" -Database NavDatabaseCode language: JavaScript (javascript)

Here are the options for the Database parameter from the Microsoft documentation:

  1. Default:
    Default; overrides the license file currently in use.
  2. Master:
    Forces the license file to be global.
  3. NavDatabase:
    Forces the license file to be local and stored in the Microsoft Dynamics NAV database that is used by the specified Microsoft Dynamics NAV Server instance.
  4. Tenant:
    Forces the license file to be local and stored in the Microsoft Dynamics NAV database that is used by the tenant that is specified in the Tenant parameter.

To check the uploaded license file, visit the previous guide about how to view license information in Dynamics D365 Business Central.

Senior Solutions Architect - Microsoft Dynamics Navision / Microsoft Dynamics 365 Business Central and freelance developer. (The admin of NAVUSER)

Leave a Comment