将如下代码得到到一个txt文件中,以.bat结尾保存文件,双击运行。OK。

@echo off
rem fix update garbage value


set Update=HKLM\SOFTWARE\MicroSoft\Update
set Updates=HKLM\SOFTWARE\MicroSoft\Updates
rem set AutoUpdate="HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\AutoUpdate"


echo Cleanning "%Update%"
for /f "tokens=1 delims=" %%a in ('reg query %Update%^|Findstr /i "UpdateExeVolatile"') do (
reg delete %%a /f
)
echo %Update% is cleanned!

echo Cleanning "%Updates%"
for /f "tokens=1 delims=" %%a in ('reg query %Updates%^|Findstr /i "UpdateExeVolatile"') do (
reg delete %%a /f
)
echo %Updates% is cleanned!


echo press any key to exit...
pause>nul

相关文章:

  • 2022-12-23
  • 2021-09-24
  • 2021-08-11
  • 2021-08-21
  • 2022-12-23
  • 2021-07-14
  • 2021-11-03
猜你喜欢
  • 2021-11-28
  • 2021-04-28
  • 2021-10-19
  • 2022-12-23
  • 2021-07-05
  • 2021-11-24
  • 2021-10-22
相关资源
相似解决方案