Share via

-ProxyAddresses $_.ProxyAddresses - cannot be found that matches

Anonymous
2022-08-25T13:12:26+00:00

Hi all,

I'm trying to follow the below-linked guide to change the display name but also the primary smtp address but get an error to say there are no matches - full message below. I'm using Office 365 Exchange online.

Guide I'm following - Change all display names in Office 365 - Microsoft Community

Set-MsolUser : A parameter cannot be found that matches parameter name 'ProxyAddresses'.

At line:1 char:123

  • ... UserPrincipalName -DisplayName $_.DisplayName -ProxyAddresses $_.Prox ...
  •                                               ~~~~~~~~~~~~~~~ 
    
    • CategoryInfo : InvalidArgument: (:) [Set-MsolUser], ParameterBindingException
    • FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.Online.Administration.Automation.SetUser

Many thanks,

Stuart.

Microsoft 365 and Office | Subscription, account, billing | For business | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. NoOneCan 7,795 Reputation points Volunteer Moderator
    2022-08-25T13:26:26+00:00

    You may try to script below to check this issue:

    1. $mailboxes = import-csv Mailboxes.csv
    2. $mailboxes |% {Get-mailbox -UserPrincipalName $._UserPrincipalName| Set-mailbox -UserPrincipalName $._PrimarySMTPAddress -PrimarySMTPAddress $._PrimarySMTPAddress}

    Was this answer helpful?

    0 comments No comments