Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a package which contains a login script which I update from time to time.

I do some changes in the script then I do a "Update Distribution Points", which increments the "Source version" of the package.

In the adverisement I have set the schedule as a Mandantory assignment and "As soon as Possible". The "Program rerun behavior" is set to "Rerun if failed previous attempt".

I only want the Package program to rerun when the source version has changed.

The problem is that the program will not rerun beacause it has previously ran the package with sucess even though the source version has changed.

But then if I set rerun behaivor to "Always rerun", will it rerun everytime the client checks for updates OR only when the source version has changed?

We use SCCM 2007 SP2 R2.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Neither, you want to set it to Always rerun Program - but doing so will not do anything until you add another mandatory assignment. Each time you make a change to the script and you want it to run again, you'll want\need to add another mandatory assignment. Depending how often you modify the script, perhaps running the script on a schedule in SCCM and putting a conditional into the script itself might work better for you (aka be less work). i.e. check for a flag file or something - depending on what this script is doing for you.

share|improve this answer
    
But I use "As soon as possible" as mandatory assignment, and you can't add another "As soon as possible". But however I can remove it, click ok, and then add it again. Will it give the same effect? –  droidgren Jul 25 '11 at 14:27
    
yes, that will have the same effect (making it run again). –  Jordan W. Jul 25 '11 at 14:46
    
Ok thank you then! –  droidgren Jul 25 '11 at 16:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.