My computer will not download the latest windows update.

Anonymous
2024-07-10T01:42:10+00:00

In my settings it says that the 2024-07 Cumulative Update for Windows 11 Version 23H2 for x64-based Systems (KB5040442) and the 2024-07 Cumulative Update for .NET Framework 3.5 and 4.8.1 for Windows 11, version 23H2 for x64 (KB5039895) is ready to be downloaded and installed but as I proceed with the update it keeps saying there was an error and the update will not install. I have tried restarting my PC and looking in my bios to find a problem but my troubleshooting has not worked.

Windows for home | Windows 11 | Windows update

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

77 answers

Sort by: Most helpful
  1. Ramesh 181.4K Reputation points Volunteer Moderator
    2024-07-16T17:02:26+00:00

    Hi Balu,

    During the 1st attempt, the setup crashed in 3 minutes. After you did the clean boot, the setup now ran for 1 hour and then threw the error code 0x80040154 (shown in the log). It's good progress.

    Let me check the new log and update this thread.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2024-07-16T16:56:40+00:00

    Hi Ramesh,

    I have tried the ISO method but no luck.

    I am sharing my setupact.log file

    link: setupact.log

    Was this answer helpful?

    0 comments No comments
  3. Ramesh 181.4K Reputation points Volunteer Moderator
    2024-07-16T15:21:15+00:00

    The setup host seems to have crashed and no reason was mentioned.

    Please try this: https://support.microsoft.com/en-us/windows/fix-problems-with-your-pc-by-using-windows-update-497ac6da-7cac-4641-82a5-f50398d879a0

    If not, clean boot Windows:

    https://support.microsoft.com/en-us/topic/how-to-perform-a-clean-boot-in-windows-da2f9573-6eec-00ad-2f8a-a97a1807f3dd

    (Step 3 is very important. You must enable "Hide all Microsoft services" before clicking "Disable all"

    Reboot and try running setup.exe. This starts the setup dialog. In the initial screen, click “Change how Setup downloads updates”.

    Select “Not right now”, and continue the process.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2024-07-16T14:47:15+00:00

    i have tried the ISO method earlier but it didn't help btw here is my setupact.log file

    link: setupact.log

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2024-07-16T13:11:58+00:00

    We are having the same error trying to install this same Cumulative Update using Azure Image Builder:
    We get to the update-windows portion of the Custom Image Template, and it just churns and churns. It will finally timeout and then reboots. After the reboot, Azure Image Builder starts to throw errors and then will abort the image creation process.

    2024/07/15 21:47:34 ui: azure-arm: Searching for Windows updates...

    2024/07/15 21:47:34 ui: azure-arm: Found Windows update (2024-03-27; 18.08 MB): Update for Windows Security platform antimalware platform - KB5007651 (Version 1.0.2402.27001)

    2024/07/15 21:47:34 ui: azure-arm: Found Windows update (2024-07-09; 69.75 MB): Windows Malicious Software Removal Tool x64 - v5.126 (KB890830)

    2024/07/15 21:47:34 ui: azure-arm: Found Windows update (2024-07-09; 71.55 MB): 2024-07 Cumulative Update for .NET Framework 3.5 and 4.8.1 for Windows 11, version 22H2 for x64 (KB5039895)

    2024/07/15 21:47:34 ui: azure-arm: Found Windows update (2024-07-15; 12.77 MB): Update for Microsoft Defender Antivirus antimalware platform - KB4052623 (Version 4.18.24060.7) - Current Channel (Broad)

    2024/07/15 21:47:34 ui: azure-arm: Found Windows update (2024-07-15; 1181.98 MB): Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.415.113.0) - Current Channel (Broad)

    2024/07/15 21:47:34 ui: azure-arm: Found Windows update (2024-07-09; 131038.93 MB): 2024-07 Cumulative Update for Windows 11 Version 22H2 for x64-based Systems (KB5040442)

    packer-plugin-windows-update plugin: 2024/07/15 22:07:24 [INFO] RPC client: Communicator ended with: 1

    2024/07/15 22:07:24 ui: azure-arm: ERROR: You cannot call a method on a null-valued expression.

    2024/07/15 22:07:24 ui: azure-arm: ERROR: at <ScriptBlock>, C:\Windows\Temp\packer-windows-update.ps1: line 190

    2024/07/15 22:07:24 ui: azure-arm: ERROR: at <ScriptBlock>, <No file>: line 1

    2024/07/15 22:07:24 ui: azure-arm: ERROR EXCEPTION: System.Management.Automation.RuntimeException: You cannot call a method on a null-valued expression.

    2024/07/15 22:07:24 ui: azure-arm: ERROR EXCEPTION: at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)

    2024/07/15 22:07:24 ui: azure-arm: ERROR EXCEPTION: at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)

    2024/07/15 22:07:24 ui: azure-arm: ERROR EXCEPTION: at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)

    2024/07/15 22:07:24 ui: azure-arm: ERROR EXCEPTION: at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)

    2024/07/15 22:07:24 ui: azure-arm: ERROR EXCEPTION: at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)

    2024/07/15 22:07:24 ui: azure-arm: ERROR EXCEPTION: at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)

    2024/07/15 22:07:24 packer-plugin-windows-update plugin: 2024/07/15 22:07:24 Retryable error: Windows update script exited with non-zero exit status: 1

    Was this answer helpful?

    0 comments No comments