mgajda83 / PSWindowsUpdate

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

Get-WUOfflineMSU : Specified argument was out of the range of valid values #22

Open malachicorrigan opened 1 month ago

malachicorrigan commented 1 month ago

Cannot use Get-WUOfflineMSU no matter what parameters I use, even if I copy exactly the example. Please see the information below as well as the screenshot

ps_err

PS C:\Users\WDAGUtilityAccount> Get-WUOfflineMSU -KBArticleID "KB5031539" -Destination "C:\Temp" -Debug DEBUG: 5/31/2024 5:37:37 PM CmdletStart: Get-WUOfflineMSU DEBUG: 5/31/2024 5:37:38 PM http://www.catalog.update.microsoft.com/Search.aspx?q=KB5031539 VERBOSE: Found [6] Updates in Microsoft Update Catalog DEBUG: 5/31/2024 5:37:40 PM Show update to accept: 2023-10 Servicing Stack Update for Windows 10 Version 22H2 for ARM64-based Systems (KB5031539) DEBUG: 5/31/2024 5:37:43 PM Accepted DEBUG: 5/31/2024 5:37:43 PM [{"uidInfo":"5365a46b-703d-476b-9263-93e956e08de8","updateID":"5365a46b-703d-476b-9263-93e956e08de8","size":0}] Get-WUOfflineMSU : Specified argument was out of the range of valid values. Parameter name: i At line:1 char:1

C-Blais commented 2 weeks ago

Getting the same error. I've tried looking through the code and help articles for clues for how to get it to work but there's been no change. Maybe helpful but it seems the function is expecting a single entry to be returned but multiple results are actually returned.

andrewmaspero commented 4 days ago

Also getting the exact same error.