none
can't change users primary email address

    Question

  • Hi Guys

    Need some help with this ,

    want to change a users primary email address but get a error saying i need to add the "emailaddresspolicyenabled $false" but i doent want to change.

    Get-Mailbox domain\kellyn | Set-Mailbox -PrimarySmtpAddress kellyl@domain.com -EmailAddressPolicyEnabled $false

    A positional parameter cannot be found that accepts argument 'False'.
        + CategoryInfo          : InvalidArgument: (:) [Set-Mailbox], ParameterBindingException
        + FullyQualifiedErrorId : PositionalParameterNotFound,Set-Mailbox

    or

    [PS] C:\Users\admin\Desktop>Get-Mailbox domain\kellyn | Set-Mailbox -PrimarySmtpAddress kellyl@domain
    WARNING: Couldn't update the primary SMTP address because this mailbox is configured to use an e-mail address policy.
    To disable the e-mail address policy for this mailbox, run the command with the EmailAddressPolicyEnabled parameter set
     to $false.

    any ideas?

    Wednesday, February 29, 2012 10:38 AM

Answers

  • Hi

    Try this instead:

    Set-Mailbox domain\kellyn -PrimarySmtpAddress kellyl@domain.com -EmailAddressPolicyEnabled $false

    Cheers, Steve

    • Marked as answer by Cvandyk Wednesday, February 29, 2012 10:57 AM
    Wednesday, February 29, 2012 10:52 AM

All replies

  • Hi

    Try this instead:

    Set-Mailbox domain\kellyn -PrimarySmtpAddress kellyl@domain.com -EmailAddressPolicyEnabled $false

    Cheers, Steve

    • Marked as answer by Cvandyk Wednesday, February 29, 2012 10:57 AM
    Wednesday, February 29, 2012 10:52 AM
  • Thanks Steve

    That worked !

    Wednesday, February 29, 2012 10:57 AM