RecipientEnforcementProvisioningPolicy object is: # -Static object in tiny tenants (BPOS_L) # -Hydrated objects in dehydrated ...

# RecipientEnforcementProvisioningPolicy object is:          # -Static object in tiny tenants  (BPOS_L)          # -Hydrated objects in dehydrated tenants (BPOS_S)          if(!$AdvancedHydrateableObjectsSharedEnabled)          {            $TeamMailboxCountQuota = $ServicePlanSettings.Organization.GetTeamMailboxCountQuota();            # No. Update count quota    Use cases            # 1   Yes                   Install a new tenant            # 2   Yes                   Upgrade existing tenant to a service plan with different count quota            # 3   No                    Upgrade existing tenant to a service plan with same count quota            # 2 will override customized count quota. Service plan gets high priority.            # 3 will keep customized count quota if users are in similiar service plans.            if($OldServicePlanSettings -eq $null -or $RoleIsCrossSKUMigration -or $RoleIsBPOSSHydration -or ($TeamMailboxCountQuota -ne $OldServicePlanSettings.Organization.GetTeamMailboxCountQuota()))            {              $recipientPolicy = Get-RecipientEnforcementProvisioningPolicy -Organization $RoleOrganizationHierarchicalPath -DomainController $RoleDomainController -IgnoreDehydratedFlag;              Write-ExchangeSetupLog -info ("Service plan feature: TeamMailboxCountQuota. Setting TeamMailboxCountQuota to " + $TeamMailboxCountQuota) ;              Set-RecipientEnforcementProvisioningPolicy $recipientPolicy -TeamMailboxCountQuota $TeamMailboxCountQuota -DomainController $RoleDomainController -IgnoreDehydratedFlag;            }          }