Announcements
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
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
André Arnaud de Cal...
294,060
Super User 2025 Season 1
Martin Dráb
232,858
Most Valuable Professional
nmaenpaa
101,158
Moderator