- Newest
- Most votes
- Most comments
Hi,
Sorry to hear you're having problems patching your instances. Just to clarify, what document are you using to patch? From the output you posted, it looks as if you're using the AWS-InstallWindowsUpdates (as opposed to AWS-RunPatchBaseline which would be using a patch baseline), is that correct?
Could you also share the version of Windows you are using?
Thanks!
Thanks the response, I apologize I uploaded the logs from my manual run to see if I got a different result from the InstallMissingWindowsUpdates document. For our automated patching we are using the RunPatchBaseline, here is the output for the automated run. This is on a Windows 2012 R2 instance.
----------ERROR-------
failed to run commands: exit status 4294967295
Invoke-PatchBaselineOperation : Exception Details: An error occurred when
attempting to search Windows Update.
Exception Level 1:
Error Message: Exception from HRESULT: 0x8024401C
Stack Trace: at WUApiLib.IUpdateSearcher.Search(String criteria)
at Amazon.Patch.Baseline.Operations.PatchNow.Implementations.WindowsUpdateA
gent.Search()
At C:\ProgramData\Amazon\SSM\InstanceData\i-0ac5ab3dbe4318e82\document\orchestr
ation\0e73b1e6-ec2b-4197-b629-39368de53fbd\PatchWindows_script.ps1:187 char:13
- $response = Invoke-PatchBaselineOperation -Operation Install -Snapsho ...
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
CategoryInfo : OperationStopped: (Amazon.Patch.Ba...UpdateOpera
tion:InstallWindowsUpdateOperation) [Invoke-PatchBaselineOperation], Excep
tion -
FullyQualifiedErrorId : Exception Level 1:
Error Message: Exception Details: An error occurred when attempting to se
arch Windows Update.
Exception Level 1:
Error Message: Exception from HRESULT: 0x8024401C
Stack Trace: at WUApiLib.IUpdateSearcher.Search(String criteria)
at Amazon.Patch.Baseline.Operations.PatchNow.Implementations.WindowsU
pdateAgent.Search()Stack Trace: at Amazon.Patch.Baseline.Operations.PatchNow.Implementati
ons.InstallWindowsUpdateOperation.DoWindowsUpdateOperation()
at Amazon.Patch.Baseline.Operations.PatchNow.Implementations.WindowsUp
dateOperation.DoBeginProcessing()
,Amazon.Patch.Baseline.Operations.PowerShellCmdlets.InvokePatchBaselineOpe
ration
-
According to https://answers.microsoft.com/en-us/windows/forum/windows_10-update/windows-10-update-error-0x8024401c/130e1025-9207-44aa-a730-950dd5a69bcb, this error code (0x8024401C) indicates the instance isn't able to connect to the Windows Update service. Microsoft recommends running the Windows Update troubleshooter in these cases.
Patch Manager needs to be able to connect to the Windows Update service in order to download and install the required updates.
Could you please try this and see if it helps in your case?
Thanks!
The issue was I had some WSUS settings left from prior to moving to System Manager Patch Baselines.
In particular:
HKEY_LOCAL_MACHINE > Software > Policies > Microsoft > Windows > WindowsUpdate > UseWUServer was set to 1 and our WSUS server was no longer online.
Thanks for the help it lead me in the right direction.
Glad to hear it's working now, please let us know how Patch Manager works out for you.
/Mats
Relevant content
- asked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 4 years ago
- How do I use the Microsoft KB number in Patch Manager to install a specific patch or set of patches?AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- published a year ago