how to enable organization customization

RS 1 Reputation point
2021-07-06T15:57:22.247+00:00

I am trying to customize my anti-spam and anti-phishing policies through the Security & Compliance Dashboard and it keeps telling me that I have to "Enable-OrganizationCustomization". How can I do this. I have looked at several threads and cannot get a straightforward answer.

What are the correct cmdlet input and output to do this?

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,413 questions
{count} votes

10 answers

Sort by: Newest
  1. Paul Craven 5 Reputation points
    2023-09-21T09:56:30.9133333+00:00

    Why do I have to run a powershell command to change settings in my own tenant??????
    Settings I could freely change a year ago, what the bloody hell are Microsoft playing at?

    Are you trying to drive users away from you diabolical platform?

    0 comments No comments

  2. ODAdmin 1 Reputation point
    2022-05-25T10:38:20.867+00:00

    Finally a step by step that works.
    All thought I got an error on the "Enable-OrganizationCustomization"
    I just skipped to the next line and it worked.
    Thank you :)

    0 comments No comments

  3. LLARS REV CAPITLE 1 Reputation point
    2022-05-20T06:00:12.533+00:00

    This is the most solid way to fix the issue running Enable-OrganizationCustomization:

    Update to the latest Powershell module, at the time of writing the latest version is EXO V2 2.0.6-Preview5

    Run the following commands on elevated/Administrator Powershell on your LOCAL COMPUTER:

    Install-Module PowershellGet -Force

    Update-Module PowershellGet -Force

    Install-Module ExchangeOnlineManagement -Force

    Set-ExecutionPolicy RemoteSigned -Force

    Install-Module -Name ExchangeOnlineManagement -RequiredVersion 2.0.6-Preview5 -AllowPrerelease

    [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
    Install-PackageProvider -Name NuGet -Force
    Install-Module -Name PowerShellGet -Force -AllowClobber

    Now sign in to the Microsoft 365 tenant: 

    Connect-ExchangeOnline -Credential $UserCredential -ShowProgress $true

    Ran the command:  

    Enable-OrganizationCustomization

    Then run the command Get-OrganizationConfig | fl isdehydrated

    The status that you want to see is IsDehydrated : False

    Works perfectly!

    0 comments No comments

  4. R Siebert 16 Reputation points
    2022-05-06T07:45:38.033+00:00

    I worked with Microsoft 365 support tonight and they quickly fixed this problem for me. They said that after the first time you try to edit the policy, you can wait 24 hours and then will be able to enable external email forwarding, but to enable it immediately, just open Windows PowerShell as Administrator (you might need to download and install the Exchange Online PowerShell module first), then run the following commands:

    Connect-ExchangeOnline -UserPrincipalName youremailher@yourdomainhere.com
    Enable-OrganizationCustomization
    Set-HostedOutboundSpamFilterPolicy -Identity Default -AutoForwardingMode On
    Get-HostedOutboundSpamFilterPolicy -Identity Default

    That's it! Woo Hoo!

    3 people found this answer helpful.

  5. Gilbert BOBINET 1 Reputation point
    2022-04-19T14:24:27.94+00:00

    Hello everybody

    My problem : I want to authorize "forwarding" -
    I find de way : https://security.microsoft.com/antispam, But before I need to authorize "customisation"

    I do that :

    1) $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection OK

    2) Login admin : OK

    3) Import-PSSession $Session -DisableNameChecking : NOK

    • Import-PSSession $Session -DisableNameChecking
    • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      • CategoryInfo : InvalidOperation : (:) [Import-PSSession], PSInvalidOperationException
      • FullyQualifiedErrorId : InvalidOperation,Microsoft.PowerShell.Commands.ImportPSSessionCommand

    4) Enable-OrganizationCustomization : NOK

    • Enable-OrganizationCustomization
    • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      • CategoryInfo : ObjectNotFound: (Enable-OrganizationCustomization:String) [], CommandNotFoundException
      • FullyQualifiedErrorId : CommandNotFoundException

    If somebody has a way to resolve that, with all the command

    Thanks and best regards
    Gilbert