question

udhayand-8188 avatar image
0 Votes"
udhayand-8188 asked RitaHu-MSFT edited

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

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-2019windows-server-update-services
image.png (28.2 KiB)
· 5
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.

@udhayand-8188
Thanks for your posting on Q&A.

Have you ever tried to update the device by PowerShell command successfully before? Please try to run the Get-WUSettings to get the WU settings and make sure the WUStatusServer is your WSUS Server.

In addition, please help to confirm whether you have approved the updates for the device before you scan for updates on the device.

Best regards,
Rita

0 Votes 0 ·

Hi Rita,

As per the settings I see client is allowed to use WSUS server and i have verified those of our designated WSUS hosts.
And this is the first time I am trying to do with Powershell.

203715-image.png


0 Votes 0 ·
image.png (8.0 KiB)

@udhayand-8188
Thanks for your response.

It is weird. Please print the get-windowsupdatelog command in PowerShell to get the log file to get more information. Note that the log will be placed into the Desktop by default.

We could get more message in the log.

Thanks for your time. Have a great day.

Best regards,
Rita

0 Votes 0 ·
Show more comments
RitaHu-MSFT avatar image
0 Votes"
RitaHu-MSFT answered RitaHu-MSFT edited

@udhayand-8188
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.

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.

LimitlessTechnology-2700 avatar image
1 Vote"
LimitlessTechnology-2700 answered udhayand-8188 commented

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–

· 1
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.

Thank you. I will try the options and keep you posted.

0 Votes 0 ·