Article ID: 924034 - View products that this article applies to.
Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/256986/ )Description of the Microsoft Windows registry
This article discusses how to prevent a computer from running a user logon script in Microsoft Windows Server 2003.
User logon scripts contain a set of instructions. These instructions are run when a computer starts. For example, a user logon script may contain instructions about how to map network drives, about how to connect to network printers, or about how to run an antivirus program.
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.
You may experience certain situations where you may want to prevent a computer from running a user logon script. For example, you may want to do this when a terminal server hosts a special environment for a forest.
The user logon script is started from the Userinit.exe process. The Userinit registry value describes the programs that are started by the Winlogon.exe process. The Winlogon.exe process retrieves the Userinit startup parameters from a registry entry inside the following Winlogon registry subkey:
The parameter that controls the user logon script is set in the UserInitLoginScript variable.
To prevent the system from running the user logon script, the UserInitLoginScript variable must be removed. To do this, follow these steps:
For more information about how to start a program before the shell at logon, click the following article number to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/142905/ )How to launch a program before the shell at logon
Article ID: 924034 - Last Review: October 11, 2007 - Revision: 1.5
Contact us for more help
Connect with Answer Desk for expert help.