DetailPage-MSS-KB

Microsoft small business knowledge base

Article ID: 982591 - Last Review: April 14, 2010 - Revision: 1.0

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.

Symptoms



When you disable startup applications by using MSConfig and then re-enable them again, those applications may not run.

 

Repro Steps:

1. Add a Run key as below.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

      Value name: notepad

      Value data: %SysytemRoot%\system32\notepad.exe

      Type: REG_EXPAND_SZ

 

2. Confirm the notepad will open when log on.

3. Open MSConfig

4. Move to "Startup" tab.

5. Uncheck the "notepad" item (startup name is "Microsoft Windows Operating System") and apply it.

6. Re-check and apply it.

7. See the following key is changed to REG_SZ.

      Value name: notepad

      Value data: %SysytemRoot%\system32\notepad.exe

      Type: REG_SZ

 

8. See if the notepad will open when log on.

 

Expected result: Notepad will run after logon

Actual result: Notepad won't run.

 

 

 

Cause



The following registry data are saved when startup applications are disabled. When the applications are re-enabled, the registry data are restored as REG_SZ type.

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

When you re-enable a startup application that requires path environmental variables specified with the registry type REG_EXPAND_SZ, the environmental variables are no longer usable and the application will not be executed because the registry is restored as REG_SZ instead of REG_EXPAND_SZ.

 

Resolution



There are two possible solutions.

1. Before using msconfig, make sure that the pertinent registries have full path without environmental variables.


2. After this problem happens, change the registry type to REG_EXPAND_SZ.

a. In MSConfig Startup tab, check the command for each application.
b. If the command has environmental variables such as %SystemRoot%, check the location to see if it is in the registry
c. If it is in the registry, remember the location and command.
d. Start Registry Editor by clicking %SystemRoot%\regedit.exe.
e. Locate the registry you remember at step c and remember the value name of the corresponding command.
f. Right Click the value and delete it
g. Create a new value with “Expandable String value”
h. Name the new value the name you remembered at step e.
i. Set the command you remembered at step c as the value data of the new value.

Important: Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs.

 

More Information



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

 

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.

APPLIES TO
  • Microsoft Windows XP Home Edition
  • Microsoft Windows XP Professional
  • Microsoft Windows Server 2003, Standard Edition (32-bit x86)
  • Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
  • Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
  • Windows Server 2008 R2 Standard
  • Windows Server 2008 R2 Enterprise
  • Windows Server 2008 R2 Datacenter
  • Windows 7 Home Premium
  • Windows 7 Enterprise
  • Windows 7 Professional
  • Windows 7 Ultimate
Keywords: 
kbrapidpub KB982591
Share
Additional support options
Ask The Microsoft Small Business Support Community
Contact Microsoft Small Business Support
Find Microsoft Small Business Support Certified Partner
Find a Microsoft Store For In-Person Small Business Support