Installers running in Terminal Server may not copy all per-user Default settings to each user's HKCU hive.

Support for Windows Server 2003 ended on July 14, 2015

Microsoft ended support for Windows Server 2003 on July 14, 2015. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

This article has been archived. It is offered "as is" and will no longer be updated.
Source: Microsoft Support
RAPID PUBLISHING
RAPID PUBLISHING ARTICLES PROVIDE INFORMATION DIRECTLY FROM WITHIN THE MICROSOFT SUPPORT ORGANIZATION. THE INFORMATION CONTAINED HEREIN IS CREATED IN RESPONSE TO EMERGING OR UNIQUE TOPICS, OR IS INTENDED SUPPLEMENT OTHER KNOWLEDGE BASE INFORMATION.
Symptom


Under the following conditions:
  • a Terminal Server unaware app running in Terminal Server execution mode deletes entries in the HKCU key
  • a program is installed/re-installed in Terminal Server (in install mode) OR installed via the MSI installer


Then some per-user registry entries written by the installer to the default user profile (HKU\.Default\Software) may not be copied to the current user (HKCU\Software).

This may cause some of these symptoms:
  • Programs to have unintended or non default per-user behavior due to HKCU registry entries not being set to the default
  • In some cases, it also been observed that some installers may continue to look for HKCU to be written, and continually launch into a reinstall cycle due to these missing entries.
Cause


This issue can be caused when  HKCU\Software registry entries are deleted by an application. The delete can result in a TermSrvCopyKeyOnce key being applied to the Terminal Server's view of the registry.

Afterwards, at the end of the same program install or re-install, and during per user login, when the HKU\.Default\Software settings are copied to each user's HKCU\Software hive; the TermSrvCopyKeyOnce is checked for each sub-key in the tree. If this key is present, the copy operation will not continue for that key.
Resolution


If your user's are using Terminal Server, and you suspect that the initial default settings are not being copied to the HKCU for each user.

Then compare: HKU\.Default\Software\<Vendor>
With: HKCU\Software\<Vendor>

If the values are not being applied to HKCU, it is possible that you are facing this issue.

In order to resolve the issue, search for and delete all instances of the TermSrvCopyKeyOnce under the following registry path: HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\Install\<Vendor>.
For example, you may need to delete:

HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\Install\<Vendor>\<Product>\TermSrvCopyKeyOnce
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\Install\<Vendor>\<Product>\<Feature1>\TermSrvCopyKeyOnce
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\Install\<Vendor>\<Product>\<Feature2>\TermSrvCopyKeyOnce
More Information
DISCLAIMER
MICROSOFT AND/OR ITS SUPPLIERS MAKE NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY, RELIABILITY OR ACCURACY OF THE INFORMATION CONTAINED IN THE DOCUMENTS AND RELATED GRAPHICS PUBLISHED ON THIS WEBSITE (THE “MATERIALS”) FOR ANY PURPOSE. THE MATERIALS MAY INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS AND MAY BE REVISED AT ANY TIME WITHOUT NOTICE.

TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, MICROSOFT AND/OR ITS SUPPLIERS DISCLAIM AND EXCLUDE ALL REPRESENTATIONS, WARRANTIES, AND CONDITIONS WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO REPRESENTATIONS, WARRANTIES, OR CONDITIONS OF TITLE, NON INFRINGEMENT, SATISFACTORY CONDITION OR QUALITY, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THE MATERIALS.
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.
Properties

Article ID: 969523 - Last Review: 01/15/2015 11:03:50 - Revision: 2.0

  • Microsoft Windows Server 2003 R2 Datacenter Edition (32-Bit x86)
  • Microsoft Windows Server 2003 R2 Datacenter x64 Edition
  • Microsoft Windows Server 2003 R2 Enterprise Edition (32-Bit x86)
  • Microsoft Windows Server 2003 R2 Enterprise x64 Edition
  • Microsoft Windows Server 2003 R2 Standard Edition (32-bit x86)
  • Microsoft Windows Server 2003 R2 Standard x64 Edition
  • Microsoft Windows Server 2003 R2 Standard Edition KN
  • Microsoft Windows Server 2003, Web Edition
  • Microsoft Windows Server 2003, Datacenter x64 Edition
  • Microsoft Windows Server 2003, Enterprise x64 Edition
  • Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
  • Microsoft Windows Server 2003, Standard x64 Edition
  • Microsoft Windows Server 2003, Standard Edition (32-bit x86)
  • kbnosurvey kbarchive kbrapidpub kbnomt KB969523
Feedback