Hi,
I got problem using PowerShell to Create NAVServerInstance in 2013 R2 for ServicesCertificateThumbprint.
When I use the following PowerShell to create new NAVServerInstance
/***
New-NAVServerInstance -ServerInstance A0031 -DatabaseName A0031 -DatabaseServer NAVLAB03
-ManagementServicesPort 8245 -ClientServicesPort 8246 -ODataServicesPort 8248 -SOAPServicesPort 8247
-ServiceAccount 'User' -ServiceAccountCredential $credential
-ClientServicesCredentialType UserName
-ServicesCertificateThumbprint "9e 4d 60 0c 4d ae 76 42 cb 40 84 a3 01 99 e7 04 94 65 ee cc"
****/
The ServerInstance can not be started due to Powershell remove space in ServicesCertificateThumbprint value (replace from "9e 4d 60 0c 4d ae 76 42 cb 40 84 a3 01 99 e7 04 94 65 ee cc" to "9e4d600c4dae7642cb4084a30199e7049465eecc" )
Can anyone know how can resolve the problem?
Thanks.
Best Regard,
Jin
0
Comments
Ben
My problem is I need space in thumbprint value. The status is if I type ServicesCertificateThumbprint "9e 4d 60 0c 4d ae 76 42 cb 40 84 a3 01 99 e7 04 94 65 ee cc" manually. It works. But if I use Power Shell command. The space is removed. it does not work. Thanks.
Best Regard,
Jin Hung
$certificate = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2
$certificate.Import($CertificateFilePath)
and added to your code
New-NAVServerInstance -ServerInstance A0031 -DatabaseName A0031 -DatabaseServer NAVLAB03
-ManagementServicesPort 8245 -ClientServicesPort 8246 -ODataServicesPort 8248 -SOAPServicesPort 8247
-ServiceAccount 'User' -ServiceAccountCredential $credential
-ClientServicesCredentialType UserName
-ServicesCertificateThumbprint $certificate.Thumbprint
Software Design Engineer II
Dynamics NAV Office 365
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.
Just run the command and copy the relevant thumbprint.
I have tried your method. There is no space in the Certificate Thumbprint value.
Then I can not start the NAV instance.
If I use NAV Administrator Tools to modify Certificate Thumbprint by add space.
Then it works. (as the attachment).
Can anyone help me? How can I do to resolve it?
Thanks so much.
Best Regard,
Jin