首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >MSGraph等价于MSOnline的StrongAuthenticationRequirement?

MSGraph等价于MSOnline的StrongAuthenticationRequirement?
EN

Stack Overflow用户
提问于 2022-10-27 16:48:56
回答 1查看 26关注 0票数 0

我有下面的Windows代码,它强制用户创建PowerShell:

代码语言:javascript
复制
        $st = New-Object -TypeName Microsoft.Online.Administration.StrongAuthenticationRequirement
        $st.RelyingParty = "*"
        $st.State = "Enforced"
        $sta = @($st)
        Set-MsolUser -UserPrincipalName $upn -StrongAuthenticationRequirements $sta | Out-Null

既然MSOnline应该被废弃,并且不是PowerShell内核的更新,那么在MSGraph (或其他模块)中是否有类似的代码呢?

EN

回答 1

页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/74225574

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档