Errors when trying to Renew Azure AD MFA Extension Certificates

Don In IT 0 Reputation points
2024-03-05T21:01:55.25+00:00

I am trying to Renew our Azure AD MFA Extension Certificates, but when I run the PowerShell script I get this:

Set-ItemProperty : Cannot find path 'HKLM:\SOFTWARE\Microsoft\AzureMfa' because it does not exist.

At C:\Program Files\Microsoft\AzureMfa\Config\AzureMfaNpsExtnConfigSetup.ps1:41 char:5

  • Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\AzureMfa\" -Name ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (HKLM:\SOFTWARE\Microsoft\AzureMfa:String) [Set-ItemProperty], ItemNotFoundException
    • FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetItemPropertyCommand

Import-Module : The specified module 'C:\Program Files (x86)\WindowsPowerShell\Modules\AzureMfaClientCertProvider' was not loaded because no valid module file was found in any module directory.

At C:\Program Files\Microsoft\AzureMfa\Config\AzureMfaNpsExtnConfigSetup.ps1:53 char:1

  • Import-Module -Name $env:ProgramFiles\WindowsPowerShell\Modules\Azure ...
  • 
        + CategoryInfo          : ResourceUnavailable: (C:\Program File...entCertProvider:String) [Import-Module], FileNotFoundException
    
        + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
    
     
    
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,694 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Givary-MSFT 32,581 Reputation points Microsoft Employee
    2024-03-06T08:05:08.0566667+00:00

    @Don In IT Thank you for reaching out to us, on the server where you are trying to perform renewal of certificate what do you see in the computer store (certlm.msc) do you see the certificate for nps configuration?

    Above mentioned error is very much generic referring to certificate not present/module is not found.

    Request you to review the steps mentioned here - https://learn.microsoft.com/en-us/entra/identity/authentication/howto-mfa-nps-extension-vpn#configure-certificates-for-use-with-the-nps-extension-by-using-a-powershell-script:~:text=%3E%20Settings.-,Install%20the%20NPS%20extension,-The%20NPS%20extension to check if it helps else we can connect offline to discuss further on this.

    1 person found this answer helpful.

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.