{"id":458,"date":"2013-07-26T16:53:36","date_gmt":"2013-07-26T14:53:36","guid":{"rendered":"http:\/\/dety.net.ua\/?p=458"},"modified":"2013-07-26T16:53:36","modified_gmt":"2013-07-26T14:53:36","slug":"configure-static-rpc-ports-on-an-exchange-2010-client-access-server","status":"publish","type":"post","link":"https:\/\/dety.net.ua\/?p=458","title":{"rendered":"Configure Static RPC Ports on an Exchange 2010 Client Access Server"},"content":{"rendered":"<p>It&#8217;s needed for NLB.<\/p>\n<p>Copy-pasted from TechNet: <a href=\"http:\/\/social.technet.microsoft.com\/wiki\/contents\/articles\/864.configure-static-rpc-ports-on-an-exchange-2010-client-access-server.aspx\" target=\"_blank\">http:\/\/social.technet.microsoft.com\/wiki\/contents\/articles\/864.configure-static-rpc-ports-on-an-exchange-2010-client-access-server.aspx<\/a><\/p>\n<h2>Exchange 2010 RPC Client Access Service<\/h2>\n<p>By default the RPC Client Access service on an Exchange 2010 Client Access server uses the TCP End Point Mapper port (TCP\/135) and the dynamic RPC port range (6005-59530) for outgoing connections, every time an Outlook clients establish a connection to Exchange.<\/p>\n<p>To set a static port for the RPC Client Access service on an Exchange 2010 Client Access server, you need to open the registry on the respective server and navigate to:<\/p>\n<p><strong>HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\services\\MSExchangeRPC<\/strong><\/p>\n<p>Here, you need to create a new key named <strong>ParametersSystem<\/strong>, and under this key create a <strong>REG_DWORD<\/strong> named <strong>TCP\/IP Port<\/strong>. The Value for the DWORD should be the port number you want to use.<\/p>\n<p><strong><img decoding=\"async\" alt=\" \" src=\"http:\/\/social.technet.microsoft.com\/wiki\/resized-image.ashx\/__size\/550x0\/__key\/CommunityServer-Wikis-Components-Files\/00-00-00-00-05\/4657.RPC_5F00_CA_5F00_Ports.jpg\" \/><br \/>\nConfiguring static ports for the RPC Client Access service<\/strong><\/p>\n<p>&nbsp;<\/p>\n<table cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<th><img decoding=\"async\" alt=\"note\" src=\"http:\/\/apfhrw.bay.livefilestore.com\/y1pCed6u9dxDV3LOdzgtYt8xFaDWmIf_thMiOiFb3SmUARdxwIei5b6sPCHGruZWYphrJEU8j2BZEd51ZoAkp_ONkG8moMODvLC\/Note.gif\" \/>\u00a0<strong>Note<\/strong><\/th>\n<\/tr>\n<tr>\n<td>Microsoft recommends you set this to a unique value between 59531 and 60554 and use the same value on all CAS in any one AD site.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>When you\u2019ve configured the port, it&#8217;s required to restart the Microsoft Exchange RPC Client Access service in order for the changes to be applied.<\/p>\n<h2><a name=\"ExchangeTenAddressBookService\"><\/a>Exchange 2010 Address Book Service<\/h2>\n<p>By default the Exchange Address Book service on an Exchange 2010 Client Access server uses the TCP End Point Mapper (TCP\/135) and the dynamic RPC port range (6005-59530) for outgoing connections, every time an Outlook client establish a connection to Exchange.<\/p>\n<p><strong>Exchange 2010 RTM<\/strong><\/p>\n<p>In Exchange 2010 RTM a static port for the Exchange Address Book service is set using the following steps:<\/p>\n<ul>\n<li>\n<div>Open the <strong>microsoft.exchange.addressbook.service.exe.config<\/strong> configuration file located in <strong>C:\\Program Files\\Microsoft\\Exchange Server\\V14\\Bin<\/strong> using Notepad.<\/div>\n<\/li>\n<\/ul>\n<ul>\n<li>\n<div>Change the value for the key <strong>RpcTcpPort<\/strong> to the port you want to use as the static port for this service.\u00a0Bear in mind you cannot use the same port as you configured for the RPC Client Access service.\n<\/div>\n<\/li>\n<\/ul>\n<p><img decoding=\"async\" alt=\" \" src=\"http:\/\/social.technet.microsoft.com\/wiki\/resized-image.ashx\/__size\/550x0\/__key\/CommunityServer-Wikis-Components-Files\/00-00-00-00-05\/3731.Addressbook_5F00_Ports.jpg\" \/><br \/>\n<strong>Configuring static port for the Exchange Address Book Service in Exchange 2010 RTM<\/strong><\/p>\n<p>&nbsp;<\/p>\n<table cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<th><img decoding=\"async\" alt=\"note\" src=\"http:\/\/apfhrw.bay.livefilestore.com\/y1pCed6u9dxDV3LOdzgtYt8xFaDWmIf_thMiOiFb3SmUARdxwIei5b6sPCHGruZWYphrJEU8j2BZEd51ZoAkp_ONkG8moMODvLC\/Note.gif\" \/>\u00a0<strong>Note<\/strong><\/th>\n<\/tr>\n<tr>\n<td>Microsoft recommends you set this to a unique value between 59531 and 60554 and use the same value on all Exchange 2010 Client Access servers in any one AD site.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong><\/strong><\/p>\n<p>When you\u2019ve configured the port, it&#8217;s required to restart the Microsoft Exchange Address Book service in order for the changes to be applied.<\/p>\n<p><strong>Exchange 2010 SP1<br \/>\n<\/strong><br \/>\nWith Exchange 2010 SP1, you no longer use the \u201c<strong>Microsoft.exchange.addressbook.service.exe.config<\/strong>\u201d file to assign a static RPC port to the Exchange Address Book Service. Instead this configuration setting is controlled using the registry. To set a static RPC port for the Exchange Address Book Service, create a new <strong> REG_SZ registry key<\/strong> named \u201c<strong>RpcTcpPort<\/strong>\u201d under:<\/p>\n<p><strong><em>HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\services\\MSExchangeAB\\Parameters<\/em><\/strong><\/p>\n<p><img decoding=\"async\" alt=\" \" src=\"http:\/\/social.technet.microsoft.com\/wiki\/resized-image.ashx\/__size\/550x0\/__key\/CommunityServer-Wikis-Components-Files\/00-00-00-00-05\/3348.Addressbook_5F00_Ports_5F00_sp1.jpg\" \/><br \/>\n<strong>Configuring static port for the Exchange Address Book Service in Exchange 2010 SP1<br \/>\n<\/strong><\/p>\n<p>&nbsp;<\/p>\n<table cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<th><img decoding=\"async\" alt=\"note\" src=\"http:\/\/apfhrw.bay.livefilestore.com\/y1pCed6u9dxDV3LOdzgtYt8xFaDWmIf_thMiOiFb3SmUARdxwIei5b6sPCHGruZWYphrJEU8j2BZEd51ZoAkp_ONkG8moMODvLC\/Note.gif\" \/> <strong>Important<\/strong><\/th>\n<\/tr>\n<tr>\n<td>When upgrading from Exchange 2010 RTM to SP1, you need to set this key manually after the upgrade.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<table cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<th><img decoding=\"async\" alt=\"note\" src=\"http:\/\/apfhrw.bay.livefilestore.com\/y1pCed6u9dxDV3LOdzgtYt8xFaDWmIf_thMiOiFb3SmUARdxwIei5b6sPCHGruZWYphrJEU8j2BZEd51ZoAkp_ONkG8moMODvLC\/Note.gif\" \/> <strong>Note<\/strong><\/th>\n<\/tr>\n<tr>\n<td>Microsoft recommends you set this to a unique value between 59531 and 60554 and use the same value on all Exchange 2010 Client Access servers in any one AD site.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>When you\u2019ve configured the port, it&#8217;s required to restart the Microsoft Exchange Address Book service in order for the changes to be applied.<\/p>\n<h2><a name=\"ExchangeTenPublicFolderConnections\"><\/a>Exchange 2010 Public Folder Connections<\/h2>\n<p>By default public folder connections uses the TCP End Point Mapper (TCP\/135) and the dynamic RPC port range (49152-65535) for outgoing connections, every time an Outlook client establish a connection to Exchange.<\/p>\n<p>To set a static port for public folder connections, follow the same steps as those required for configuring static ports for the RPC CA service. Just bear in mind you need to perform them on the Exchange 2010 servers that stores public folder databases. This is because public folder connections from an Outlook client occur against the RPC Client Access service on the Mailbox server role.<\/p>\n<p><img decoding=\"async\" alt=\" \" src=\"http:\/\/social.technet.microsoft.com\/wiki\/resized-image.ashx\/__size\/550x0\/__key\/CommunityServer-Wikis-Components-Files\/00-00-00-00-05\/6170.public_5F00_folder_5F00_Ports.jpg\" \/><br \/>\n<strong>Configuring a static port for Public Folder connections<\/strong><\/p>\n<p>When the port has been set for public folder connections, it&#8217;s required to restart the Microsoft Exchange RPC Client Access service on the Mailbox server in order for the changes to be applied.<\/p>\n<p>&nbsp;<\/p>\n<table cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<th><img decoding=\"async\" alt=\"note\" src=\"http:\/\/apfhrw.bay.livefilestore.com\/y1pCed6u9dxDV3LOdzgtYt8xFaDWmIf_thMiOiFb3SmUARdxwIei5b6sPCHGruZWYphrJEU8j2BZEd51ZoAkp_ONkG8moMODvLC\/Note.gif\" \/> <strong>Important<\/strong><\/th>\n<\/tr>\n<tr>\n<td>Unlike in previous versions of Exchange Server, you configure static RPC ports for an Exchange 2010 Mailbox server under the <strong>MSExchangeRPC<\/strong> key and not under <strong>MSExchangeSA\\Parameters <\/strong> since all MAPI connections to an Exchange 2010 Mailbox server are handled by the RPC Client Access service. For information on how to configure static RPC ports in Exchange 2007 and earlier see Microosft KB article: <a href=\"http:\/\/support.microsoft.com\/default.aspx\/kb\/270836?p=1\" target=\"_blank\">Exchange Server static port mappings <img decoding=\"async\" title=\"This link is external to TechNet Wiki. It will open in a new window.\" alt=\"\" src=\"http:\/\/social.technet.microsoft.com\/wiki\/cfs-file.ashx\/__key\/communityserver-components-sitefiles\/10_5F00_external.png\" border=\"0\" \/> <\/a>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong><\/strong><\/p>\n<h2><a name=\"Verifying_the_Statically_Configured_Ports_Are_Used\"><\/a>Verifying the Statically Configured Ports Are Used<\/h2>\n<p>In order to verify that the static ports configured are used, the <strong>netstat.exe<\/strong> tool can be used:<\/p>\n<p><strong>Netstat -an -p tcp<\/strong><\/p>\n<p><img decoding=\"async\" alt=\" \" src=\"http:\/\/social.technet.microsoft.com\/wiki\/resized-image.ashx\/__size\/550x0\/__key\/CommunityServer-Wikis-Components-Files\/00-00-00-00-05\/0640.verifying_5F00_Ports.jpg\" \/><br \/>\n<strong>Verifying the configured static ports are used on the Client Access and Mailbox servers<\/strong><strong><br \/>\n<\/strong><\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<h2><a name=\"Script_to_Automate_the_Configuration_Process\"><\/a>Script to Automate the Configuration Process<\/h2>\n<p>Script to set static ports is now available <a title=\"Script to set static port on Exchange Server 2010.\" href=\"http:\/\/cid-14adc5cf1e0cbccf.skydrive.live.com\/self.aspx\/.Public\/Exchange%202010\/Scripts\/Set-StaticPorts.ps1\" target=\"_blank\"> here <img decoding=\"async\" title=\"This link is external to TechNet Wiki. It will open in a new window.\" alt=\"\" src=\"http:\/\/social.technet.microsoft.com\/wiki\/cfs-file.ashx\/__key\/communityserver-components-sitefiles\/10_5F00_external.png\" border=\"0\" \/> <\/a>. The script works with Exchange 2010 RTM and SP1, SP2 and SP3. It also includes -auto to automatically search and change ports on all Exchange 2010 CAS servers and Mailbox Servers hosting public folders in the environment. More details <a title=\"Script to configure static ports on Exchange Server 2010\" href=\"http:\/\/ow.ly\/jR35g\" target=\"_blank\"> here <img decoding=\"async\" title=\"This link is external to TechNet Wiki. It will open in a new window.\" alt=\"\" src=\"http:\/\/social.technet.microsoft.com\/wiki\/cfs-file.ashx\/__key\/communityserver-components-sitefiles\/10_5F00_external.png\" border=\"0\" \/> <\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s needed for NLB. Copy-pasted from TechNet: http:\/\/social.technet.microsoft.com\/wiki\/contents\/articles\/864.configure-static-rpc-ports-on-an-exchange-2010-client-access-server.aspx Exchange 2010 RPC Client Access Service By default the RPC Client Access service on an Exchange 2010 Client Access server uses the TCP End Point Mapper port (TCP\/135) and the dynamic RPC port range (6005-59530) for outgoing connections, every time an Outlook clients establish a connection to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,12],"tags":[],"class_list":["post-458","post","type-post","status-publish","format-standard","hentry","category-novosti","category-windows"],"_links":{"self":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/458","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=458"}],"version-history":[{"count":2,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/458\/revisions"}],"predecessor-version":[{"id":460,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/458\/revisions\/460"}],"wp:attachment":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=458"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=458"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}