你好,我的电脑上Win10系统,近三个月以来,电脑每天都会提醒我更新,但是每次更新都会显示失败自动撤销,前天晚上有有一个新的更新,还是更新失败,然后我按照网络上的方法进行了一次操作,操作步骤如下,没有用,今天下午电脑自动更新任然失败,我来请教工程师方法

匿名
2025-01-22T10:30:53+00:00

这是原来使用的方法:@echo off

setlocal

:: 配置服务为自动启动

SC config wuauserv start= auto

SC config bits start= auto

SC config cryptsvc start= auto

SC config trustedinstaller start= auto

:: 配置 wuauserv 为共享服务

SC config wuauserv type=share

:: 停止相关服务

net stop wuauserv

net stop cryptSvc

net stop bits

net stop msiserver

:: 检查并删除旧的 SoftwareDistribution.old 文件夹,如果存在

if exist "C:\Windows\SoftwareDistribution.old" (

echo Deleting existing SoftwareDistribution.old folder... 

rd /s /q "C:\Windows\SoftwareDistribution.old" 

)

:: 重命名 SoftwareDistribution 文件夹为 SoftwareDistribution.old

ren "C:\Windows\SoftwareDistribution" "SoftwareDistribution.old"

:: 启动相关服务

net start wuauserv

net start cryptSvc

net start bits

net start msiserver

echo Operation completed. Please restart your computer to apply changes.

pause

Windows 商业版 | 面向 IT 专业人士的 Windows 客户端 | 设备和部署 | 设置升级和驱动程序

锁定的问题。 此问题已从 Microsoft 支持社区迁移。 你可投票决定它是否有用,但不能添加评论或回复,也不能关注问题。

0 个注释 无注释
{count} 票

1 个答案

排序依据: 非常有帮助
  1. 匿名
    2025-01-23T01:06:28+00:00

    Hello,Dawn-dawning

    您可以尝试执行系统修复命令,在任务栏上的搜索框中,键入命令提示符,选择 以管理员身份运行,然后依次执行以下命令:

    dism.exe /online /cleanup-image /restorehealth

    sfc /scannow

    重启之后重新安装补丁

    如果上述方法无效,建议您检查当前系统中是否已经安装了相应版本的SSU,因为安装kb5049981的前提条件是需要安装前置的SSU。

    Best Regards,

    Chengxili

    0 个注释 无注释