首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >试图搜索Windows更新时发生错误

问试图搜索Windows更新时发生错误
EN

Stack Overflow用户
提问于 2019-11-06 13:29:39
回答 1查看 4.3K关注 0票数 0

我使用SSM文档来修补我的windows服务器。在尝试运行它时,我的一个服务器出现了以下错误:

代码语言:javascript
复制
    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度量,这似乎是正常的。有什么线索吗?

EN

回答 1

Stack Overflow用户

发布于 2021-09-20 17:07:23

我试着在下面工作:

注意:重要的本节、方法或任务包含告诉您如何修改注册表的步骤。但是,如果您不正确地修改注册表,可能会出现严重的问题。因此,请确保您仔细遵循这些步骤。为了增加保护,请在修改注册表之前备份它。然后,如果出现问题,可以还原注册表。

参考如何在Windows中备份和还原注册表的文章

  1. 按下Windows键+ R,这将打开运行。或者,您可以开始搜索“Run”。
  2. 在“运行”对话框中,键入“regedit”并按Enter。
  3. 在导航窗格中,找到并选择以下注册表子项: HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion
  4. 现在单击PushNotifications键
  5. 在右侧窗格中,双击NoToastApplicationNotification DWORD文件。
  6. 在“值数据”下将值更改为0。
  7. 重新启动PC

如果您无法找到PushNotifications密钥,请按照以下步骤操作。

  1. 在“HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion”下右键单击“CurrentVersion”,单击“新建”,然后选择“键”。
  2. 将密钥重命名为PushNotifications
  3. 现在,在右侧窗格中,右键单击空空间,然后单击New并选择DWORD (32位)值。
  4. 将DWORD文件重命名为NoToastApplicationNotification
  5. 双击文件并将值数据更改为0。
  6. 重新启动PC

有关更多细节,请查看哈雷答案。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58731305

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档