Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

User variables are not resolved correctly in Windows


View products that this article applies to.

Symptoms

Consider the following scenario:
  • You have a computer that is running Windows 8.1, Windows Server 2012 R2, Windows 7 Service Pack 1 (SP1), or Windows Server 2008 R2 SP1.
  • You create an environment variable, and you set it to %APPDATA% or %LOCALAPPDATA%.
  • You run the Set command from a command prompt to query the environment variable. For example, if you had set the value to %APPDATA%, you can see the following query result:
    UserVariableName=C:\Users\UserFolder\AppData\Roaming
  • Applications on the computer make some changes to system parameters so that a WM_SETTINGCHANGE message is sent to the top-level windows.
  • You open a new command prompt window, and then run the Set command again.
In this scenario, you receive the following result:
UserVariableName=%APPDATA%

↑ Back to the top


Resolution

To resolve this issue in Windows 8.1 and Windows Server 2012 R2, install update 2919355.

To resolve this issue in Windows 7 and Windows Server 2008 R2, install the hotfix that is described in this article.

Update information for Windows 8.1 and Windows Server 2012 R2

For more information about how to obtain update 2919355, click the following article number to view the article in the Microsoft Knowledge Base:
2919355 Windows RT 8.1, Windows 8.1, and Windows Server 2012 R2 Update April, 2014

Hotfix information for Windows 7 and Windows Server 2008 R2

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing the problem described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft website: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

To apply this hotfix, you must be running Windows 7 SP1 or Windows Server 2008 R2 SP1. For more information about how to obtain a Windows 7 or Windows Server 2008 R2 service pack, click the following article number to view the article in the Microsoft Knowledge Base:
976932 Information about Service Pack 1 for Windows 7 and for Windows Server 2008 R2


Registry information

To apply this hotfix, you do not have to make any changes to the registry.

Restart requirement

You must restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.
File information
The global version of this hotfix installs files that have the attributes that are listed in the following tables. The dates and the times for these files are listed in Coordinated Universal Time (UTC). The dates and the times for these files on your local computer are displayed in your local time together with your current daylight saving time (DST) bias. Additionally, the dates and the times may change when you perform certain operations on the files.
Windows 7 and Windows Server 2008 R2 file information note
Important Windows 7 hotfixes and Windows Server 2008 R2 hotfixes are included in the same packages. However, hotfixes on the Hotfix Request page are listed under both operating systems. To request the hotfix package that applies to one or both operating systems, select the hotfix that is listed under "Windows 7/Windows Server 2008 R2" on the page. Always refer to the "Applies To" section in articles to determine the actual operating system that each hotfix applies to.
  • The files that apply to a specific product, SR_Level (RTM, SPn), and service branch (LDR, GDR) can be identified by examining the file version numbers as shown in the following table.
    VersionProductSR_LevelService branch
    6.1.760 1.22 xxxWindows 7 and Windows Server 2008 R2SP1LDR
  • The MANIFEST files (.manifest) and the MUM files (.mum) that are installed for each environment are

    listed separately in the "Additional file information for Windows Server 2008" section. MUM files and MANIFEST files, and the associated security catalog (.cat) files, are extremely important to maintaining the state of the updated component. The security catalog files, for which the attributes are not listed, are signed with a Microsoft digital signature.
For all supported x86-based versions of Windows 7 SP1
File nameFile versionFile sizeDateTimeHashesPlatform
Shell32.dll6.1.7601.2252912,875,26403-Dec-201308:10MD5: E36CF218CBA3DBC3301ED14FFF320842
SHA1: 18FA33789BC8CFD20F317B9ECD5DCCDDBBA05EB5
x86
For all supported x64-based versions of Windows 7 SP1 and Windows Server 2008 R2 SP1
File nameFile versionFile sizeDateTimeHashesPlatform
Shell32.dll6.1.7601.2252914,179,32803-Dec-201308:44MD5: 0EEFB2E58B1C0B3FD842E5FB87665F78
SHA1: A2E07BE9BCFB6FF382625979A40542DE26D58E8C
x64
Shell32.dll6.1.7601.2252912,875,26403-Dec-201308:10MD5: E36CF218CBA3DBC3301ED14FFF320842
SHA1: 18FA33789BC8CFD20F317B9ECD5DCCDDBBA05EB5
x86
For all supported IA-64-based versions of Windows Server 2008 R2 SP1
File nameFile versionFile sizeDateTimeHashesPlatform
Shell32.dll6.1.7601.2252921,195,77603-Dec-201307:53MD5: 143F44B0B01C56D90FCA28982E3C45C3
SHA1: 5174E4C16BDCB7BD2D382EC4E4C9BA2581EEC394
IA-64
Shell32.dll6.1.7601.2252912,875,26403-Dec-201308:10MD5: E36CF218CBA3DBC3301ED14FFF320842
SHA1: 18FA33789BC8CFD20F317B9ECD5DCCDDBBA05EB5
x86

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


