-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export-MsIdAzureMfaReport -- Compare-Object: Cannot bind argument to parameter 'DifferenceObject' because it is null. #64
Comments
Same issue. |
Sorry I'm not able to repro this. Can you run in -Verbose and share the specific point where it fails. Please remove any sensitive data before sharing. Alternatively, please open a support ticket with Microsoft and ask them to reach out to me. Tx. |
Hi @merill. Best regards. |
I think you might have an old version of Graph installed. Can you uninstall graph, restart PowerShell, check that graph is not installed, then do a fresh install of Microsoft.Graph and try again? |
I have the same issue. I also found that pasting the queries from the verbose log (
|
Same issue |
I have Azure portals for both Personal (live.com) and Work & School accounts. Attempting the process with my Personal account produced the same error as above. Using my Work & School account displayed the following message:
I followed those steps, but that didn't work either:
Indeed, there is no 'HasSignedInWithMfa' property in the JSON file. I already had MFA enabled on my Work & School account, so I added it to my Personal account using instructions at https://support.microsoft.com/en-us/account-billing/how-to-add-your-accounts-to-microsoft-authenticator-92544b53-7706-4581-a142-30344a2a2a57. Those instructions aren't quite right either, but I managed to get MFA setup. I just hope it works on October 15. |
@bendono and @antonhansson are you signing in with a personal account or a work account? |
@merill I'm not sure how to verify. The above was initially done with the external account that originally provisioned the Azure account (Global Administrator). I just now checked with another account (also Global Administrator) with the DNS configured to my Azure account. This time I am seeing what @JoelLeach mentioned above, but only for this account. |
Same issue here. |
@merill
Will this error be fixed in the future? |
@Takas372 and @JoelLeach can you try running this older version when running with the Free tenant? You will need to uninstall what you have and then install with this version
|
@merill ,Thanks for the reply.
My problem is solved! Thank you! |
Describe the bug
A recent Microsoft email indicated that multifactor authentication is required for Azure from October 15, 2024. It gave a link to identify users without multifactor authentication enabled.
This documentation provided a link to Export-MsIdAzureMfaReport to generated a report.
Following the documentation results in the following error:
Compare-Object: Cannot bind argument to parameter 'DifferenceObject' because it is null.
To Reproduce
Expected behavior
A generated report.
Or better error handling with a clear message indicated the problem and what to change in order to work.
Relevant documentation would be appreciated as well.
Screenshots
Environment (please complete the following information)
Unable to execute.
Additional context
The text was updated successfully, but these errors were encountered: