My 1st Patch Policy's failed

  • 2 September 2021
  • 1 reply
  • 758 views

I’m a new user of Automox and created my 1st 3 Policy’s using the Recommended Best Practices for Patching on https://support.automox.com/help and they failed. Here are the details from the Report:

Failed to apply patches (“2021-08 Cumulative Update for Windows 10 Version 1909 for x64-based Systems (KB5005031)” “Google Chrome” “Zoom 32-bit”): InstallMSUpdates : Install failed with ResultCode 4 and HResult -2145124318 At C:\ProgramData\amagent\execDir210347014\execcmd517446573.ps1:1357 char:17 + InstallMSUpdates $lst + ~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (🙂 [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,InstallMSUpdates InstallMSUpdates : Install failed with ResultCode 4 and HResult -2145124318 At C:\ProgramData\amagent\execDir210347014\execcmd517446573.ps1:1357 char:17 + InstallMSUpdates $lst + ~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (🙂 [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,InstallMSUpdates InstallMSUpdates : Install failed with ResultCode 4 and HResult -2145124318 At C:\ProgramData\amagent\execDir210347014\execcmd517446573.ps1:1357 char:17 + InstallMSUpdates $lst + ~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (🙂 [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,InstallMSUpdates InstallMSUpdates : Install failed with ResultCode 4 and HResult -2145124318 At C:\ProgramData\amagent\execDir210347014\execcmd517446573.ps1:1357 char:17 + InstallMSUpdates $lst + ~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (🙂 [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,InstallMSUpdates COMMAND TIMED OUT. Error: 0x80240022, -2145124318 Error Source: FACILITY_WINDOWSUPDATE Error Message: Operation failed for all the updates.


1 reply

Userlevel 5
Badge +1

Welcome @DavidCOA

 

Here are a two worklets I’ve used to help.

 


This worklet takes advantage of starting Windows Component Cleanup on command with output in the Automox Activity Log. This will clean up only if the updated components is older then 30 days.
In the example output you can see this process cleaned up 1.28 GB of space.
[image]
Optional change to clean everything – Add /ResetBase after the /StartComponentCleanup switch. The /ResetBase switch option also deletes all superseded versions of every component in the component store. A warning if you w…

 


There a various topics on this community about resetting windows updates to its default settings. The attached worklet is similair to others posted but it can be run without a reboot. So far we have very good results with this worklet in production environments and because the reboot is not necessary it can be used without user impact.
This worklet will me maintained on Github:


Evaluation Code
Exit 1

Remediation Code
$arch = Get-WMIObject -Class Win32_Processor -ComputerName LocalHost | Se…

 

 

 

Automox documentation also has a write-up here for reference. Windows Update Troubleshooting Process | Automox Knowledge Base

 

 

Reply