Forum Discussion
Learner2023
Aug 18, 2024Copper Contributor
Unable to run Export-MsIdAzureMfaReport getting error please advise
Unable to run Export-MsIdAzureMfaReport .\report.xlsx getting errors PowerShell 7.4.4 PS C:\Windows\System32> Connect-MgGraph -Scopes Directory.Read.All, AuditLog.Read.All, UserAuthenticationMethod...
LainRobertson
Aug 19, 2024Silver Contributor
Hi, Haroon.
From reading the source code on git, it appears the failure is occurring within the Test-MgModulePrerequisites function, where the results from Get-MgContext are used.
What output do you get - if any - if you run the following cmdlet in lieu of the Export-MsIdAzureMfaReport cmdlet?
(Get-MgContext).Scopes;
Cheers,
Lain