problems running Set-organizationconfig --SendFromAliasEnabled $true

Tom Sweet 101 Reputation points
2022-08-04T16:56:50.237+00:00

I need to enable users to send emails from an alias in Microsoft 365. We have an online only account. We have acquired companies and they have their branding, and our branding. I don't want each user to have several accounts, so I want them to receive and send from an alias. They can receive from the alias fine.

using Powershell 5, running as admin,
both using global admin credentials through the dialog that appears.

and https://www.powershellgallery.com/packages/ExchangeOnlineManagement/2.0.6-Preview6. I also tried with 2.0.5.

When I try to set the option for sending by alias, I need an odd message

Set-organizationconfig --SendFromAliasEnabled $true

the result is
A parameter cannot be found that matches parameter name 'SendFromAliasEnabled'.

I can run Get-organizationconfig without error.

any ideas

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,188 questions
Exchange | Exchange Server | Management
0 comments No comments
{count} votes

7 answers

Sort by: Most helpful
  1. Andy David - MVP 157.8K Reputation points MVP Volunteer Moderator
    2022-08-04T17:03:47.123+00:00

    Is that a typo?

    You have two dashes in that command instead of one

    --SendFromAliasEnabled $true

    Note if the PS command isnt working, you can set via the GUI:

    https://admin.exchange.microsoft.com/#/settings

    228130-image.png

    1 person found this answer helpful.
    0 comments No comments

  2. Tom Sweet 101 Reputation points
    2022-08-10T11:01:06.807+00:00

    If anyone has the problem I had where you cannot turn on the feature, this was the solution as provided by MS.  I have no idea why the role was not there.  Thank you MS Support!

    The Escalation Engineer suggests that you have removed several roles from the Organization Management role group.

    Among those removed is the role "OrganizationConfiguration" which is needed for the desired operation.

    Kindly re-add the OrganizationConfiguration role to the "Organization Management" role group.

    Kindly navigate to the Classic Exchange admin center to make these changes:

    Classic Exchange admin center > Permission > admin roles > Organization Management > Add the role(s)

    1 person found this answer helpful.

  3. Tom Sweet 101 Reputation points
    2022-08-04T18:51:33.397+00:00

    Hello,
    My post had the extra hyphen, but was correct for the command. What is also interesting is that that option in mail flow rules is disabled.

    Again, I am using a global admin account. Any ideas why the top two boxes of mailflow are disabled and not selectable?

    This is M365 Business Premium

    228247-image.png

    PS C:\temp> Set-OrganizationConfig -AllowPlusAddressInRecipients $true
    A parameter cannot be found that matches parameter name 'AllowPlusAddressInRecipients'.
    + CategoryInfo : InvalidArgument: (:) [Set-OrganizationConfig], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Set-OrganizationConfig
    + PSComputerName : outlook.office365.com

    PS C:\temp> Set-OrganizationConfig -SendFromAliasEnabled $True
    A parameter cannot be found that matches parameter name 'SendFromAliasEnabled'.
    + CategoryInfo : InvalidArgument: (:) [Set-OrganizationConfig], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Set-OrganizationConfig
    + PSComputerName : outlook.office365.com

    0 comments No comments

  4. Andy David - MVP 157.8K Reputation points MVP Volunteer Moderator
    2022-08-04T22:43:02.647+00:00

    hmmm
    If you add yourself to the Exchange Administrator Azure role, does it work then?

    0 comments No comments

  5. Tom Sweet 101 Reputation points
    2022-08-05T01:48:50.437+00:00

    I added exchange admin, even though GA should cover it. It did not work either, with both roles on the account.

    None of the Set-OrganizationConfigs work at all. Do I just use Connect-ExchangeOnline to enable them?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.