Forum Discussion

Boe Dillard's avatar
Boe Dillard
Iron Contributor
Apr 10, 2023

Can't Enable-OrganizationCustomization

S C:\WINDOWS\system32> Enable-OrganizationCustomization
The following error was generated when "
Set-Organization $RoleOrganizationHierarchicalPath `
-TargetServicePlan $TargetServicePlan `
-IsUpdatingServicePlan $true `
-DomainController $RoleDomainController;
" was run: "System.Management.Automation.ActionPreferenceStopException: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Source server:SN7PR22MB3763.namprd22.prod.outlook.com doesn't have write permission to target
DC:MWHPR06A10DC001.NAMPR06A010.PROD.OUTLOOK.COM. Usually it indicates that target forest isn't an account partition of source forest. Additional information: Insufficient access rights to perform the operation.
Active directory response: 00002098: SecErr: DSID-031514A0, problem 4003 (INSUFF_ACCESS_RIGHTS), data 0
at System.Management.Automation.Runspaces.AsyncResult.EndInvoke()

1 Reply

  • Hi Boe Dillard 

     

    Try this one

     

    Connect-ExchangeOnline
    $OrgConfig = Get-OrganizationConfig
    If ($OrgConfig.isDehydrated -eq $True)
    {
    Write-Host "OrganizationConfig = True"
    #Enable-OrganizationCustomization
    } else {
    Write-Host "OrganizationConfig = False"
    }

     

    Regards

    Andres Bohren

Resources