updates are failing

Roger Roger 7,326 Reputation points
2021-10-29T18:44:10.553+00:00

Hi all
i am trying to install windows updates on one of my Windows Server 2012R2 server and updates are failing.
if i remove staged updates using below syntax and try to install windows updates will the updates gets installed.

Get-WindowsPackage -Online | where { $.PackageState -eq 'Staged'} | foreach { Remove-WindowsPackage -PackageName $.PackageName -Online -NoRestart }

145083-updates1.jpg

Windows for business | Windows Server | User experience | Other
{count} votes

Answer accepted by question author
  1. Roger Roger 7,326 Reputation points
    2021-10-31T13:14:27.253+00:00

    i have fixed it thanks


0 additional answers

Sort by: Most helpful

Your answer

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