After installing the last Windows 10 1803 April Update, users began to complain about the incorrect operation of RemoteAPP applications published on RDS hosts running Windows Server 2012 R2 / Server 2016 (all servers have updated with the latest security patches). RemoteApp applications started to work much slower, any action that is caused by a mouse click is performed 2-3 times longer. Especially slowly the RemoteApp menus are displayed, which are called by right-clicking (menu items flicker, you have to click on them several times, and sometimes drop-down items in the menu do not appear at all).
Windows 7 clients and older Windows 10 builds (1703, 1607) are working with RemoteApps normally. If the user connects to the desktop of the RDS host in full-screen mode via the RDP client, all applications and menus are displayed normally.
To work around this problem, you can try to change the value of thepolicy Use Advanced RemoteFX graphics for RemoteApp in the local GPO editor (gpedit.msc) to the Disabled state (GPO section: Computer Configuration -> Policies -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Remote Session Environment).
If RDS servers publish graphics programs (usual, the CAD apps ) in the form of remoteapps, then they will not work without Remote FX support.
To fix the problem radically, you can roll back the current Windows build to the previous version (Recovery Options -> Get Started -> Go back to the previous version of Windows 10).
After upgrading to Windows 10 1803, a new version of the RDP client appears in the system, which currently does not work correctly with applications published via RemoteApp. In April Update 2018, the mstsc.exe and mstscax.dll files were updated.
However, there is also a workaround, which is to replace the RDP client version with an older one. Because performance issues with Remoteapp have been encountered also in Windows 10 1709, it’s best to use RDP libraries from 1607 or 1703.
Make sure that you have the version of Windows 10 1803 (OS Build 17133.1) or 1709 installed. Run the command:
Winver
If you replace these files in the C:\Windows\System32 directory with the versions of the files from the previous build of Windows 10 (1703 or 1607), the problem with the performance of RemoteApp is gone.
How to replace RDP client files in Windows 10:
- Close all RDP connections and running RemoteApp (it is better even to restart the computer)..
- Download the archive with the versions of mstsc.exe and mstscax.dll from Windows 10 1607 (mstsc-w10-1607.zip).
- Copy the original mstsc.exe and mstscax.dll files from the C:\windows\system32\ to the C:\BackUp using the commands:
md c:\backup\
copy C:\windows\system32\mstsc.exe c:\backup
copy C:\windows\system32\mstscax.dll c:\backup - Then you need to make your account the owner of the files mstsc.exe and mstscax.dll in the C:\windows\system32\ directory, disable inheritance and grant yourself the permissions to modify the files:
takeown /F C:\windows\system32\mstsc.exe
takeown /F C:\windows\system32\mstscax.dll
icacls C:\windows\system32\mstsc.exe /inheritance:d
icacls C:\windows\system32\mstscax.dll /inheritance:d
icacls C:\windows\system32\mstsc.exe /grant root:F
icacls C:\windows\system32\mstscax.dll /grant root:F
(In this example, the name of the local account with administrator permissions is root. Replace it with your account name). - Replace the files in the C:\windows\system32\ directory with the files from the downloaded archive.
- Restore the original permissions on the copied files. To do this, enable inheritance of NTFS permissions and set the owner of the files to “NT Service\TrustedInstaller”:
icacls C:\windows\system32\mstsc.exe /inheritance:e
icacls C:\windows\system32\mstscax.dll /inheritance:e
icacls C:\windows\system32\mstsc.exe /setowner "NT Service\TrustedInstaller" /T /C
icacls C:\windows\system32\mstscax.dll /setowner "NT Service\TrustedInstaller" /T /C - It remains to re-register the library:
regsvr32 C:\Windows\System32\mstscax.dll
This should restore the normal performance of your RemotApps.
You can replace the mstsc.exe and mstscax.dll files on multiple computers in an Active Directory domain by using the startup scripts in the GPO.
5 comments
Hi there!
Thank you very much – this article leaded me to the right answer!
Disabling RemoteFX did the trick – but – curious as I’m, I investigated further.
RemoteFX is relaying on UDP as protokoll this is as far as I know the main difference (in network terms) using it.
So i checked the IPS log of my firewall – seeing that it’s detecting an UdpFlood against my RDP Host.
created an Exception > everything works fine now =)
Performed the icacls (results as your screenshots), but when i copy the new files (via an admin command prompt) access denied.
The issue has to do with mouse polling. Some mice have a polling over 1000, adjusted your mouse to 120hz makes the lag go away.
Thank you, this fixed it for my. Razer Naga is set to a default of 1000 Hz. After reducing the polling rate to 125 Hz RemoteApps are now working fine.
After I had replaced the files Windows Update is not able to install 2020-07 Cumulative Update in Win 10 2004, KB4565503. The installation reported 0x8007000D, c:\windows\logs\cbs\CBS.log gives the following error:
Error CSI 0000000f (F) Hydration failed for component Microsoft-Windows-TerminalServices-ClientActiveXCore, version 10.0.19041.388, arch amd64, nonSxS, pkt {l:8 b:31bf3856ad364e35} on file mstscax.dll with NTSTATUS -1073283059[
Error CSI 00000010 (F) Matching binary mstscax.dll missing for component Microsoft-Windows-TerminalServices-ClientActiveXCore, version 10.0.19041.388, arch amd64, nonSxS, pkt {l:8 b:31bf3856ad364e35}[gle=0x80004005]
[…]
Info CSI 00000015 Hashes for file member [l:11]’mstscax.dll’ do not match.
After restoring the Win10 2004 files I was able to install the 2020-07 CU.