How to Launch a Program Before the Shell at Logon
This article was previously published under Q142905
This article has been archived. It is offered "as is" and will no longer be updated.
This article explains how to avoid interaction between a program and thestandard shell by running the program before the shell starts.
When you log on, the registry key
describes the actions made by WinLogon.
The Userinit value describes the program launched by WinLogon.
Userinit: REG_SZ Default value: USERINIT,NDDEAGNT.EXE
The first entry (USERINIT) is responsible for executing the shell program.To start your program before the shell, you may replace this entry withyour own program. If you do so, your application is responsible forlaunching the shell (Explorer.exe in Windows NT 4.0).
Explorer.exe is the standard shell in Windows NT 4.0. It can operate intwo modes:
- Browser mode (similar to File Manager)
- Shell mode (to manage the desktop, taskbar, and Start button)
- No instances of Explorer.exe are running
- It is the standard shell for the system (see shell registry value under
If you launch Explorer.exe from your own "userinit" initializationprogram, be sure that the shell value always references Explorer.exe,otherwise Explorer.exe will operate in browser mode instead of shellmode.
Article ID: 142905 - Last Review: 12/04/2015 13:05:49 - Revision: 3.1
Microsoft Windows NT Server 4.0 Standard Edition, Microsoft Windows NT Workstation 4.0 Developer Edition
- kbnosurvey kbarchive kbui KB142905