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.
答案 0 :(得分:0)
我已经自己修复了。显然问题出在我用于MsOnline的版本中。无法升级。因此,我删除了powershell文件夹中的整个MSOnline模块,并使用install-module MSOnline -force
问题现在已解决。