Sort winget_system_apps.txt
parent
b37858f26b
commit
7dc71b5ea7
|
@ -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
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue