Hi Expert.
Recently we need create NLB load balance, we create two new servers,and get ready to create new NAS instance with the same key of the server 1, But when i finished the server 1, and exported the key ,then import to the server 2, use the command below
PS C:\Windows\system32> Import-NAVEncryptionKey -ServerInstance DynamicsNAV90 -KeyPath “C:\Keys\nav.key” - ApplicationDa
tabaseServer abiewaaaa.database.chinacloudapi.cn -ApplicationDatabaseName NavApp -Password (Get-Credential).Password
But I got the error below
Import-NAVEncryptionKey : A positional parameter cannot be found that accepts argument ‘-’.
At line:1 char:1
- Import-NAVEncryptionKey -ServerInstance DynamicsNAV90 -KeyPath "C:\Ke …
-
- CategoryInfo : InvalidArgument: ( [Import-NAVEncryptionKey], ParameterBindingException
- FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.Dynamics.Nav.Management.Cmdlets.ImportNavEncryptio
nKey
Any suggestion will be warmly appriciated.
Gary.