More Information

For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

For more information about user environment variables, go to the following Microsoft website:For more information about a similar issue on system environment variables, click the following article number to view the article in the Microsoft Knowledge Base:
2858686 System environment variable is not resolved correctly in Windows Server 2008 SP2

Additional file information

Additional file information for Windows 7 and Windows Server 2008 R2

Additional files for all supported x86-based versions of Windows 7 SP1
File propertyValue
File nameX86_88f9ce507e22a53b8dc910389f157712_31bf3856ad364e35_6.1.7601.22529_none_e0f186aa3540389f.manifest
File versionNot applicable
File size695
Date (UTC)03-Dec-2013
Time (UTC)12:30
SHA-1 hashNot applicable
MD5 hashNot applicable
File nameX86_microsoft-windows-shell32_31bf3856ad364e35_6.1.7601.22529_none_6eb44a6c895f5db2.manifest
File versionNot applicable
File size1,059,457
Date (UTC)03-Dec-2013
Time (UTC)08:41
SHA-1 hashNot applicable
MD5 hashNot applicable
Additional files for all supported x64-based versions of Windows 7 SP1 and Windows Server 2008 R2 SP1
File propertyValue
File nameAmd64_7803b46803e24f525ff7fb33b0292a98_31bf3856ad364e35_6.1.7601.22529_none_c5fbebc2db18b4d6.manifest
File versionNot applicable
File size699
Date (UTC)03-Dec-2013
Time (UTC)12:30
SHA-1 hashNot applicable
MD5 hashNot applicable
File nameAmd64_c0526cc1a0e1df8f50db97ae247ff805_31bf3856ad364e35_6.1.7601.22529_none_0d79c72b03ba9e71.manifest
File versionNot applicable
File size1,040
Date (UTC)03-Dec-2013
Time (UTC)12:30
SHA-1 hashNot applicable
MD5 hashNot applicable
File nameAmd64_microsoft-windows-shell32_31bf3856ad364e35_6.1.7601.22529_none_cad2e5f041bccee8.manifest
File versionNot applicable
File size1,058,443
Date (UTC)03-Dec-2013
Time (UTC)09:32
SHA-1 hashNot applicable
MD5 hashNot applicable
File nameWow64_microsoft-windows-shell32_31bf3856ad364e35_6.1.7601.22529_none_d5279042761d90e3.manifest
File versionNot applicable
File size1,054,916
Date (UTC)03-Dec-2013
Time (UTC)08:23
SHA-1 hashNot applicable
MD5 hashNot applicable
Additional files for all supported IA-64-based versions of Windows Server 2008 R2 SP1
File propertyValue
File nameIa64_804071d8a0cc16d0ae88c235a09ea372_31bf3856ad364e35_6.1.7601.22529_none_a276fd2895cd720d.manifest
File versionNot applicable
File size1,038
Date (UTC)03-Dec-2013
Time (UTC)12:30
SHA-1 hashNot applicable
MD5 hashNot applicable
File nameIa64_microsoft-windows-shell32_31bf3856ad364e35_6.1.7601.22529_none_6eb5ee62895d66ae.manifest
File versionNot applicable
File size1,058,441
Date (UTC)03-Dec-2013
Time (UTC)08:26
SHA-1 hashNot applicable
MD5 hashNot applicable
File nameWow64_microsoft-windows-shell32_31bf3856ad364e35_6.1.7601.22529_none_d5279042761d90e3.manifest
File versionNot applicable
File size1,054,916
Date (UTC)03-Dec-2013
Time (UTC)08:23
SHA-1 hashNot applicable
MD5 hashNot applicable


↑ Back to the top


Keywords: kb, kbautohotfix, kbqfe, kbhotfixserver, kbfix, kbsurveynew, kbexpertiseadvanced

↑ Back to the top

Article Info
Article ID : 2913826
Revision : 1
Created on : 1/7/2017
Published on : 4/8/2014
Exists online : False
Views : 265