· User
Configuration\Windows Settings\Scripts (Logon\Logoff)
· User
Configuration\Administrative Templates\System\Logon
· Computer Configuration\Administrative Templates\System\Logon
In the last two, you will see the
following policy settings:
1. Run these programs at user logon
2. Do not process the run once list
3. Do not process the legacy run list
The above policy settings appear in both:
User and Computer Configuration container.
For “Run these programs at user logon”
policy setting, if this policy setting is configured in both the container (user
and computer) the user policy setting will run just after computer policy
setting.
For last two “Do not process the run once
list” and “Do not process the legacy run list” policy settings, if this policy
setting is configured in both the container (user and computer) the computer
policy setting will take precedence over user policy setting.
Why so? The reason is very simple. The Run
Once list is configured in Local Machine
HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce only. The programs in
this registry key are processed only after user has logged on to the system.
There is no RunOnce key for user. That is why computer RunOnce will run after
user RunOnce.
Now, you may ask that there is logon
programs, login scripts and logon scripts but there is no Logoff Programs? It is
because a program requires system resources when it runs whereas a logoff shuts
down all the applications. While a windows is shutting down a program can not
stay in memory.
There is a difference between running a
program and a script. Please note the difference. A program is something which
is installed on users computer and you configure in “Run these programs at user
logon” by specifying the full path of that program. This program runs Locally.
On other hand, a script is something which is run over the network. You need to
specify a complete path of the program you wish to run when a user’s login
script has finished.
So the point is very clear and the script
or programs are run in the following order:
1. Computer Startup / Script runs. Will be
applicable to all the computers
2. User Login script runs. Will be
applicable to all the users.
3. Computer logon programs run. Will be
applicable to all the computers.
4. User logon programs run. Will be
applicable to all the users.
After user login script has finished, the
Winlogon at workstation will retrieve a list of programs to run on local
computer from GPO.
In above, there is no conflict in policy
settings so all the program will run one by one.
|