Tech Community Live: Endpoint Manager edition
Jul 21 2022, 08:00 AM - 12:00 PM (PDT)

Patching Windows using task sequence suddenly pause for a long time 90 mins

%3CLINGO-SUB%20id%3D%22lingo-sub-3243602%22%20slang%3D%22en-US%22%3EPatching%20Windows%20using%20task%20sequence%20suddenly%20pause%20for%20a%20long%20time%2090%20mins%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3243602%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Everyone%2C%3C%2FP%3E%3CP%3EWe%20have%20been%20using%20task%20sequence%20to%20patch%20all%20Windows%20servers%20update%20monthly%20for%20years.%3C%2FP%3E%3CP%3ERecently%20the%20task%20sequence%20is%20deployed%20to%20UAT%20servers%20and%20all%20working%20as%20it%20usually%20does.%20Then%20a%20week%20later%20the%20same%20task%20sequence%20failed%20for%20the%20rest%20of%20production%20servers%20contains%20multiple%20servers%20OSes%20and%20no%20Windows%20Updates%20were%20installed.%3C%2FP%3E%3CP%3EThe%20task%20sequence%20is%20just%20simply%20like%20this%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22kenng2000_5-1646261881866.png%22%20style%3D%22width%3A%20282px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F352617i5B092AE928105E7A%2Fimage-dimensions%2F282x164%3Fv%3Dv2%22%20width%3D%22282%22%20height%3D%22164%22%20role%3D%22button%22%20title%3D%22kenng2000_5-1646261881866.png%22%20alt%3D%22kenng2000_5-1646261881866.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20smsts.log%20log%20shows%20it%20stops%20at%20this%20event%20and%20then%20time-out%20after%201%20hour%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22kenng2000_0-1646261007956.png%22%20style%3D%22width%3A%20685px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F352612iF65128697A7C30A9%2Fimage-dimensions%2F685x43%3Fv%3Dv2%22%20width%3D%22685%22%20height%3D%2243%22%20role%3D%22button%22%20title%3D%22kenng2000_0-1646261007956.png%22%20alt%3D%22kenng2000_0-1646261007956.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EWe%20then%20added%20a%20variable%26nbsp%3B%3CEM%3ESMSTSSoftwareUpdateScanTimeout%20%3D%207200%20%3C%2FEM%3Eto%20the%20top%20of%20task%20sequence%20to%20wait%20for%202%20hours%20instead%20if%201%20hour%20by%20default.%3C%2FP%3E%3CP%3ERerun%20the%20task%20sequence%20and%20found%20that%20the%20task%20sequence%20is%20now%20received%20the%20notification%20exactly%20after%2090%20mins%20later%20and%20all%20Windows%20Updates%20got%20installed%20as%20supposed%20to%20be%20happened%20as%20below.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22kenng2000_2-1646261373355.png%22%20style%3D%22width%3A%20687px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F352614iD12F3CDEB87B9BCB%2Fimage-dimensions%2F687x158%3Fv%3Dv2%22%20width%3D%22687%22%20height%3D%22158%22%20role%3D%22button%22%20title%3D%22kenng2000_2-1646261373355.png%22%20alt%3D%22kenng2000_2-1646261373355.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20then%20compare%20with%20the%20smsts.log%20of%20a%20successful%20task%20sequence%20just%20before%20the%20issue%2C%20there%20was%20only%202%20secs%20between%20%3CSTRONG%3EWaiting%20for%20notification...%3C%2FSTRONG%3E%20and%20%3CSTRONG%3ENotification%20received...%3C%2FSTRONG%3E%26nbsp%3Bevent%20as%20below%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22kenng2000_4-1646261622533.png%22%20style%3D%22width%3A%20683px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F352616iCC66272B48F1A165%2Fimage-dimensions%2F683x123%3Fv%3Dv2%22%20width%3D%22683%22%20height%3D%22123%22%20role%3D%22button%22%20title%3D%22kenng2000_4-1646261622533.png%22%20alt%3D%22kenng2000_4-1646261622533.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDoes%20anyone%20have%20any%20ideas%20why%20there%20was%20exactly%2090%20mins%20pause%20between%20these%20two%20events%20where%20as%20should%20only%20take%20seconds%20to%20happen%3F%20This%2090%20mins%20pause%20happening%20on%20all%20OS%20version%20from%20Windows%20Server%202016%2C%202012R2%2C%20Windows%2010%20Ent%20%2C%20...%3C%2FP%3E%3CP%3EAlso%2C%20If%20we%20go%20to%20Software%20Center%20--%26gt%3B%20Updates%20--%26gt%3B%20Click%20Install.%20All%20updates%20are%20installed%20just%20fine.%3C%2FP%3E%3CP%3EWe%20have%20created%20a%20case%20with%20MS%20support%20for%20a%20week%20now%20but%20no%20idea%20yet.%3C%2FP%3E%3CP%3EThank%20you.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3243602%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESCCM%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Etask%20sequence%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3298413%22%20slang%3D%22en-US%22%3ERe%3A%20Patching%20Windows%20using%20task%20sequence%20suddenly%20pause%20for%20a%20long%20time%2090%20mins%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3298413%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Everyone%2C%3C%2FP%3E%3CP%3EWe%20could%20not%20find%20out%20the%20reason%20even%20after%20spending%20months%20with%20MS%20support.%3C%2FP%3E%3CP%3EHowever%2C%20the%20same%20task%20sequence%20is%20now%20working%20again%20as%20it%20should%20without%2090%20mins%20waiting%20when%20doing%20Apr%202022%20Windows%20Patching.%3C%2FP%3E%3CP%3EIt%20was%20a%20mystery.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi Everyone,

We have been using task sequence to patch all Windows servers update monthly for years.

Recently the task sequence is deployed to UAT servers and all working as it usually does. Then a week later the same task sequence failed for the rest of production servers contains multiple servers OSes and no Windows Updates were installed.

The task sequence is just simply like this

kenng2000_5-1646261881866.png

 

The smsts.log log shows it stops at this event and then time-out after 1 hour

kenng2000_0-1646261007956.png

We then added a variable SMSTSSoftwareUpdateScanTimeout = 7200 to the top of task sequence to wait for 2 hours instead if 1 hour by default.

Rerun the task sequence and found that the task sequence is now received the notification exactly after 90 mins later and all Windows Updates got installed as supposed to be happened as below.

kenng2000_2-1646261373355.png

 

We then compare with the smsts.log of a successful task sequence just before the issue, there was only 2 secs between Waiting for notification... and Notification received... event as below

 

kenng2000_4-1646261622533.png

 

Does anyone have any ideas why there was exactly 90 mins pause between these two events where as should only take seconds to happen? This 90 mins pause happening on all OS version from Windows Server 2016, 2012R2, Windows 10 Ent , ...

Also, If we go to Software Center --> Updates --> Click Install. All updates are installed just fine.

We have created a case with MS support for a week now but no idea yet.

Thank you.

 

1 Reply

Hi Everyone,

We could not find out the reason even after spending months with MS support.

However, the same task sequence is now working again as it should without 90 mins waiting when doing Apr 2022 Windows Patching.

It was a mystery.