Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

The Set-Mailbox cmdlet with the EmailAddressPolicyEnabled parameter fails in Exchange 2007


View products that this article applies to.

Symptoms

In a Microsoft Exchange Server 2007 environment, the Set-Mailbox cmdlet fails when you run the cmdlet together with the EmailAddressPolicyEnabled�parameter. Additionally, you receive one of the following error messages.

Error message 1
Set-Mailbox: Exchange Server 2007 <FQDN of the server> returned an error 1727 from the Recipient Update Service


Error message 2
Access to the address list service on server <FQDN of the server> was denied.

If you use Network Monitor to capture the remote procedure call (RPC) traffic, the captured data contains an RPC_S_ACCESS_DENIED (0x00000005) error.

↑ Back to the top


Cause

The Recipient Update Service server imposes its own limit of 65,536 bytes as the maximum RPC size. It does not use the MaxRPCSize variable that is defined by the Windows RPC server. If a mailbox is contained in many address lists, the RPC data may exceed the 64-kilobyte limit. Typically, this situation may occur when a mailbox is contained in more than 350 address lists.

↑ Back to the top


Resolution

To resolve this problem, install Update Rollup 5 for Exchange Server 2007. For more information about Update Rollup 5 for Exchange Server 2007, see the following Exchange Help topic: For more information about how to install the latest Exchange service pack or update rollup, see the following Exchange Help topic:
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows
After you apply Update Rollup 5, you can set the maximum RPC size by using a registry entry. To do this, follow these steps.
  1. Click Start, click Run, type regedit, and then click OK.
  2. Locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeAL\Parameters
  3. On the Edit menu, point to New, and then click DWORD Value.
  4. Type RUS Max RPC Size, and then press Enter.
  5. Right-click RUS Max RPC Size, and then click Modify.
  6. In the Value data box, type the appropriate value, and then click OK.

    Note The value that you type inside the Value data box is the maximum RPC size in bytes that the Recipient Update Service server uses. For more information about how to determine an appropriate value, see the "More Information" section.
  7. Exit Registry Editor.
  8. Restart the Microsoft Exchange System Attendant Service (MSExchangeSA).
In addition, a new UseRusServer parameter is available for the following cmdlets after you apply Update Rollup 5:
  • Move-Mailbox
  • Set-CASMailbox
  • Set-Mailbox
You can use the UseRusServer parameter to specify which Recipient Update Service server should be used.

↑ Back to the top


More information

The appropriate RUS Max RPC Size value depends on the Exchange Server 2007 environment and the size of the discretionary access control list (DACL). To determine the appropriate RUS Max RPC Size value, use one of the following methods, as appropriate for your situation.

Method 1

If you are concerned about memory usage, increase the default 65,536 byte size limit by 10,240 bytes, and then test the configuration. If the test fails, increase the RUS Max RPC Size value in 10,240 increments up a maximum value of 131,073 bytes. Test the configuration after each change.

Note The appropriate RUS Max RPC Size value can vary when a mailbox is added to or removed from address lists. You may have to adjust the RUS Max RPC Size value if the configuration changes.

Method 2

Set the RUS Max RPC Size value to 131,073 bytes.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


Keywords: KB941774, kbqfe, kbexpertiseinter

↑ Back to the top

Article Info
Article ID : 941774
Revision : 4
Created on : 10/28/2011
Published on : 10/28/2011
Exists online : False
Views : 362