Quote:

If I'm not mistaken, this would be active on the NEXT boot.



See the info at STARTUP ORDER FOR WINDOWS NT4/2000/XP and, for a better explanation of Win9x behavior (there's a list on the above-referenced page but it doesn't show where login processing occurs under Win9x), ScriptLogic's article How the various Run, RunOnce, RunServices, and RunServicesOnce registry keys are sequenced.

Under all flavors of Windows, both the HKLM\RunOnce and the HKCU\RunOnce keys are executed AFTER the login script is processed. I've used this myself in a Win9x environment, and it works fine. Haven't tried it under NT/2K/XP, but Les makes a good point: you might need to be sure you are running logon scripts synchronously under NT/2K/XP for this to always work, which you can control by policy or by modifying the registry (see Run Logon Scripts Synchronously).

So, the short answer is, it happens on the current login, not the NEXT boot.

Joe


Edited by jpeachman (2004-01-19 09:33 PM)