 <?xml-stylesheet type="text/css" href="https://www.esdm.co.uk/Data/style/rss1.css" ?> <?xml-stylesheet type="text/xsl" href="https://www.esdm.co.uk/Data/style/rss1.xsl" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
  <channel>
    <title>The knowledge base blog</title>
    <link>https://www.esdm.co.uk/knowledge</link>
    <description />
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>mojoPortal Blog Module</generator>
    <language>en-GB</language>
    <ttl>120</ttl>
    <atom:link href="https://www.esdm.co.uk/Blog/RSS.aspx?p=138~108~149" rel="self" type="application/rss+xml" />
    <itunes:owner />
    <itunes:explicit>no</itunes:explicit>
    <item>
      <title>RemoteApp connection issue with Server 2012 from Windows 7 &amp; 8 PCs (with Event ID 4625 in the Event log)</title>
      <description><![CDATA[<p>Having just built a nice new shiny Window Server 2012 VM with Remote Desktop Gateway Services installed we encountered a problem where one user was not able to start RemoteApp applications from their home PC&nbsp;even though they were able to launch them from&nbsp;the 2008 R2 server we were using previously. The user was able to access the RDWeb page for the server, but launching any applications failed, as did launching them from RemoteApp RDP files. The error message the user was receiving was as follows (however as seems to be the case with RD Gateway sometimes a different connection failure would be randomly returned):</p>

<p><a href="https://www.esdm.co.uk/Data/Sites/1/media/wlw/img_29072014_130225.png"><img alt="RemoteApp Disconnected" src="https://www.esdm.co.uk/Data/Sites/1/media/wlw/img_29072014_130225_thumb.png" style="border-width: 0px; border-style: solid;" title="RemoteApp Disconnected" /></a></p>

<blockquote>
<p>i.e. Remote Desktop can't connect to the remote computer for one of these reasons:</p>

<p>1) Remote access to the server if not enabled</p>

<p>2) The remote computer is turned off</p>

<p>3) The remote computer is not available on the network</p>

<p>Make sure the remote computer is turned on and connected to the network, and that remote access is enabled.</p>
</blockquote>

<p>After a lot of time trying to work out why this single user could not connect we found an error in the Security Event Log looking similar to that shown below.<br />
NOTE: The Server Manager\Remote Desktop Services\Servers screen in Windows Server 2012 shows Event Log information but it appears that it doesn't show everything relevant,&nbsp;because this error didn’t appear there so we chased our tails for a long time before actually finding this error in the Security Event Log.</p>

<p>------------------------------------------------</p>

<p>Log Name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Security<br />
Source:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Microsoft-Windows-Security-Auditing<br />
Date:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 29/07/2014 15:27:57<br />
Event ID:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4625<br />
Task Category: Logon<br />
Level:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Information<br />
Keywords:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Audit Failure<br />
User:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; N/A<br />
Computer:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; myserver.mydomain.local<br />
<br />
Description:<br />
An account failed to log on.</p>

<p>Subject:<br />
&nbsp;&nbsp;&nbsp; Security ID:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NULL SID<br />
&nbsp;&nbsp;&nbsp; Account Name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -<br />
&nbsp;&nbsp;&nbsp; Account Domain:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -<br />
&nbsp;&nbsp;&nbsp; Logon ID:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x0</p>

<p>Logon Type:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3</p>

<p>Account For Which Logon Failed:<br />
&nbsp;&nbsp;&nbsp; Security ID:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NULL SID<br />
&nbsp;&nbsp;&nbsp; Account Name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; myusername<br />
&nbsp;&nbsp;&nbsp; Account Domain:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mydomain</p>

<p>Failure Information:<br />
&nbsp;&nbsp;&nbsp; Failure Reason:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; An Error occured during Logon.<br />
&nbsp;&nbsp;&nbsp; Status:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0xC000035B<br />
&nbsp;&nbsp;&nbsp; Sub Status:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x0</p>

<p>Process Information:<br />
&nbsp;&nbsp;&nbsp; Caller Process ID:&nbsp;&nbsp;&nbsp; 0x0<br />
&nbsp;&nbsp;&nbsp; Caller Process Name:&nbsp;&nbsp;&nbsp; -</p>

