question

RogerRoger-2394 avatar image
0 Votes"
RogerRoger-2394 asked RogerRoger-2394 answered

updates are failing

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-serverwindows-server-2019windows-server-2016windows-server-update-serviceswindows-server-2012
updates1.jpg (65.9 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I think they are supposed to fail, given what you are trying to do.

0 Votes 0 ·
pituach avatar image pituach JessTompkins-7408 ·

@JessTompkins-7408, Please do not interfere discussions if you are not familiar with the topic

and please do not report legit messages. Double yourself before any report, explain exactly why this is a problematic message and remember that sanding false reports is a type of abuse the forum and the community. Thanks.

For your knowledge, the command which @RogerRoger-2394 used is totally legit and if you re-read the message then you will see that the he claimed that the fail was when he did NOT used this but when he tried to use the default installation with all features.

@RogerRoger-2394 , I am not familiar with the topic but I am sure that one of the windows experts will join the discussion soon and try to help. I came here for administrative reasons following the activities of @JessTompkins-7408 and I noticed he added a comment. In the mean time please provide the exact error message which you get and a screenshot. This should help to understand the issue probably

0 Votes 0 ·

1 Answer

RogerRoger-2394 avatar image
0 Votes"
RogerRoger-2394 answered

i have fixed it thanks

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.