neos-sdi / adfsmfa

MFA for ADFS 2022/2019/2016/2012r2
MIT License
143 stars 52 forks source link

Error in exporting MFA configuration #232

Closed Aniket-MFA2022 closed 2 years ago

Aniket-MFA2022 commented 2 years ago

Hi Redhook,

Thanks for your lovely product, I have been using since January. I wanted to get a back of my current configuration but facing some issues in it as the command is not working. Please see the screenshot attached and the commands used to get the backup. Please have a look and let me know what could be the reason. MFA Configuration Export Error

get-help Export-MFAConfiguration –detailed get-help Import-MFAConfiguration –detailed Export-MFAConfiguration -ExportFilePath 'c\temp\config.xml' Import-MFAConfiguration -ImportFilePath 'c\temp\config.xml'

redhook62 commented 2 years ago

Hi, @Aniket-MFA2022

get-help Import-MFASystemConfiguration -detailed get-help Export-MFASystemConfiguration -detailed

Export-MFASystemConfiguration -ExportFilePath 'c\temp\config.xml' Import-MFASystemConfiguration -ImportFilePath 'c\temp\config.xml'

Regards

Aniket-MFA2022 commented 2 years ago

Hi Redhook,

Thanks for your update. First two command worked properly. Please see below error while running the export command.

PS C:\Windows\system32> Export-MFASystemConfiguration -ExportFilePath 'c\temp\config.xml' Export-MFASystemConfiguration : Object reference not set to an instance of an object. At line:1 char:1

redhook62 commented 2 years ago

Hi, @Aniket-MFA2022

Yes, the bu is confirmed. While waiting for the next release at the end of June, you can use this command to extract your configuration

export-AdfsAuthenticationProviderConfigurationData -Name "MultifactorAuthenticationProvider" -FilePath c:\temp\mfa\3.1.xml

For the import procedure there is no problem

regards

redhook62 commented 2 years ago

Hi @Aniket-MFA2022

Done in version 3.1.2206.0

regards