In THIS BLOG Marc van Eijk showed us the steps to configure the web.config file for Remote Console VMConnectHostIdentificationMode to set to IP.
With UR4 for SPF 2012 R2 the SPF team made some changes and this will result in authentication problems and you will receive the following error message:
Our friend Stanislav Zhelyazkov already blogged about this on his blog https://cloudadministrator.wordpress.com, but we think its proper to also mention the solution on Hyper-V.nu as well.
To overcome this problem we need to adjust the rewrite rules in the web.config file we have created earlier.
We’ll have to change the following line:
<action type=”Rewrite” value=”negotiate security layer:i:1 
authentication level:i:0″ />
To:
<action type=”Rewrite” value=”authentication level:i:0″ />
The “outboundRules” part in the web.config will look like this:
<outboundRules>
<clear />
<rule name=”Remote Console on IP Address” preCondition=”VMConsole RDP File” enabled=”true”>
<match filterByTags=”None” pattern=”negotiate security layer:i:1″ />
<conditions logicalGrouping=”MatchAll” trackAllCaptures=”true” />
<action type=”Rewrite” value=”authentication level:i:0″ />
</rule>
<preConditions>
<preCondition name=”VMConsole RDP File”>
<add input=”{REQUEST_URI}” pattern=”^.*(/VMConnection)$” />
<add input=”{RESPONSE_CONTENT_TYPE}” pattern=”^application/x-rdp$” />
</preCondition>
</preConditions>
</outboundRules>
If you have any questions, leave a comment!
