Applying .NET updates via WSUS using install-WindowsUpdate PSWindowsUpdate module

udhayan d 181 Reputation points
2022-05-18T11:34:17.913+00:00

Hi,

I am trying to apply a specific .NET update using PSWindowsUpdate module. But in the pre-search it is not identifying the KB article that I am looking for

PS C:\Windows\system32> install-WindowsUpdate -AcceptAll -KBArticleID KB5010580 -AutoReboot -verbose
VERBOSE: hostname (5/18/2022 7:08:37 AM): Connecting to Windows Server Update Service (http://wsus.ourdomain.com:XXXX) server. Please wait...
VERBOSE: Found [0] Updates in pre search criteria

I can see in the KB notes it is available via WSUS. I can manually download and apply the same update, but why am I not able to do it via WSUS. I am not a windows Admin. So I am not clear on the troubleshooting path.

https://support.microsoft.com/en-us/topic/february-8-2022-kb5010580-cumulative-update-for-net-framework-3-5-4-7-2-and-4-8-for-windows-10-version-1809-and-windows-server-version-2019-5c220864-9507-4c1f-96c6-cd449f0be70b

203221-image.png

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,458 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,128 questions
{count} votes

Accepted answer
  1. Rita Hu -MSFT 9,626 Reputation points
    2022-05-23T07:45:19.203+00:00

    @udhayan d
    Thanks very much for your feedback. We're glad that the question is solved now. Here's a short summary for the problem , this will help other users to search for useful information more quickly.

    Problem/Symptom:
    The devices fail to get the.NET updates via WSUS using install-WindowsUpdate PSWindowsUpdate module.

    Solution/Workaround:
    These are SQL DB hosts, so these are placed in .NET declined group. So the devices fail to get the updates.

    Best regards,
    Rita


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Limitless Technology 39,356 Reputation points
    2022-05-19T07:27:38.083+00:00

    Hi there,

    Run the command Set-ExecutionPolicy -ExecutionPolicy RemoteSigned to enable execute remote scripts on your computer. Now try importing the PSWindowsUpdate module again.

    Have a check if you have set the TLS properly.PowerShell Gallery TLS Support https://devblogs.microsoft.com/powershell/powershell-gallery-tls-support/

    You would also run Get-WUServiceManager to show the list of available update services and see if the update that you are trying is applicable to you.


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

    2 people found this answer helpful.