When do computer startup scripts run?

Discussion in 'Windows Server' started by steve, Jan 14, 2005.

  1. steve

    steve Guest

    I have two laptops, both running XP SP2 and fully patched/updated. I have a
    startup script defined in GPO to add a few required registry entries to each
    machine on startup, and I temporarily added a msgbox "Test" to the script so
    I can see it is firing.

    On one machine, the msgbox shows before the ctrl-alt-del logon box appears,
    and on the other, the msgbox shows after the user has logged in, before the
    desktop appears. Any ideas what causes the difference?

    steve, Jan 14, 2005
    1. Advertisements

    1. Advertisements

  2. steve

    Jeff Swift Guest

    My first guess is that possibly one script is firing from
    \machine\scripts\startup and the other \user\scripts\logon. Is that a
    possibility? @startup a script fires prior to the three finger salute
    screen "ctrl-alt-del" and the @logon is once the user has authed with AD
    and is loading the desktop environment.

    Here is some more on the topic:
    In the Group Policy folder, the \machine\scripts\startup,
    \machine\scripts\shutdown, \user\scripts\logon, and \user\scripts\logoff
    folders store the scripts that you configure as part of the script policy's
    local computer policy.

    Script Types
    In Windows 2000 Group Policy, Microsoft has introduced four new script
    types. These script types are startup, shutdown, logon, and logoff. Startup
    and shutdown scripts are part of the Group Policy computer configuration.
    You run startup and shutdown scripts on each computer that you apply the
    script policy either directly or through Group Policy inheritance. Logon and
    logoff scripts are part of the Group Policy user configuration. Group Policy
    logon and logoff scripts provide a mechanism through which you can define
    and apply common scripts to multiple users. The Group Policy logon script
    isn't related to the logon script defined as part of a user's profile.



    This posting is provided "AS IS" with no warranties, and confers no rights.
    Use of attached scripts or code is subject to the terms specified in the
    Terms of Use posted at http://www.microsoft.com/info/cpyright.htm
    Jeff Swift, Jan 14, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.