can't change users primary email address
-
Wednesday, February 29, 2012 10:38 AM
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-Mailboxor
[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?
All Replies
-
Wednesday, February 29, 2012 10:52 AM
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:57 AM
Thanks Steve
That worked !

