How can I install multiple windows patch with a one restart?

Kmb Bey 1 Reputation point
2022-09-05T11:28:51.927+00:00

When I want to manually install multiple windows security patch with a one restart, one of the security patches is installed and 0x800f0840 error occurs for the others. I don't want to restart for every patch. How can I do that?

I'm doing multi-loading with the powershell code below.

$dir = (Get-Item -Path ".\" -Verbose).FullName
Foreach($item in (ls $dir *.msu -Name))
{
echo $item
$item = $dir + "\" + $item
wusa $item /quiet /norestart | Out-Null
}

Windows for business Windows Server User experience PowerShell
{count} votes

2 answers

Sort by: Most helpful
  1. Amol Shelar 431 Reputation points
    2022-09-05T14:59:10.013+00:00

    @Kmb Bey ,

    I am not sure if you can do it. But ideally it is not recommended. The reason of the restarts in Windows patching is that Windows isn't able to update important files while they're in use, because they're locked while the OS is running.

    As per my knowledge few important security patches, system reboot is must. So, I would recommend you let the procedure gets completed as per defined process, that can save you from further consequences.

    Please don't forget to upvote and Accept as answer if the reply is helpful.

    _AmolShelar

    0 comments No comments

  2. Limitless Technology 39,916 Reputation points
    2022-09-07T07:41:31+00:00

    Hello there,

    Based on your description you are getting an error when you try install some security patches.

    Windows update error 0x800f084f could appear because of system file corruption, Windows update service glitches, or third-party software interference. If you have an antivirus program installed, we recommend trying to remove it as at times it can perceive legitimate Windows files as not secure.

    I would first suggest you try getting the updates manually and see if you can install them.
    You can get the updates by KB number from the below link
    https://www.catalog.update.microsoft.com/Home.aspx

    You can also temporarily disable all your antivirus and try installing the updates. You may reset the Windows Update components, and then try to install the updates again.

    For how to reset the Windows Update components, you can see the following article.
    https://support.microsoft.com/en-us/help/971058/how-do-i-reset-windows-update-components

    Also, you should have enough System Partition reserved space. Maybe that is your issue as well.

    I hope this information helps. If you have any questions please let me know and I will be glad to help you out.

    --------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept it as an answer--

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.