Catalogs/WSUSXML/Build-JsonUpdate.md.ps1
Import-Module OSD -Force $AllUpdates = @() $AllCatalogs = Get-ChildItem -Path "$PSScriptRoot\*" -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 C:\Users\osdcloud\Documents\GitHub\OSD\UPDATES.md |