web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

Import Nav-EncrytionKEy

(1) ShareShare
ReportReport
Posted on by 18
Hi,
 
I have problem when i try to import my nav encryption key.
 
This is the code of Power Shell:
Write-Host /Creating SQL Server Encryption Key/$ServiceTierFolder = 'C://ProgramData//Microsoft//Microsoft Dynamics NAV//220//Server//Keys//'$SQLEncryptKey =  Join-Path $ServiceTierFolder 'BC22_NAVARRO_PRE.key'$Password = 'pasword'New-NAVEncryptionKey -KeyPath $SQLEncryptKey -Password (ConvertTo-SecureString -AsPlainText -Force $Password) -Force$TrustSQLServerCertificate = $true$NewBcServerInstance = 'BC22_NAVARRO_PRE'$DatabaseServer = 'database.server'$ApplicationDatabase = 'BC22_NAVARRO_PRE'                       $pwd = ConvertTo-SecureString 'password' -AsPlainText -Force$dbcred = New-Object System.Management.Automation.PSCredential (/user/, $pwd)Write-Host /Importing Encryption Key/Import-NAVEncryptionKey -ServerInstance $NewBcServerInstance -ApplicationDatabaseServer $DatabaseServer -ApplicationDatabaseCredentials $dbcred -ApplicationDatabaseName $ApplicationDatabase -KeyPath $SQLEncryptKey -Password (ConvertTo-SecureString -AsPlainText -Force $Password) -Force -Verbose
And this is the error:
Creating SQL Server Encryption KeyC://ProgramData//Microsoft//Microsoft Dynamics NAV//220//Server//Keys//BC22_NAVARRO_PRE.keyImporting Encryption KeyDETALLADO: Se está realizando la operación /Import-NAVEncryptionKey/ en el destino /ServerInstance = MicrosoftDynamicsNavServer$BC22_NAVARRO_PRE, KeyPath = C://ProgramData//Microsoft//Microsoft Dynamics NAV//220//Server//Keys//BC22_NAVARRO_PRE.key/.ADVERTENCIA: UnhandledErrorMessageImport-NAVEncryptionKey : Sintaxis no válida en la línea 13.En línea: 18 Carácter: 1+ Import-NAVEncryptionKey -ServerInstance $NewBcServerInstance -Applica ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    + CategoryInfo          : NotSpecified: (:) [Import-NAVEncryptionKey], XmlSyntaxException    + FullyQualifiedErrorId : System.Security.XmlSyntaxException,Microsoft.Dynamics.Nav.Management.Cmdlets.ImportNavEncryptionKey
 
 
 
Thank you soo much
 
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,060 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,086 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 700 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans