Requires an App Registration be setup with proper API permissions and a self-signed certificate for authentication to it.
Select-MgProfile -Name "beta"
$TenantId = "XXXXX"
$AppId = "XXXXX"
Connect-MgGraph -ClientId $AppId -TenantId $TenantId -CertificateThumbprint "XXXXXXX"
$report = Get-MgReportCredentialUserRegistrationDetail -all
$report| select @{name="AuthMethods";e={$_.AuthMethods -join ","}},IsCapable,IsEnabled,IsMfaRegistered,IsRegistered,UserDisplayName,UserPrincipalName | Select UserPrincipalName,UserDisplayName,IsCapable,IsEnabled,IsMfaRegistered,IsRegistered,AuthMethods | export-csv -NoTypeInformation -Path "c:\reports\MFA - MFA Audit Logs.csv"
Disconnect-MgGraph