Windows Init

From wikinotes

Startup Directory

progs here run on login C:\Users\Username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup


Registry Keys

Startup Scripts

Registry Keys in Order of Execution.

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServices

<Logon Prompt>
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

StartUp Folder
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce

Generally speaking, the autorun registry keys are loaded asynchronously in an undefined order. It is unclear whether or not they wait for an entire stage to complete before running another stage's scripts.


(MSDN) Definition of Run, RunOnce, etc. Registry Keys https://support.microsoft.com/en-us/kb/137367
(MSDN) Windows Logon Init (Registry Keys Run, RunOnce, ...) https://support.microsoft.com/en-ca/kb/179365
(MSDN) Windows Startup Debugging https://technet.microsoft.com/en-us/library/bb457123.aspx
summary windows init ordering http://stackoverflow.com/questions/13685960/whats-the-order-of-windows-startup
detailed windows init ordering http://sourcedaddy.com/windows-7/understanding-the-startup-process.html