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 setlocal 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 ) endlocal exit /b 0 :notv if /i "%file%" EQU "V4" goto IsV if /i "%file%" EQU "V5" goto IsV rd "%ProgramFiles%\WindowsUpdate\%file%" /S /Q goto :EOF :IsV 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 :delf del /q "%ProgramFiles%\WindowsUpdate\%file%"
0 comments
Hide comments