Quantcast
Channel: /r/powershell – How to Code .NET
Viewing all articles
Browse latest Browse all 8793

Powershell Command to check status of all users MFA status

$
0
0

I’m trying to find a script that will check and create a CSV file of users with their email address, and their current MFA status (disabled/enabled/enforced).

Currently on Microsoft’s Powershell Library, it only has one for enabling it for specific/multi/all users and disabling. None of them seem to report the status of all users in a CSV file.

I was wondering if someone could help me find something like that.

I’ve tried combining the scripts of this link: http://www.virtualizationadmin.com/kbase/VirtualizationTips/ServerVirtualization/MicrosoftHyper-VR2Tips/InstallationDeployment/how-check-mfa-status-office-365-user.html

and getting all users, and exporting it to CSV.

This was the command I ended up with:

$ThisUSer = Get-msoluser -UserPrincipalName “UserPrincipalName” | Select-Object -ExpandProperty StrongAuthenticationRequirements Export-CSV “C:MFAusers.csv”

submitted by /u/Jaizuke
[link] [comments]

The post Powershell Command to check status of all users MFA status appeared first on How to Code .NET.


Viewing all articles
Browse latest Browse all 8793

Trending Articles