Archive for category MS RDS (TS)

Windows 2008 R2 SP1 Remote Desktop Services – DPI change issue

Hotfix for this issue is available “You cannot change the DPI setting through a Remote Desktop session on a computer that is running Windows 7 or Windows Server 2008 R2“ http://support.microsoft.com/kb/2726399

Article how to create several Themes for users “The DPI adjustment is not available in a Remote Session (RDP)“ http://support.microsoft.com/kb/2544872

—————————————-

Background information:

  1. Windows 2008 Terminal Services allows changing displayed font size by modifying DPI value. To increase font size you can log on locally with admin rights and increase DPI till 120 DPI. It is system wide settings in Windows 2008 and is active in full Remote Desktop session as well as in RemoteApp session.
  2. Windows 2008 R2 SP1 Remote Desktop Services DPI value is not systemwide anymore and is ignored in full Remote Desktop session as well as in RemoteApp session.
  3. When using monitors with high resolution (1280 x 1024 and above) users often complain that there is a small font size.
  4. I have searched the Internet and discovered that this issue is known but there is no accepted solution:

5. Microsoft acknowledges that Windows 2008 R2 doesn’t allow DPI (Font Size / Scaling) changes on Remote and this is the issue on Windows Server 2008 R2.

My research for Windows 2008 R2 SP1 Remote Desktop Services:

1. When DPI value is changed in “Control Panel\All Control Panel Items\Display” the “[HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics]” registry key parameters are affected (additional information “Windows Server 2003 Resource Kit Registry Reference http://technet.microsoft.com/ru-ru/library/cc780212%28WS.10%29.aspx”:

  • AppliedDPI – current DPI value.
  • CaptionFont, IconFont, MenuFont, MessageFont, SmCaptionFont, StatusFont – binary values representing font name and font size used.
  • c. …

2. With the same “AppliedDPI” value but different resolutions – you can get different font and other values in “[HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics]”.

3. If “AppliedDPI” value is changed and not equals to the default “96 (decimal)”:

  • It is identified using Sysinternals Process Monitor, that most of „HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics” registry key values are changed by explorer.exe process during user logon when using full RDP Session. “AppliedDPI” value is reverted back to “96 (decimal)” and other settings are changed accordingly.
  • When using RemoteApp mode – there is no explorer.exe and all settings become unchanged but “AppliedDPI” value is ignored.

4. If “AppliedDPI” value leaved unchanged and equals to the default “96 (decimal)”, than it is possible to change other values under „HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics” and those values will not be modified by explorer.exe process.

I would like to recommend the following procedure to mitigate font size issue for applications that use Windows font settings.

  1. Log on to Windows 2008 R2 SP1 server using local console.
  2. Change display resolution to be identical that is used by your users widely.
  3. Logoff / logon.
  4. Change DPI value using “Control Panel\All Control Panel Items\Display”.
  5. Logoff / logon.
  6. To distribute settings using exported registry file:
  • Export “[HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics]” registry key.
  • Edit exported registry key and delete “AppliedDPI=…” string.
  • Distribute the *.reg file to users using your favorite method (log on script for example).

7. To distribute setting using Group Policy preferences:

  • On the same Windows 2008 R2 SP1 server lunch “Group Policy Management”.
  • Create GPO and go to “User Configuration – Preferences – Windows Settings – Registry”. Lunch “Registry Wizard” and import all “[HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics]” parameters from “Local Computer” excluding “(Default)” and “AppliedDPI”. For each imported parameter enable “Run in logged-on user’s security context (user policy option)”
  • Edit GPO “Security Filtering” if needed.
  • Distribute GPO to users.

Some applications (for example 1C:Enterprise 8 accounting application) do not use Windows font settings but have embedded font configuration (size for example). For those applications the above recommendations do not help. I would like to advise to do one of the following:

  • Replace monitor to lower resolution.
  • Execute application locally on workstation and increase DPI value.

33 Comments

HTML Formatting is not being transported over Remote App Clipboard (RDP 7.0)

I have Windows 2008 R2 SP1 session host with RemoteApp configured. I have the text formatting issues when doing copy / paste operations between RemoteApp and local office applications in very specific directions:

  1. Copy from RemoteApp MS Excel 2010 and paste (-> ) to client MS Excel 2010: OK
  2. Copy from client MS Excel 2010 and paste (-> ) to RemoteApp MS Excel 2010: OK
  3. Copy from RemoteApp MS Excel 2010 and paste (-> ) to client MS Word 2010: OK
  4. Copy from client MS Word 2010 and paste (->) to RemoteApp MS Excel 2010: text formatting is lost!!!
  5. Copy from RemoteApp MS Word 2010 and paste (->) to client MS Excel 2010: text formatting is lost!!!
  6. Copy from client MS Excel 2010 and paste (-> ) to RemoteApp MS Word 2010: OK
  7. Copy from RemoteApp MS Word 2010 and paste (-> ) to client MS Word 2010: OK
  8. Copy from client MS Word 2010 and paste (->) to RemoteApp MS Word 2010: OK

The issue also happens when I use 1C accounting application (v. 8.1.15) in RemoteApp mode and a local Word / Wordpad.

Additional information

  1. Windows 2008 R2 Remote Desktop Session Host: Windows 2008 Standard R2 SP1 with Microsoft Office 2010 x86
  2. Client side (Windows XP and Windows 7 both have the issue):
    1. Windows XP SP3 x86 with Microsoft Office 2010 x86, Remote Desktop Client 6.1 (mstsc.exe = 6.0.6.001.1800)
    2. Windows 7 SP1 x64 with Microsoft Office 2010 x86, Remote Desktop Client 7.1 (mstsc.exe = 6.1.7601.17514)
  3. Microsoft Word and Excel versions are the same on clients and RD Session host:
    1. Winword.exe: 14.0.5123.5000
    2. Excel.exe: 14.0.4756.1000
  4. It happens with all files.
    1. I simply open locally installed Word 2010, create and format a table, write down some text and try to copy / paste this table to Excel 2010 in RemoteApp mode. I get a plain text only.
    2. Or I open Word 2010 in RemoteApp mode, create and format a table, write down some text and try to copy / paste this table to locally installed Excel 2010. I get a plain text only.
  5. It is tested that:
    1. All is working fine with

i.      Windows 2008 x86 SP2 Terminal Services

ii.      Windows XP x86 SP3 with RDC 6.1.After upgrading RDC 6.1 to RDC 7.0 on Windows XP x86 SP3 – the issue appears.

6. The problem is definitely with RemoteApp shell – RDPShell.exe, when RDP 7.0 or higher is used.

Cause

Microsoft product support services confirmed – it is the Bug (HTML Formatting is not being transported over Remote App Clipboard on W8k2 R2 SP1 RDSH and W7 SP1). Microsoft plans to fix it only with next Windows / RDP version.

Resolution / Workaround

Use a full RDP Session to connect to your RDSH instead of Remote App.

4 Comments

Useful MS RDS (TS) links

Leave a comment