Resources/BuildScripts/Build-JsonUpdate.md.ps1
Import-Module OSD -Force $AllUpdates = @() $AllCatalogs = Get-ChildItem -Path "D:\GitHub\MyModules\OSD\Catalogs\WSUSXML\*" -Include '*.json' -Recurse foreach ($CatalogFile in $AllCatalogs) { $AllUpdates += Get-Content $CatalogFile.FullName | ConvertFrom-Json } $AllUpdates = $AllUpdates | Select-Object -Property * | Sort-Object -Property Title -Unique | Sort-Object CreationDate -Descending Write-Host "" $AllUpdates | Select-Object -Property CreationDate, KBNumber, Title | Sort-Object @{Expression = {$_.CreationDate}; Ascending = $false}, KBNumber, Title | Out-File D:\GitHub\MyModules\OSD\UPDATES.md |