Find User Default Method MFA

Here is a simple method using powershell to get the default MFA method. Figured some of you would find it useful. I know it has been quite a while since I wrote articles on here, hope you are all well. If you have suggestions I am always open.


Connect-MsolService

$Keyword = Read-Host "Email Address of User"?

$User = Get-MSolUser -UserPrincipalName $Keyword

$User.StrongAuthenticationMethods | Select-Object IsDefault, MethodType

要查看或添加评论,请登录

Alany Wouters的更多文章

  • AD Groups User Is Assigned

    AD Groups User Is Assigned

    Import-Module ActiveDirectory $ADUser = Read-Host "Provide the AD User account" Get-ADPrincipalGroupMembership…

  • Script for returning AD Groups using partial name search

    Script for returning AD Groups using partial name search

    #Here is a way to retrieve name and descriptions from AD using Powershell. Copy and paste from below: Import-Module…

  • Delays in Office products registry

    Delays in Office products registry

    In the past, I have found registry entry items missing with office installations. Usually these will be a security…

  • Credential Manager Clear Script

    Credential Manager Clear Script

    #make sure you save the file as ps.1 to run using powershell.

  • Applying an Image Using WinPE

    Applying an Image Using WinPE

    I created this for the computers such as HP, where you cannot apply an image easily or get it to boot after the image…

  • Adding Printers Using TCP/IP (for users)

    Adding Printers Using TCP/IP (for users)

    Adding Printers TCP/IP Address 1. Using the search function shown, type in and select “Control Panel” 2.

  • System Time Issue

    System Time Issue

    I know in the majority of circumstances, you may want to have your time automatically set by server. To see where your…

  • System Center Configuration Manager Console - Troubleshooting for Windows 10

    System Center Configuration Manager Console - Troubleshooting for Windows 10

    Uninstall SCCM Open a administrative cmd and type “LODCTR /R” (this rebuilds the performance counter setting from…

  • Default App Associations Issue Adobe +

    Default App Associations Issue Adobe +

    1. First step is to set file associations on your PC to your desired settings.

  • Policy Retrieval SCCM via VBS

    Policy Retrieval SCCM via VBS

    In Notepad, copy and paste the text below and save as "vbs" on error resume next dim oCPAppletMgr 'Control Applet…

社区洞察

其他会员也浏览了