SOLVED
Home

Change the "Fast Retry" interval for Package and Program deployments

%3CLINGO-SUB%20id%3D%22lingo-sub-750763%22%20slang%3D%22en-US%22%3EChange%20the%20%22Fast%20Retry%22%20interval%20for%20Package%20and%20Program%20deployments%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-750763%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20created%20a%20Package%20and%20Program%20for%20a%20driver%20update%20utility%20I'm%20deploying%20which%20I've%20configured%20to%20run%20on%20a%20schedule.%20I've%20configured%20my%20script%20to%20exit%20with%20error%20code%201618%20(the%20%22Fast%20retry%22%20exit%20code)%20under%20certain%20conditions%20(the%20computer%20is%20running%20on%20battery%2C%20or%20an%20update%20would%20require%20a%20hard%20reboot%20and%20the%20user%20chose%20to%20defer).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUnlike%20the%20Application%20model%2C%20which%20I%20believe%20has%20a%20retry%20interval%20of%204%20hours%20when%20a%20%22Fast%20retry%22%20exit%20code%20is%20returned%2C%20my%20Program%20seems%20to%20re-run%20after%20only%2010%20minutes.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20found%20some%20information%20that%20indicated%20this%20setting%20is%20stored%20in%20the%20Site%20Control%20File.%20From%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.anoopcnair.com%2Fconfigmgr-sccm-2012-how-to-edit-site-control-sitectrl-file%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ethis%20article%20on%20Anoop's%20site%3C%2FA%3E%2C%20I%20learned%20that%20as%20of%20SCCM%202012%20this%20file%20is%20stored%20in%20the%20DB%20and%20used%20the%20query%20provided%20to%20view%20it.%20Sure%20enough%2C%20I%20think%20I've%20found%20the%20relevant%20property%20under%20the%20%22Software%20Distribution%22%20CLIENT_COMPONENT%20node%3A%20%22Execution%20Failure%20Retry%20Interval%22%2C%20but%20editing%20this%20directly%20appears%20to%20be%20unsupported%20and%20scary.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20any%20supported%20way%20to%20change%20this%20interval%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-750763%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EApp%20Management%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ECM%20current%20branch%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-784981%22%20slang%3D%22en-US%22%3ERe%3A%20Change%20the%20%22Fast%20Retry%22%20interval%20for%20Package%20and%20Program%20deployments%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-784981%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F80266%22%20target%3D%22_blank%22%3E%40Ryan%20Steele%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt's%20actually%20not%20unsupported%20or%20scary%20really%2C%20it's%20all%20just%20WMI.%26nbsp%3B%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsccm%2Fdevelop%2Fcore%2Funderstand%2Fhow-to-read-and-write-to-the-site-control-file-by-using-wmi%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsccm%2Fdevelop%2Fcore%2Funderstand%2Fhow-to-read-and-write-to-the-site-control-file-by-using-wmi%3C%2FA%3Ecovers%20the%20details%20(although%20this%20does%20make%20it%20look%20way%20more%20complicated%20that%20is%20really%20is%20particularily%20if%20you%20use%20PowerShell).%20The%20method%20that%20I%20think%20you%20are%20referring%20to%20on%20Anoop's%20site%20though%20is%20directly%20editing%20the%20DB%20which%20isn't%20supported%20though.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETest%20in%20your%20lab%20environment%20first%20of%20course.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20also%20sounds%20like%20a%20great%20blog%20topic%20and%20I%20haven't%20created%20a%20new%20one%20in%20a%20couple%20of%20months%20now%2C%20so%20maybe%20I%20will%20this%20weekend.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-844668%22%20slang%3D%22en-US%22%3ERe%3A%20Change%20the%20%22Fast%20Retry%22%20interval%20for%20Package%20and%20Program%20deployments%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-844668%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F80266%22%20target%3D%22_blank%22%3E%40Ryan%20Steele%3C%2FA%3E%26nbsp%3BAs%20a%20follow-up%20here%2C%20I%20reached%20out%20to%20the%20product%20group%20as%20I%20was%20going%20to%20write%20some%20sample%20code%20for%20you%2C%20but%20alas%2C%20the%20SDK%20documentation%20is%20out%20of%20date%20%F0%9F%A4%A8.%20I'm%20trying%20to%20figure%20out%20what%20the%20best%20and%20supported%20path%20is%20though.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-845193%22%20slang%3D%22en-US%22%3ERe%3A%20Change%20the%20%22Fast%20Retry%22%20interval%20for%20Package%20and%20Program%20deployments%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-845193%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F117994%22%20target%3D%22_blank%22%3E%40Jason%20Sandys%3C%2FA%3E%26nbsp%3BThanks%20Jason%2C%20much%20appreciated!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20a%20workaround%2C%20I%20modified%20my%20script%20to%20pause%20for%2020%20minutes%20before%20exiting%20with%20error%20code%201618%2C%20but%20this%20isn't%20ideal%20as%20it%20blocks%20other%20updates%20from%20installing%20during%20that%20interval.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Ryan Steele
Contributor

Hi all,

 

I've created a Package and Program for a driver update utility I'm deploying which I've configured to run on a schedule. I've configured my script to exit with error code 1618 (the "Fast retry" exit code) under certain conditions (the computer is running on battery, or an update would require a hard reboot and the user chose to defer).

 

Unlike the Application model, which I believe has a retry interval of 4 hours when a "Fast retry" exit code is returned, my Program seems to re-run after only 10 minutes.

 

I found some information that indicated this setting is stored in the Site Control File. From this article on Anoop's site, I learned that as of SCCM 2012 this file is stored in the DB and used the query provided to view it. Sure enough, I think I've found the relevant property under the "Software Distribution" CLIENT_COMPONENT node: "Execution Failure Retry Interval", but editing this directly appears to be unsupported and scary.

 

Is there any supported way to change this interval?

3 Replies
Solution

@Ryan Steele 

It's actually not unsupported or scary really, it's all just WMI.  https://docs.microsoft.com/en-us/sccm/develop/core/understand/how-to-read-and-write-to-the-site-cont... covers the details (although this does make it look way more complicated that is really is particularily if you use PowerShell). The method that I think you are referring to on Anoop's site though is directly editing the DB which isn't supported though.

 

Test in your lab environment first of course.

 

This also sounds like a great blog topic and I haven't created a new one in a couple of months now, so maybe I will this weekend.

 

@Ryan Steele As a follow-up here, I reached out to the product group as I was going to write some sample code for you, but alas, the SDK documentation is out of date 🤨. I'm trying to figure out what the best and supported path is though.

@Jason Sandys Thanks Jason, much appreciated!

 

As a workaround, I modified my script to pause for 20 minutes before exiting with error code 1618, but this isn't ideal as it blocks other updates from installing during that interval. 

Related Conversations
Extentions Synchronization
Deleted in Discussions on
3 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
9 Replies