<p>Network Information:<br />
&nbsp;&nbsp;&nbsp; Workstation Name:&nbsp;&nbsp;&nbsp; remotepcname<br />
&nbsp;&nbsp;&nbsp; Source Network Address:&nbsp;&nbsp;&nbsp; -<br />
&nbsp;&nbsp;&nbsp; Source Port:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -</p>

<p>Detailed Authentication Information:<br />
&nbsp;&nbsp;&nbsp; Logon Process:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp; Authentication Package:&nbsp;&nbsp;&nbsp; NTLM<br />
&nbsp;&nbsp;&nbsp; Transited Services:&nbsp;&nbsp;&nbsp; -<br />
&nbsp;&nbsp;&nbsp; Package Name (NTLM only):&nbsp;&nbsp;&nbsp; -<br />
&nbsp;&nbsp;&nbsp; Key Length:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0</p>

<p>This event is generated when a logon request fails. The Subject fields indicate the account on the local system which requested the logon. This is most commonly a service such as the Server service, or a local process such as Winlogon.exe or Services.exe.</p>

<p>The Logon Type field indicates the kind of logon that was requested. The most common types are 2 (interactive) and 3 (network).</p>

<p>The Process Information fields indicate which account and process on the system requested the logon.</p>

<p>The Network Information fields indicate where a remote logon request originated. Workstation name is not always available and may be left blank in some cases.</p>

<p>The authentication information fields provide detailed information about this specific logon request.<br />
&nbsp;&nbsp;&nbsp; - Transited services indicate which intermediate services have participated in this logon request.<br />
&nbsp;&nbsp;&nbsp; - Package name indicates which sub-protocol was used among the NTLM protocols.<br />
&nbsp;&nbsp;&nbsp; - Key length indicates the length of the generated session key. This will be 0 if no session key was requested.</p>

<p>------------------------------------------------------------------</p>

<p>After researching this error it turned out that the problem was caused by a local policy setting on the remote PC (not the server). The policy that needed changes was:</p>

<p>Computer Configuration-&gt;Windows Settings-&gt;Security Settings – Network security:LAN Manager authentication level.</p>

<p>The default on Windows 7 &amp; 8 is to not have any value set for this setting, though this particular user's PC it was set to "Send LM and NTLM - use NTLMv2 session security if negotiated&nbsp;"; it needs to be set to “Send NTLMV2 response only”. Once this was done the Windows 8.1 PC was able to open RemoteApp applications without problems.</p>

<p>This setting can be changed using the local group policy editor on the PC (run gpedit.msc) and changing the values as shown below:</p>

<p><a href="https://www.esdm.co.uk/Data/Sites/1/media/wlw/img_29072014_155257.png"><img alt="Local Policy Group Editor" src="https://www.esdm.co.uk/Data/Sites/1/media/wlw/img_29072014_155257_thumb.png" style="border-width: 0px; border-style: solid;" title="Local Policy Group Editor" /></a></p>
<br /><a href='https://www.esdm.co.uk/remoteapp-connection-issue-with-server-2012-from-windows-7-8-pcs-with-event-id-4625-in-the-event-log'>Steve Ellwood</a>&nbsp;&nbsp;<a href='https://www.esdm.co.uk/remoteapp-connection-issue-with-server-2012-from-windows-7-8-pcs-with-event-id-4625-in-the-event-log'>...</a>]]></description>
      <link>https://www.esdm.co.uk/remoteapp-connection-issue-with-server-2012-from-windows-7-8-pcs-with-event-id-4625-in-the-event-log</link>
      <author>stevee@esdm.co.uk (Steve Ellwood)</author>
      <comments>https://www.esdm.co.uk/remoteapp-connection-issue-with-server-2012-from-windows-7-8-pcs-with-event-id-4625-in-the-event-log</comments>
      <guid isPermaLink="true">https://www.esdm.co.uk/remoteapp-connection-issue-with-server-2012-from-windows-7-8-pcs-with-event-id-4625-in-the-event-log</guid>
      <pubDate>Tue, 29 Jul 2014 17:49:00 GMT</pubDate>
    </item>
  </channel>
</rss>