Hi Readers,
In previous articles, we have setup a demo environment for Microsoft Dynamics 365 Business Central 2019 Wave 2 Release.
In this article, we will discuss how to check and change the license in the 2019 Wave 2 database.
This article is based on the request from @Rihan Sharma.
With Business Central 2019 Wave 2, as there is no development environment we cannot change the license and there is no windows client so we cannot check what license we are setup in the database.
Here comes Powershell our old friend that will help us with all this. Let's see step by step process.
1. Search & start Powershell ISE as administrator (Not Powershell ISE x86) as everything is 64 bit.
2. Import-Module for Business Central Wave 2 and refresh command panel on the right.
Import-Module 'C:\Program Files\Microsoft Dynamics 365 Business Central\150\Service\NavAdminTool.ps1'
3. Search and use cmdlet Export-NAVServerLicenseInformation to check the license in the database with Service Instance Name.
Export-NAVServerLicenseInformation -ServerInstance <ServiceName>
** Change <ServiceName> with actual service instance name.
4. Next to Change License we can use the cmdlet Import-NAVServerLicense with parameters of service name and the license file path.
Import-NAVServerLicense -LicenseFile <FilePath> -ServerInstance <ServiceName>
** Change <ServiceName> with actual service instance name.
** Change <FilePath> with actual path of the license file.
5. As we all know after changing license we need to restart the nav service. Use cmdlet Restart-NAVServerInstance to restart nav service to update license in the database.
Restart-NAVServerInstance -ServerInstance <ServiceName>
** Change <ServiceName> with actual service instance name.
Hope you find the information useful.
Let me know your views as a comment on this article.
Stay tuned for more.
Regards,
Saurav Dhyani
www.sauravdhyani.com
In previous articles, we have setup a demo environment for Microsoft Dynamics 365 Business Central 2019 Wave 2 Release.
In this article, we will discuss how to check and change the license in the 2019 Wave 2 database.
This article is based on the request from @Rihan Sharma.
With Business Central 2019 Wave 2, as there is no development environment we cannot change the license and there is no windows client so we cannot check what license we are setup in the database.
Here comes Powershell our old friend that will help us with all this. Let's see step by step process.
1. Search & start Powershell ISE as administrator (Not Powershell ISE x86) as everything is 64 bit.
2. Import-Module for Business Central Wave 2 and refresh command panel on the right.
Import-Module 'C:\Program Files\Microsoft Dynamics 365 Business Central\150\Service\NavAdminTool.ps1'
3. Search and use cmdlet Export-NAVServerLicenseInformation to check the license in the database with Service Instance Name.
Export-NAVServerLicenseInformation -ServerInstance <ServiceName>
** Change <ServiceName> with actual service instance name.
4. Next to Change License we can use the cmdlet Import-NAVServerLicense with parameters of service name and the license file path.
Import-NAVServerLicense -LicenseFile <FilePath> -ServerInstance <ServiceName>
** Change <ServiceName> with actual service instance name.
** Change <FilePath> with actual path of the license file.
5. As we all know after changing license we need to restart the nav service. Use cmdlet Restart-NAVServerInstance to restart nav service to update license in the database.
Restart-NAVServerInstance -ServerInstance <ServiceName>
** Change <ServiceName> with actual service instance name.
Hope you find the information useful.
Let me know your views as a comment on this article.
Stay tuned for more.
Regards,
Saurav Dhyani
www.sauravdhyani.com
Hi Saurav,
ReplyDeleteFacing below error while running command Import-Module 'C:\Program Files\Microsoft Dynamics 365 Business Central\150\Service\NavAdminTool.ps1'
Import-Module : File C:\Program Files\Microsoft Dynamics 365 Business Central\150\Service\NavAdminTool.ps1 cannot be
loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at
https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ Import-Module 'C:\Program Files\Microsoft Dynamics 365 Business Centr ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [Import-Module], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess,Microsoft.PowerShell.Commands.ImportModuleCommand
You Need to set Execution Policy before running commands from Powershell.
Deleteuse command - Set-ExecutionPolicy RemoteSigned -Force
Thanks Its working.
DeleteSo beautiful. Thanks
ReplyDelete