updates are failing

Roger Roger 4,951 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 Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,470 questions
Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,379 questions
Windows Server 2012
Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,532 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,173 questions
{count} votes

Accepted answer
  1. Roger Roger 4,951 Reputation points
    2021-10-31T13:14:27.253+00:00

    i have fixed it thanks


0 additional answers

Sort by: Most helpful