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,357 questions
{count} votes

10 answers

Sort by: Most helpful
  1. Matej Jurković 1 Reputation point
    2022-03-16T11:34:00.127+00:00

    hello guys, i saw that you have problem
    okay you are missing some code here is what you need to put is PS.

    first put this code $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection

    login with admin

    now put this : Import-PSSession $Session -DisableNameChecking

    after this code, you will need to apply this :
    Enable-OrganizationCustomization

    that's all.

    0 comments No comments

  2. 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


  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. 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

  5. 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