我有下面的Windows代码,它强制用户创建PowerShell:
$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 (或其他模块)中是否有类似的代码呢?
发布于 2022-10-27 17:00:22
有一个cmdlet地图:
sel-msolUser被更新-mguser取代:
要安装的模块是microsoft.graph,在那里您可以得到'mg‘cmdlet,docu:
https://stackoverflow.com/questions/74225574
复制相似问题