【问题标题】:MFA status for classic admins in AzureAzure 中经典管理员的 MFA 状态
【发布时间】:2020-07-15 13:31:16
【问题描述】:

具有 ServiceAdministrator、AccountAdministrator 和 CoAdministrator 角色的用户是 Azure 中的经典管理员。 我们正在尝试为这些经典管理员用户获取 MFA 状态。但是,在 PowerShell 中使用“Get-MsolUser -UserPrincipalName {classicAdminSignInName}”,我们没有得到任何用户的结果。 从 Azure 门户在 Azure AD 中搜索时,也找不到经典管理员用户。 关于上述情况,请您帮助我们理解。如何使用PowerShell获取经典管理员的MFA状态?

【问题讨论】:

    标签: azure powershell azure-active-directory


    【解决方案1】:

    这不是您获得 ADUser UPN 的方式。 你会这样做......

    Get-MsolUser -UserPrincipalName SomeUserName@SomeDomain.com
    

    ...不需要大括号,除非您要使用 Where 过滤。

    Get-MsolUser | 
    Where-Object { $_.isLicensed -eq "TRUE" } | 
    Select UserPrincipalName
    

    就像您在本地 ADDS 中通过 Get-ADUser 执行此操作一样。

    搜索您的用例会显示您需要注意的项目:

    'get azure user mfa status'

    点击示例:

    Azure Multi-Factor Authentication user states

    Powershell script to fetch list of users with MFA status

    identify users that were MFA configured:

    Get-MsolUser -all | 
    select UserPrincipalName, 
    @{N="MFA Status"; E={ if( $_.StrongAuthenticationMethods.IsDefault -eq $true) {($_.StrongAuthenticationMethods|Where IsDefault -eq $True).MethodType} 
    else { "Disabled"}}} | 
    FT -AutoSize
    

    【讨论】:

    • 如果这个答案对您有帮助,请告诉我们。如果是这样,请记住使用复选标记将其标记为答案,以便社区中其他有类似问题的人可以更轻松地找到解决方案。另外,请花几分钟时间让我们知道我们如何使用此链接 microsoft.qualtrics.com/jfe/form/… >
    猜你喜欢
    • 2016-09-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-11-29
    相关资源
    最近更新 更多