question

Ragz-2119 avatar image
0 Votes"
Ragz-2119 asked AndreasBaumgarten commented

How to update MFA phone number using Powershell commands

Hi ,

I am trying to update MFA Phone number using

Set-MsolUser -UserPrincipalName user@domain.com -PhoneNumber "+1 4252345678"

But it is throwing an Error .

windows-server-powershell
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AndreasBaumgarten avatar image
0 Votes"
AndreasBaumgarten answered

Hi @Ragz-2119 ,

maybe this helps:

https://docs.microsoft.com/en-us/azure/active-directory/authentication/howto-sspr-authenticationdata#set-and-read-the-authentication-data-through-powershell


(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

Regards
Andreas Baumgarten

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Ragz-2119 avatar image
0 Votes"
Ragz-2119 answered AndreasBaumgarten commented

Hi @AndreasBaumgarten ,

Thanks for the link . I used the above link and end up with an Error


Set-MsolUser : Unable to update parameter. Parameter name: PHONENUMBER.

  • FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.PropertyNotSettableException,Microsoft.Online
    .Administration.Automation.SetUser

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @Ragz-2119 ,

did you test the second option as well?
https://docs.microsoft.com/en-us/azure/active-directory/authentication/howto-sspr-authenticationdata#use-powershell-version-2


(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

Regards
Andreas Baumgarten

0 Votes 0 ·