Sort winget_system_apps.txt

pull/257/head
KnifMelti 2023-01-16 03:49:24 +01:00
parent b37858f26b
commit 7dc71b5ea7
1 changed files with 4 additions and 1 deletions

View File

@ -9,7 +9,10 @@ function Get-WingetSystemApps {
#Convert json file to txt file with app ids
$InstalledApps = get-content $jsonFile | ConvertFrom-Json
#Return app list
#Save app list
Set-Content $InstalledApps.Sources.Packages.PackageIdentifier -Path $jsonFile
#Sort app list
Get-Content $jsonFile | Sort-Object | Set-Content $jsonFile
}