Scripts para sacar el MFA de las cuentas de 365

Scripts para sacar el MFA de las cuentas de 365

Dos Fases

1 Sacar listado

Connect-MsolService

Connect-MsolService

#
Get-MsolUser -All | Select-Object @{N=’UserPrincipalName’;E={$_.UserPrincipalName}},

@{N=’MFA Status’;E={if ($_.StrongAuthenticationRequirements.State){$_.StrongAuthenticationRequirements.State} else {“Disabled”}}},

@{N=’MFA Methods’;E={$_.StrongAuthenticationMethods.methodtype}}, isLicensed | Export-Csv -Path C:\MFA_Report.csv -NoTypeInformation

#

#saludos

Leave a Reply

Your email address will not be published.