Link to home
Start Free TrialLog in
Avatar of slimard
slimard

asked on

SCCM: Rerun if failed previous attempt

Hello,

I would like to deploy a software package to sales guys. So basically what I did is I created a .vbs file which will launch the installation. The script will ask the user if he would like to install the app, message box with yes or no. If no I sent a exit code -1 (failed) to SCCM.

My question is how many attempts SCCM will try to install the apps? In my advertisement, the option "Rerun if failed previous attempt" is set but there is nothing in the help that says how many attempts. Is this unlimited? Also what is delay between the user click "no" and SCCM tried to ReRun?

Thanks
S.
Avatar of U_Mansson
U_Mansson
Flag of Sweden image

You have to re-schedule the advertisement to make the "Rerun if failed previous attempt" option to take place. This option is only valid for mandatory assignments.

"Run as soon as possible" is not a valid schedule if you used that one. You have to use a date/time for this one and then update the schedule for the failed attempts to rerun.
Avatar of slimard
slimard

ASKER

Does this means that if advertisement failed that I need to reschedule the advertisement so that the failed on previous attempt will rerun again. I thought that SCCM will try to rerun until it gets a success.

Just to draw the picture: we have a sales application installed on sales laptop, from time to time we deliver an updated application through SCCM. We don't want the application to be "forced" deployed because sometimes the sales guys are at a customer connected to company vpn through 3G network. In this case if the application started to be installed, our sales cannot use the application to sell our products.

So I was thinking to write a vbscript which will display a message box with yes or no to install the application --> see my first email.
ASKER CERTIFIED SOLUTION
Avatar of U_Mansson
U_Mansson
Flag of Sweden image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of slimard

ASKER

Thank you! It is indeed a bit confusing...

I noted your suggestions and I will use them. However If  set the advertisement to not be mandatory: so letting the users when to install it, will the advertisement notify the user that there is a new package to be installed. Then it is possible to catch up what do they have chosen (run it or postpone it): SQL query? The goal is if they decided to postpone it three time, we would like to prevent them to use the current application until they run the packages?

Thank you
S
If its not mandatory they will get a balloon telling them that there is a new program available for them to install. There will be no postpone on that assignment, so that idea you have is not possible I'm afraid.
Avatar of slimard

ASKER

Ok thanks for the clarification