JSI Tip 7982. When you scan for updates on the Windows Update site, the update is not completed successfully, and the Windows Update log may record 'Error 0x800A138F'?

The subject behavior can be the result of:

- A firewall blocking access to the Windows Update site.

- An antivirus program interfering with the update.

- An unrecoverable error.

To resolve this issue:

1. Reconfigure or update any antivirus or firewall programs.

2. If the problem persists, run the following batch file:

@echo off
for /f "Tokens=*" %%a in ('dir /b /ad "%ProgramFiles%\WindowsUpdate"') do (
 set file=%%a
 call :notv
for /f "Tokens=*" %%a in ('dir /b /a-d "%ProgramFiles%\WindowsUpdate"') do (
 set file=%%a
 call :delf
exit /b 0
if /i "%file%" EQU "V4" goto IsV
if /i "%file%" EQU "V5" goto IsV
rd "%ProgramFiles%\WindowsUpdate\%file%" /S /Q
goto :EOF
for /f "Tokens=*" %%f in ('dir /b /ad "%ProgramFiles%\WindowsUpdate\%file%"') do (
 rd "%ProgramFiles%\WindowsUpdate\%file%\%%f" /S /Q
for /f "Tokens=*" %%f in ('dir /b /a-d "%ProgramFiles%\WindowsUpdate\%file%"') do (
 if /i not "%%f" EQU "Iuhist.xml" del /q "%ProgramFiles%\WindowsUpdate\%file%\%%f"
goto :EOF
del /q "%ProgramFiles%\WindowsUpdate\%file%"

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.