且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何获取已启用但未实施Azure Multifactor身份验证的用户的报告。

更新时间:2023-12-05 09:30:46

这可以通过检查用户的 strongauthenticationrequirements 来实现,就像你一样了解它们是否已启用/强制执行或已禁用。

This can be achieved by checking the strongauthenticationrequirements of users, that way you get to know if they are enabled/enforced or disabled.

#Get Enabled/Enforced Users
# Connect to MSOL


cred = Get-Credential
Connect-MsolService -Credential
cred = Get-Credential Connect-MsolService -Credential


cred

Get-MsOlUser -all -Synchronized -EnabledFilter EnabledOnly | sort-Object -property UserPrincipalName |其中{
cred Get-MsOlUser -all -Synchronized -EnabledFilter EnabledOnly | sort-Object -property UserPrincipalName | Where {