Solved

Controlling GPO Run Sequence

Posted on 2009-07-03
5
216 Views
Last Modified: 2012-05-07
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?

Thanks
0
Comment
Question by:kmkimlo
  • 2
  • 2
5 Comments
 
LVL 8

Accepted Solution

by:
dkumar82 earned 25 total points
Comment Utility
When you are applying Policy - it will flow like this

Local
Site
Domain
OU
Sub-Ou
....

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
0
 
LVL 76

Assisted Solution

by:arnold
arnold earned 25 total points
Comment Utility
Adding to the above, you can configure GPO application such  that scripts run in synchronous mode rather asynchronous.
0
 

Author Comment

by:kmkimlo
Comment Utility
Hi,

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
0
 
LVL 76

Expert Comment

by:arnold
Comment Utility
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.
0
 
LVL 8

Expert Comment

by:dkumar82
Comment Utility
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.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In a hurry?.. scroll down to "HERE's HOW TO DO IT" Section. Greetings All, I was going to post this as question/solution, but its seems more appropriate as an article considering its length.  I felt it important to illucidate all the details c…
Have you ever had a hard drive that you can't boot into, but need to change the registry? Here is the solution! This article guides you through accessing and editing a registry of a non-primary drive. To read registry information on a non-prim…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now