How to update MFA phone number using Powershell commands

Ragz 1 Reputation point
2021-04-08T14:09:04.503+00:00

Hi ,

I am trying to update MFA Phone number using

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

But it is throwing an Error .

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,358 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Andreas Baumgarten 95,731 Reputation points MVP
    2021-04-08T18:34:30.393+00:00

    Hi @Ragz ,

    maybe this helps:

    https://learn.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

    0 comments No comments

  2. Ragz 1 Reputation point
    2021-04-13T14:33:25.48+00:00

    Hi @Andreas Baumgarten ,

    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