我使用 SSM 文档 AWS-RunPatchBaseline 来修补我的 Windows 服务器。在尝试运行它时,我的一台服务器出现此错误:
Invoke-PatchBaselineOperation : Exception Details: An error occurred when
attempting to search Windows Update.
Exception Level 1:
Error Message: Server execution failed (Exception from HRESULT: 0x80080005
(CO_E_SERVER_EXEC_FAILURE))
Stack Trace: at WUApiLib.IUpdateSearcher.Search(String criteria)
at Amazon.Patch.Baseline.Operations.PatchNow.Implementations.WindowsUpda
teAgent.SearchByGuids(List`1 kbGuids)
At C:\ProgramData\Amazon\SSM\InstanceData\i-0931550e0e5fd124d\document\orchestr
ation\52bc9b99-6ee4-4819-9234-8461530012f9\PatchWindows\_script.ps1:198 char:13
+ $response = Invoke-PatchBaselineOperation -Operation Install -SnapshotId
'0b2d54 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
+ 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: Server execution failed (Exception from HRESULT:
0x800800 05 (CO_E_SERVER_EXEC_FAILURE))
Stack Trace: at WUApiLib.IUpdateSearcher.Search(String criteria)
at
Amazon.Patch.Baseline.Operations.PatchNow.Implementations.WindowsU
pdateAgent.SearchByGuids(List`1 kbGuids)
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
failed to run commands: exit status 4294967295
我试图检查这个密钥:HKEY_LOCAL_MACHINE > Software > Policies > Microsoft > Windows > WindowsUpdate > UseWUServer
但我在我的服务器中找不到它。我的服务器是windows server 2012 R2.
在执行补丁基线期间,我还查看了 Cloudwatch 上的 CPUUtilization 指标,这似乎很正常。有什么线索吗?