mgajda83 / PSWindowsUpdate

This module contain cmdlets to manage Windows Update Client.
MIT License
288 stars 25 forks source link

Pswindowsupdate error #26

Closed StarMusa88 closed 2 months ago

StarMusa88 commented 3 months ago

Keep getting error message when trying to use "get-windowsupdate -acceptall -install "

callworthp commented 2 months ago

Your problem will be impossible for anyone to help with if you do not share the error message you are getting.

StarMusa88 commented 2 months ago

callworthp

get-windowsupdate -install -acceptall Get-WindowsUpdate: Something goes wrong: Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.415.40.0) - Current Channel (Broad); Object reference not set to an instance of an object. Get-WindowsUpdate: Something goes wrong: Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.415.40.0) - Current Channel (Broad); Object reference not set to an instance of an object.

X ComputerName Result KB Size Title


callworthp commented 2 months ago

You are not alone with this error. There are other people seeing it and with a range of updates. See: https://github.com/mgajda83/PSWindowsUpdate/issues/21

callworthp commented 2 months ago

@StarMusa88 I'd recommend you update to the last version of PSWindowsUpdate. I installed v2.2.1.5 that just came out and every machine that previously had the "Object reference not set to an instance of an object" now works just fine.

StarMusa88 commented 2 months ago

https://github.com/callworthp yes I will definitely try that thanks!