- Newest
- Most votes
- Most comments
Hello There,
Greetings of the day and I hope you are well!
Thank you for reaching out to AWS Support. My name is Ankit and I will be assisting you today. I see you have a question in re:Post.
I can see that your Windows Update via PatchBaseline failed with the following error :
"Invoke-PatchBaselineOperation : The find operation did not complete successfully.Additional failure information from Windows Update: HResult: -2145107924"
Converting HResult: -2145107924 to hex gives us error 0x8024402C [1]. This indicates that the native Windows Update API was unable to run the reach the servers, which the SSM patching process depends on [2], so the issue seems to be at the Windows level.
Also note that the error message is "ERROR_WINHTTP_NAME_NOT_RESOLVED - the proxy server or target server name cannot be resolved". In case you're using a Proxy server for your Windows Server please ensure that SSM Agent is configured correctly to use it [3].
Some general troubleshooting steps you can try include:
-
Verify Date/Time is correct on the instance.
-
Run the Background Intelligent Transfer Service and the Windows Update troubleshooter using the steps below: a. Access Control Panel. b. Select View by: Large icons c. Click Troubleshooting. d. On the left pane, click View all. e. Choose Background Intelligent Transfer Service from the list. f. On the troubleshooter window, click Advanced. g. Make sure that the Apply repairs automatically check box is checked, and then click Click Next. h. Wait for the troubleshooter to finish running. i. After running the troubleshooter, take note of the results and close the window. j. Choose Windows Update from the troubleshooter list. k. Repeat steps f-i. l. Check if Patch Manager works now.
-
If the issue is not resolved, you can try manually cleaning the SoftwareDistribution folder: a. Stop the following services: net stop wuauserv net stop appidsvc net stop cryptsvc b. Copy the contents of the following folder to a backup location: C:\Windows\SoftwareDistribution
c. Delete the contents of the folder: C:\Windows\SoftwareDistribution
d. Start the services: net start wuauserv net start appidsvc net start cryptsvc -
If the above procedure fails, please ensure that there are no local or group policies that modify Windows Update functionality. If these policies are set locally, they would be visible on gpedit.msc under Computer Configuration>Administrative Tools>Windows Components>Windows Update. If these policies are set via Active Directory, they would be visible under the gpresult /r command.
-
If you don't have any policies in place, please attempt to perform these commands to check the overall health of the Windows Operating System:
NOTE: Before running below commands I would recommend to take AMI/Backup of your server and schedule downtime because it needs reboot.
Dism /Online /Cleanup-Image /ScanHealth
Dism /Online /Cleanup-Image /CheckHealth
Dism /Online /Cleanup-Image /RestoreHealth
sfc /scannow
Below I have also included some third party articles that might relate to this issue :
[+] https://recoverit.wondershare.com/partition-tips/fix-windows-10-update-error-0x8024402c.html [+] https://answers.microsoft.com/en-us/windows/forum/all/microsoft-store-error-code-0x8024402c/2128d07d-b3de-4dca-9db1-f3d8cd250f34 [+] https://www.thewindowsclub.com/fix-windows-update-error-0x8024402c
I hope that the given information and action plan is helpful to you. If you feel we can provide any additional assistance with regard to this matter, please do not hesitate to let us know and we would be glad to continue working on this issue with you.
Thank you and Have a great day ahead!
==== REFERENCES ====
[1] Windows error 0x8024402C, -2145107924 https://windows-hexerror.linestarve.com/0x8024402C
[2] About the AWS-RunPatchBaseline SSM document https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-about-aws-runpatchbaseline.html
[3] Configure SSM Agent to use a proxy for Windows Server instances https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-install-ssm-proxy.html
Relevant content
- asked 2 years ago
- asked 3 years ago
- Accepted Answerasked 6 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 8 months ago