Controlling GPO Run Sequence

I need to run two GPOs. Both of them will run a script on logon. How can I control it such that GPOA script will run complete before the script in GPOB run?

Who is Participating?
dkumar82Connect With a Mentor Commented:
When you are applying Policy - it will flow like this


So If You have One Script @ Domain level and One to OU level , then Domain Level will execute 1st before the 2nd.

if you asked something , please describe in detail. thanks
arnoldConnect With a Mentor Commented:
Adding to the above, you can configure GPO application such  that scripts run in synchronous mode rather asynchronous.
kmkimloAuthor Commented:

Sorry for not describing the problem i faced in full.

I have a Domain GPO that runs a Rsync Script and a OU GPO that will change some configuration files that are Rsynced, I do not want to run into a situation where there is a race condition. I think you all do know what i meant.

But how do I ensure that the logon script of the Domain GPO is executed to completion before the OU Logon script is executed?

Thanks a lot.

I am new to GPO administration. Pardon me if my questions are too noobish =D
The question is why would you run one mechanism at one level while running the modifying mechanism at a lower level?
Why not run the modifying script and the rsync script sequentially within the same.
Alternatively, the policy that is rsyncing needs to be enforced.
This means that it will be executed last.
I.e. set the domain GPO that does the RSYNc to be enforced. Note you should limit the scope of things this GPO does or it will override the settings set by earlier OU GPOs.
on other way - You can push both the script @ domain level ( if require for entire organization) and set the link order (means numbering 1st 2nd ) so that 1st one will execute prior to 2nd one.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.