Power shell脚本
WRITE-HOST "Createing access policy "
$userCredential = Get-Credential
Connect-MicrosoftTeams -Credential $userCredential
New-CsApplicationAccessPolicy -Identity OnlineMeeting-policy10 -AppIds "appid" -Description "OnlineMeeting"
Grant-CsApplicationAccessPolicy -PolicyName OnlineMeeting-policy10 -Global错误详细信息:
Connect-MicrosoftTeams: Connect-MicrosoftTeams -Credential $userCredential
One or more errors occurred.
(AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access '00000003-0000-0000-c000-000000000000'.
Trace ID: ce73772c-3440-4da1-afa2-c60787dd6700
Correlation ID: 16b7f655-d1c8-4058-a380-22d01fee233e
Timestamp: 2022-08-16 09:40:51Z)发布于 2022-08-16 13:55:35
通过PowerShell禁用组织中的MFA
Install-Module MSOnline
Connect-MsolService
#To disable MFA for a single user
Get-MsolUser -UserPrincipalName "UPN" | Set-MsolUser -StrongAuthenticationRequirements @()您也可以尝试通过门户->Azure门户网站-> azure Ad -> User ->每用户MFA

选择用户名并禁用,如下所示

确保禁用安全默认值,使MFA禁用

参考资料:
西里尔·卡达舍夫斯基( Cyril Kardashevsky ) 在Azure中启用/禁用MFA
https://stackoverflow.com/questions/73371996
复制相似问题