Skip Ribbon Commands
Skip to main content

Ondrej Sevecek's English Pages

:

Engineering and troubleshooting by Directory Master!
MCM: Directory

Quick Launch

Ondrej Sevecek's English Pages > Posts > How to install RPC Proxy directly into a different iis web site?
August 06
How to install RPC Proxy directly into a different iis web site?

When you install RPC Proxy using server manager or with PowerShell on Windows 2008 and newer, you cannot specify IIS web site into which the process creates RPC and RPCwithCert virtual directories.

The installation wizards install the IIS virtual directories into the Default Web Site (ID=1) by default.

If you want to ​install the RPC Proxy into a different IIS web site, you must define the following registry value prior to doing the installation:

HKLM\Software\Microsoft\RPC\RpcProxy
WebSite = REG_SZ = <the name of your custom web site>

then you can install the RPC Proxy feature from the GUI, or for example with PowerShell as follows:

on Windows 2008:

ServerManagerCmd -i RPC-over-HTTP-proxy

or on Windows 2008 R2:

Import-Module ServerManager
Add-WindowsFeature RPC-over-HTTP-proxy

or on Windows 2012:

Install-WindowsFeature RPC-over-HTTP-proxy

 

Comments

Re: How to install RPC Proxy directly into a different iis web site?

note that this works as well with a later call to Exchange's command Enable-OutlookAnywhere. The Exchange 2007/2010/2013 cmdlet correctly determines the website name and ID and sets its MetabasePath property correctly according to the site ID.

You can later verify the results with call to:
Get-OutlookAnywhere | fl *

so it works similarly even in SBS (small business server) environment.
 on 07/08/2013 12:36

Re: How to install RPC Proxy directly into a different iis web site?

... note also that I have currently verified the functionality on an Exchange 2010 running on Windows 2012 (R1) where I wanted to move publicly facing CAS and its OutlookAnywhere into a separate web site instead of using the Default Web Site.

I just uninstalled the RPC over HTTP proxy feature by using Server Manager on an already running Exchange server which didn't have Outlook Anywhere enabled. I created a new IIS web site for the publicly facing virtual directories. I have installed the RPCoverHTTP feature back again, now to the newly created IIS web site using the registry key. After that, I have simply enabled the OutlookAnywhere within Exchange.

Now, the MetabasePath was still incorrectly pointing to the W3SVC/1/Root/RPC which was incorrect. My custom IIS web site has been created with a different ID apparently.

I went into ADSI Edit and found the OutlookAnywhere virtual directory object at CN=Rpc (Default Web Site),CN=HTTP,CN=Protocols,CN=<servername>,CN=Servers,CN=Exchange Administrative Group (<id>),CN=Administrative Groups,CN=<orgname>,CN=Microsoft Exchange,CN=Services,CN=Configuration,...

It seems like the Rpc virtual directory object is automatically created during Exchange 2010 installation and does not change when you enable/disable OutlookAnywhere functionality.

So I simply corrected the name and attributes of the AD object in ADSIEdit. What needed to be mended was msExchMetabasePath attribute of the object. I also changed the object name to reflect the name of the custom IIS web site.

Now the Get-OutlookAnywhere does not complain that the virtual directory does not exist in IIS anymore. And the client connection seems to be working well.
 on 19/12/2014 08:50

install RPC Proxy directly into a different iis web site?

But main problem is that HKLM\Software\Microsoft\RPC\RpcProxy do not exist before installation of RPC over HTTP Proxy.
 on 17/12/2015 16:07

install RPC Proxy directly into a different iis web site?

Just create key "RpcProxy" in regedit and put WebSite = REG_SZ = <the name of your custom web site>
Then install RPC
 on 29/11/2016 18:38

Add Comment

Sorry comments are disable due to the constant load of spam *


This simple antispam field seems to work well. Just put here the number.

Title


You do not need to provide any value this column. It will automatically fill with the name of the article itself.

Author *


Body *


Attachments