Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marco-online/mscataloglts
MSCatalogLTS is a Long-term support module for searching and downloading Windows updates
https://github.com/marco-online/mscataloglts
microsoft-update-catalog powershell
Last synced: 26 days ago
JSON representation
MSCatalogLTS is a Long-term support module for searching and downloading Windows updates
- Host: GitHub
- URL: https://github.com/marco-online/mscataloglts
- Owner: Marco-online
- License: mit
- Created: 2024-08-03T11:41:35.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-18T07:07:00.000Z (3 months ago)
- Last Synced: 2024-10-13T00:01:46.951Z (26 days ago)
- Topics: microsoft-update-catalog, powershell
- Language: PowerShell
- Homepage:
- Size: 132 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MSCatalogLTS
MSCatalogLTS is a Long-term support module for searching and downloading updates from https://www.catalog.update.microsoft.com.
It is cross-platform and runs on both Desktop and Core versions of PowerShell.[![psgallery](https://img.shields.io/powershellgallery/v/mscataloglts?style=flat-square&logo=powershell)](https://www.powershellgallery.com/packages/MSCatalogLTS)
## Importing the Module
Import the module MSCatalogLTS direct from PSgallery:
``` powershell
Install-Module -Name MSCatalogLTS
```## Get-MSCatalogUpdate
Use the Get-MSCatalogUpdate command to retrieve updates from the Microsoft Update Catalog. By default, this command returns the first 25 items from the search, sorted by the LastUpdated field in descending order.
```powershell
Get-MSCatalogUpdate -Search "Cumulative Update for Windows 11 Version 24H2" -ExcludeFramework
```
Retrieve cumulative updates for Windows 11 Version 24H2, excluding .NET Framework updates:```powershell
Title Products Classification LastUpdated Size
----- -------- -------------- ----------- ----
2024-07 Cumulative Update for Windows 11 Version 24H2 for x64-based Systems (KB5040435) Windows 11 Security Updates 2024/07/09 302.0 MB
2024-06 Cumulative Update for Windows 11 Version 24H2 for x64-based Systems (KB5039239) Windows 11 Security Updates 2024/06/15 248.8 MB
```Retrieve .NET Framework updates for Windows 11 Version 24H2:
```powershell
Get-MSCatalogUpdate -Search "Cumulative Update for Windows 11 Version 24H2" -GetFramework
```
```powershell
Title Products Classification LastUpdated Size
----- -------- -------------- ----------- ----
2024-07 Cumulative Update for .NET Framework 3.5 and 4.8.1 for Windows 11, version 24H2 for x64 (KB5039894) Windows 11 Security Updates 2024/07/09 70.9 MB
```## Save-MSCatalogUpdate
Use the Save-MSCatalogUpdate command to download update files from the Microsoft Update Catalog.
Download updates specified by an object returned from Get-MSCatalogUpdate:```powershell
$update = Get-MSCatalogUpdate -Search "Cumulative Update for Windows 11 Version 24H2" -ExcludeFramework
Save-MSCatalogUpdate -update $update -Destination ".\"
```## Save-MSCatalogOutput
The Save-MSCatalogOutput function allows you to save the output from the Get-MSCatalogUpdate command to an Excel file. This is particularly useful for maintaining a record of updates retrieved from the Microsoft Update Catalog.
Before using the Save-MSCatalogOutput function, ensure that you have the ImportExcel module installed. You can install it using the following command:
```powershell
Install-Module -Name ImportExcel
```
By default, the worksheet name in the Excel file will be named "Updates". However, you can customize the worksheet name by specifying the -WorksheetName parameter.```powershell
Save-MSCatalogOutput -Update $update -WorksheetName "08_2024_Updates" -Destination "C:\Temp\2024_Updates.xlsx"
```## HtmlAgilityPack
MSCatalogLTS uses the HtmlAgilityPack library for HTML parsing to ensure cross-platform compatibility. This avoids reliance on the Windows-only ParsedHtml property of the Invoke-WebRequest CmdLet.
archive : https://github.com/ryan-jan/MSCatalog