Property "StrongAuthenticationUserDetails" cannot be found in Powershell

时间:2019-04-08 12:46:24

标签: azure powershell office365

Recently I created a script to see who had completed their SSPR authentications. Users can setup mobile verifications and email verification. They need at least 2 methods to be completed, so I need to know if they filled in their mobile methods but also their mobile methods.

Its not hard to create, but the only issue I have is that for some reason the Property "StrongAuthenticationUserDetails" not could be found.

I use the following command:

get-msoluser -UserPrincipalName "EMAILADRESS" | select -ExpandProperty StrongAuthenticationUserDetails

Another property like StrongAuthenticationMethods does work well. Last time I created this script, the StrongAuthenticationUserDetails also worked, but for some reason not anymore.

Am I doing something wrong?

Already seach the internet, updated my azure module but none of it works or gives me the needed information.

1 个答案:

答案 0 :(得分:0)

我已经自己修复了。显然问题出在我用于MsOnline的版本中。无法升级。因此,我删除了powershell文件夹中的整个MSOnline模块,并使用install-module MSOnline -force

再次安装了该模块。

问题现在已解决。