Windows updates failing....can i blank the 'downloads waiting to run' directory and redownload etc?

Posted on 2007-10-19
Last Modified: 2012-08-14
Hi all, i've got a users laptop which is failing on Windows updates...i.e a lot of patches etc etc. I've checked the KB logs and they don't make any obvious sense. What i'd rather do is simply remove all the updates that windows has downloaded for this machine and redo. This machine has recently been updated from XP home to XP Pro so i'm assuming perhaps that some of the updates were for the previous base OS and failure for that reason. I've removed the contents of Windows/SoftwareDistribution/Downloads but do the dowloaded files get copied to another directory in preparation for execution? Can i remove these files?
Question by:javabeat
    LVL 3

    Expert Comment

    Make sure the Automatic Updates service is running.
    Make sure the BITS (Background Intelligent Transfer Service) is running.
    Make sure the Event Log service is running.

    Also, ensure you have added windows update (and all sub-sites) to the trusted sites list.



    If you have any more questions, let me know.


    LVL 3

    Accepted Solution

    If you do want to update & delete, you should remove all the updates through add/remove progs (make sure "show updates" is checked), then do a full windows update afterwards.

    If you need anymore help, please let me know.


    LVL 14

    Assisted Solution

    Take one of these, paste it in notepad, name it with a .cmd extension, place on your desktop, double click to run.  (Start with the lines, "net stop", don't paste the BOLD)

    net stop "Automatic Updates"
    del /f /s /q %windir%\SoftwareDistribution\*.*
    net start "Automatic Updates"
    wuauclt.exe /detectnow

    net stop bits
    net stop /s wuauserv
    regsvr32 /u wuaueng.dll /s
    del /f /s /q %windir%\SoftwareDistribution\*.*
    del /f /s /q %windir%\windowsupdate.log
    regsvr32 wuaueng.dll /s
    net start bits
    net start wuauserv
    wuauclt.exe /resetauthorization /detectnow

    net stop bits
    net stop /s wuauserv
    %windir%\system32\regsvr32.exe /s %windir%\system32\atl.dll
    %windir%\system32\regsvr32.exe /s %windir%\system32\jscript.dll
    %windir%\system32\regsvr32.exe /s %windir%\system32\msxml3.dll
    %windir%\system32\regsvr32.exe /s %windir%\system32\softpub.dll
    %windir%\system32\regsvr32.exe /s %windir%\system32\wuapi.dll
    %windir%\system32\regsvr32.exe /s %windir%\system32\wuaueng.dll
    %windir%\system32\regsvr32.exe /s %windir%\system32\wuaueng1.dll
    %windir%\system32\regsvr32.exe /s %windir%\system32\wucltui.dll
    %windir%\system32\regsvr32.exe /s %windir%\system32\wups.dll
    %windir%\system32\regsvr32.exe /s %windir%\system32\wuweb.dll
    net start bits
    net start wuauserv
    wuauclt /resetauthorization /detectnow

    Author Comment

    Hi all, tried the suggestions (inc above) but still no soon as the downloads come down they fail. I've attached a log below of a randomly selected update for KB835221.

    0.031: ================================================================================
    0.031: 2005/03/01 15:55:33.062 (local)
    0.031: d:\fcd773f48c8769e7679cddb145\update\update.exe (version
    0.031: Service Pack started with following command line: /Q /Z
    0.203: DoInstallation: CleanPFR failed: 0x2
    0.203: SetProductTypes: InfProductBuildType=BuildType.IC
    0.203: SetAltOsLoaderPath: No section uses DirId 65701; done.
    0.203: DoInstallation: FetchSourceURL for d:\fcd773f48c8769e7679cddb145\update\HDAUpdate_WinXP.inf failed
    0.219: CreateUninstall = 1,Directory = C:\WINDOWS\$NtUninstallKB835221WXP$
    0.219: LoadFileQueues: SetupGetSourceFileLocation for halaacpi.dll failed: 0xe0000102
    0.250: BuildCabinetManifest: update.url absent
    0.250: AnalyzePhaseZero used 0 ticks
    0.250: No c:\windows\INF\updtblk.inf file.
    0.250: SetupFindFirstLine in LoadExclusionList Failed with error: 0xe0000102
    0.250: SetupFindFirstLine in LoadExclusionList Failed with error: 0xe0000102
    27.516: AnalyzePhaseOne: used 27266 ticks
    27.516: AnalyzeComponents: Hotpatch analysis disabled; skipping.
    27.516: AnalyzeComponents: Hotpatching is disabled.
    27.516: AnalyzePhaseTwo used 0 ticks
    27.516: AnalyzePhaseThree used 0 ticks
    27.516: AnalyzePhaseFive used 0 ticks
    27.516: AnalyzePhaseSix used 0 ticks
    27.516: AnalyzeComponents used 27266 ticks
    27.516: Downloading 0 files
    27.516: bPatchMode = FALSE
    27.516: Inventory complete: ReturnStatus=0, 27297 ticks
    27.516: Num Ticks for invent : 27313
    27.516: Allocation size of drive C: is 4096 bytes, free space = 9540710400 bytes
    27.516: LoadFileQueues: SetupGetSourceFileLocation for halaacpi.dll failed: 0xe0000102
    27.625: Drive C: free 9098MB req: 7MB w/uninstall 7MB
    27.625: Num Ticks for download : 109
    27.625: CabinetBuild complete
    27.625: Num Ticks for Cabinet build : 0
    27.625: LoadFileQueues: SetupGetSourceFileLocation for halaacpi.dll failed: 0xe0000102
    27.672: Num Ticks for Backup : 47
    27.750: Num Ticks for creating uninst inf : 78
    27.750: Registering Uninstall Program for -> KB835221WXP, KB835221WXP , 0x0
    27.750: LoadFileQueues: SetupGetSourceFileLocation for halaacpi.dll failed: 0xe0000102
    27.781: Enumerating Devices of System, GUID {4D36E97D-E325-11CE-BFC1-08002BE10318}
    27.812: Skip Oem Device ACPI\ATK0100\1010100
    27.828: Enumerating Devices of Unknown, GUID {4D36E97E-E325-11CE-BFC1-08002BE10318}
    27.859: Starting Backup For PCI\VEN_8086&DEV_2668
    27.859: No Driver Found for Backup for this Device
    29.766: System Restore Point set.
    29.812: Copied file:  C:\WINDOWS\system32\spmsg.dll
    29.812: SfcTurnOff: SFC was not turned off; using MakeSfcFileException.
    30.875: VerifySize: Unable to obtain Target file size: C:\WINDOWS\system32\DRIVERS\portcls.sys
    30.906: VerifySize: Unable to obtain Target file size: C:\WINDOWS\system32\DRIVERS\Hdaudbus.sys
    30.953: VerifySize: Unable to obtain Target file size: C:\WINDOWS\system32\DRIVERS\Hdaudio.sys
    30.953: Copied file:  C:\WINDOWS\system32\Hdaudprop.dll
    31.109: Copied file:  C:\WINDOWS\system32\Hdaudpropshortcut.exe
    31.156: Copied file:  C:\WINDOWS\system32\Hdaudpropres.dll
    31.297: AtomicReplaceFile: Calling HpReplaceSystemModule( C:\WINDOWS\system32\DRIVERS\portcls.sys, HFX6C.tmp, _000003_.tmp, FALSE ).
    31.297: AtomicReplaceFile: HpReplaceSystemModule succeeded.
    31.297: Copied file:  C:\WINDOWS\system32\DRIVERS\portcls.sys
    31.344: AtomicReplaceFile: Calling HpReplaceSystemModule( C:\WINDOWS\system32\DRIVERS\Hdaudbus.sys, HFX6E.tmp, _000003_.tmp, FALSE ).
    31.344: AtomicReplaceFile: HpReplaceSystemModule succeeded.
    31.344: Copied file:  C:\WINDOWS\system32\DRIVERS\Hdaudbus.sys
    31.406: AtomicReplaceFile: Calling HpReplaceSystemModule( C:\WINDOWS\system32\DRIVERS\Hdaudio.sys, HFX70.tmp, _000003_.tmp, FALSE ).
    31.406: AtomicReplaceFile: HpReplaceSystemModule succeeded.
    31.406: Copied file:  C:\WINDOWS\system32\DRIVERS\Hdaudio.sys
    31.406: Copied file:  C:\WINDOWS\Driver Cache\i386\portcls.sys
    31.469: Copied file:  C:\WINDOWS\INF\hdaudbus.inf
    31.484: Copied file:  C:\WINDOWS\INF\hdaudio.inf
    31.484: Num Ticks for Copying files : 3734
    31.484: Num Ticks for Reg update and deleting 0 size files : 0      
    31.484: Enumerating Devices of System, GUID {4D36E97D-E325-11CE-BFC1-08002BE10318}
    31.516: Enumerating Devices of Unknown, GUID {4D36E97E-E325-11CE-BFC1-08002BE10318}
    31.547: Starting Upgrade For PCI\VEN_8086&DEV_2668 from hdaudbus.inf
    32.281: Return values from CM_Get_DevNode_Status 25174026 problem = 0
    32.422: UpdateSpUpdSvcInf: Source [ProcessesToRunAfterReboot] section is empty; nothing to do.
    33.156: RebootNecessary = 0,WizardInput = 1 , DontReboot = 1, ForceRestart = 0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    iTunes uses a third party component from  GEAR Software ( for accessing the CD/DVD drives in Windows computers.  This component is registered as a filter driver for all CD/DVD drives.  Sometimes the iTunes installation or…
    Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
    This video discusses moving either the default database or any database to a new volume.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now