Forum Discussion

Lassaad's avatar
Lassaad
Brass Contributor
Dec 15, 2020

Revoke MFA sessions for multiple Users

Hi There ,

 

Is it possible to revoke MFA sessions and require re-register for multiple users  or a group of users ?

 

Thank You

    • Lassaad's avatar
      Lassaad
      Brass Contributor

      Pontus Själander  Thank You , 

       

      # Initiates a connection to Azure Active Directory.

      Connect-MsolService

      #Import CSV file and Resets the strong authentication method by using a user principal name

      Import-Csv "C:\Temp\MFAUsersStatus.csv" | ForEach-Object {
      $UserPrincipalName = $_."UserPrincipalName"

      Reset-MsolStrongAuthenticationMethodByUpn -UserPrincipalName $UserPrincipalName
      }

Resources