Programs Automatically Start When User Logs on to Windows (147369)



The information in this article applies to:

  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional
  • Microsoft Windows 2000 Datacenter Server
  • Microsoft Windows NT Workstation 3.5
  • Microsoft Windows NT Workstation 3.51
  • Microsoft Windows NT Server 3.5
  • Microsoft Windows NT Server 3.51

This article was previously published under Q147369

IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry

SUMMARY

When you log on to Windows, a program immediately starts. After you view the the Startup group, Autoexec.bat and your login script file, there is nothing that specifies the program to automatically start during Windows logon.

MORE INFORMATION

WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

Another way you can run or load programs at Windows 3.x startup is to add the file name of the program to the load= or run= line in the Win.ini file. In Windows NT and later, you can also use this method; however, you must add the file name of the program in the registry. To verify the load and run lines in the registry:
  1. Start Registry Editor (Regedt32.exe) and locate the following Registry subkey in the HKEY_CURRENT_USER subtree:

    \Software\Microsoft\Windows NT\CurrentVersion\Windows

  2. Look at the entries load and run.
  3. If the program path and file name is assigned to load or run, select load or run.
  4. From the Edit menu, select String and remove the path and file name.
  5. Choose OK and quit the Registry Editor.
  6. Log off and log back on.

Modification Type:MajorLast Reviewed:12/3/2003
Keywords:kbenv KB147369