ryan-jan / MSCatalog

PowerShell module for searching and downloading offline updates from https://www.catalog.update.microsoft.com
MIT License
58 stars 16 forks source link

Save-MSCatalogUpdate - Unable to download anything #14

Closed jyonke closed 2 years ago

jyonke commented 2 years ago

Expected Behavior

Files should be downloaded or produce a message indicating that they could not be found.

Current Behavior

If zero links are found it by default assumes multiple files are available, but no links have actually been found.

Possible Solution

Microsoft changed the base URL for there update files. RegEx needs to be updated to accommodate and add some simple logic to return a warning if no links are found,

Steps to Reproduce

  1. Install latest version of MSCatlog Module from PSGallery
  2. Run example snippet from ReadMe - Save-MSCatalogUpdate -Guid "4734d13d-5e5a-4b64-9e93-225674ec811c" -Destination ".\"

image

xxbiohazrdxx commented 2 years ago

Fixed by #16