how can i download MFA registered numbers

Shaik Arafath 0 Reputation points
2024-01-07T07:35:48.74+00:00

Hi,

I am looking to download MFA registered numbers into an excel or csv file.

Any suggestions?

Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Shujun Chen (Shanghai Wicresoft Co Ltd) 5 Reputation points Microsoft External Staff
    2024-01-09T02:02:44.4+00:00

    Hello,

    Thank you for posting in Q&A forum.

    To download any MFA registered number, you can use Get-MsolUserByStrongAuthentication command.

    1.First you need to open PowerShell/Azure Cloud Shell and connect to Azure AD by command:

    Connect-MsolService.

    2.Then run

    Get-MsolUser | Select-Object UserPrincipalName, @ {Name="MFA Status"; Expression= {if ($. StrongAuthenticationRequirements.State) {$. StrongAuthenticationRequirements.State} else {"Disabled"}}} | Export-CSV -Path "C:\MFA-Status.csv" -NoTypeInformation

    to export all the users with MFA status in .csv file.

    You can also change the command according to your requirement.

    REF: https://learn.microsoft.com/en-us/powershell/module/msonline/get-msoluserbystrongauthentication?view=azureadps-1.0

    To help other customers who may be facing the same issue, please don't forget to vote if the reply is helpful.

    Best Regards,
    Shujun


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

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.