How to fix NPS extension installation script issue

Nasrin Golbaz 0 Reputation points
2025-02-27T23:24:26.4766667+00:00

Hi everyone,

I am having issue to run '.\AzureMfaNpsExtnConfigSetup.ps1' for NPS Extension installation on my server, here is the error:

User's image

User's image

User's image

I replaced the code '$binCert = $certx509[0].GetRawCertData()

$credValue = [System.Convert]::ToBase64String($binCert)' with ' $binCert = $certx509[0].GetRawCertData()

$credValue = [System.Convert]::ToBase64String($binCert)' and it successfully created the certifiacte but it is still having problem with key part.

User's image

I am not sure if the script changed that is not running because one months ago I did the installation on one of my servers and it worked as expected.

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,830 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.