Microsoft KB Archive/314488

= How to modify the Group Policy for programs that run at user logon on a computer that is running Windows XP =

Article ID: 314488

Article Last Modified on 11/28/2007

-

APPLIES TO


 * Microsoft Windows XP Professional x64 Edition
 * Microsoft Windows XP Professional

-



This article was previously published under Q314488





The article is intended for advanced computer users. If you are not comfortable with advanced configuration, you might want to ask someone for help or to contact support. For information about how to do this, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/



SUMMARY
This article describes how to use the Group Policy snap-in to create or modify the list of programs that start automatically when you log on to your Microsoft Windows XP-based computer.



MORE INFORMATION
Windows XP has two separate Run policies:
 * Run at user logon
 * Legacy Run at user logon

Run at user logon policy
To create or modify the list of programs that start automatically when you log on to your computer, follow these steps:  Click Start, click Run, type mmc, and then click OK. On the File menu, click Add/Remove Snap-in. Click Add. Under Available Stand-alone Snap-ins, click Group Policy Object Editor, click Add, and then click Finish.

Note If you do not want to edit the Local Computer policy, click Browse to locate the Group Policy object that you want. Supply your user name and password if prompted, and then click Finish when you return to the Select Group Policy Object dialog box. Click Close, and then in the Add/Remove Snap-in dialog box, click OK. In the left pane of the Group Policy snap-in, expand Local Computer Policy, expand Computer Configuration, and then expand Administrative Templates.</li> Expand the System object, click the Logon object, and then in the right-pane, double-click Run these programs at user logon.</li> Click Enabled, and then click Show.</li> Click Add, type the name of the executable program (.exe) file or document that you want, and then click OK. You must specify the path to the file unless it is located in the %Systemroot% folder.</li> Repeat step 9 to add additional items to the Items to run at logon list.</li> Click OK twice.

The items that you added to the Items to run at logon list start automatically the next time that you log on to Windows on your computer. A list of these items is located in the following registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer\Run

</li></ol>

Legacy Run at user logon policy
The legacy programs that are configured to start when you log on to your computer are listed in the following registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

Many third-party programs, such as RealAudio, can be included in this category.

You can either enable or disable the legacy run list. You cannot modify it directly from within the Group Policy snap-in. If you want to add items to the list of programs that start automatically when you log on to your computer, see the &quot;Run at user logon policy&quot; section of this article.

To specify whether you want to start the programs on the legacy run list when you log on to your computer, follow these steps: <ol> Click Start, click Run, type mmc, and then click OK.</li> On the File menu, click Add/Remove Snap-in.</li> Click Add.</li> Under Available Stand-alone Snap-ins, click Group Policy Object Editor, click Add, and then click Finish.

Note If you do not want to edit the Local Computer policy, click Browse to locate the Group Policy object that you want. Supply your user name and password if prompted, and then click Finish when you return to the Select Group Policy Object dialog box.</li> Click Close, and then in the Add/Remove Snap-in dialog box, click OK.</li> In the left pane of the Group Policy snap-in, expand Local Computer Policy, expand Computer Configuration, and then expand Administrative Templates.</li> Expand the System object, click the Logon object, and then in the right-pane, double-click Do not process the legacy run list.</li> Do one of the following: <ul> Click Not Configured if you want to run legacy programs at user logon.</li> Click Enabled if you do not want to run legacy programs at user logon.</li> <li>Click Disabled if you want to run legacy programs at user logon.</li></ul>

Note The legacy programs that are configured to start when you log on to your computer may also be listed in the following registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce

To specify whether you want to start programs on the run-once list when you log on to your computer, follow the steps in the &quot;Legacy Run at user logon policy&quot; section of this article. In step 6, click Do not process the run once list, and then either enable or disable the policy.</li></ol>

Note To make the changes discussed in this article take effect, you must log off and then log back on to the system. Fast-user switching will not be sufficient on a disjoined Windows XP computer.

For more information about the Run and RunOnce registry keys, click the following article number to view the article in the Microsoft Knowledge Base:

179365 INFO: Run, RunOnce, RunServices, RunServicesOnce and Startup

For more information about the RunOnce registry key, click the following article number to view the article in the Microsoft Knowledge Base:

310593 Description of the RunOnceEx Registry Key

For more information about how to use the Group Policy Editor in Windows XP, click the following article number to view the article in the Microsoft Knowledge Base:

307882 How to use the Group Policy Editor to manage local computer policy in Windows XP

For more information about how to use the Msconfig utility to alter the startup programs in Windows XP, click the following article number to view the article in the Microsoft Knowledge Base:

310560 How to troubleshoot configuration errors by using the System Configuration utility in Windows XP

Note For testing purposes, this may also be done by using the Startup tab in Msconfig.

The third-party products that this article discusses are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability of these products.

If the articles that are listed earlier do not help you modify the Group Policy, search the Microsoft Knowledge Base for more information. To search the Microsoft Knowledge Base, follow these steps: <ol> <li>Visit the following Microsoft Web site:

http://support.microsoft.com

</li> <li>Type the text of the error message that you receive, or type a description of the problem, in the Search Support (KB) text box, and then press ENTER.</li></ol>

<div class="references_section">