From bb036aff632c8812a5b894c11c5dd393c9a8b452 Mon Sep 17 00:00:00 2001 From: Zachary Gorman Date: Mon, 28 Apr 2025 12:07:10 -0700 Subject: [PATCH] Updated apps lists to use text files instead of json objects --- Get-PC/Data/AppsToIgnore.json | 56 ---------------------------------- Get-PC/Data/ExpectedApps.json | Bin 4010 -> 0 bytes Get-PC/Private/AppDiff.ps1 | 12 ++++---- 3 files changed, 6 insertions(+), 62 deletions(-) delete mode 100644 Get-PC/Data/AppsToIgnore.json delete mode 100644 Get-PC/Data/ExpectedApps.json diff --git a/Get-PC/Data/AppsToIgnore.json b/Get-PC/Data/AppsToIgnore.json deleted file mode 100644 index 5a0825f..0000000 --- a/Get-PC/Data/AppsToIgnore.json +++ /dev/null @@ -1,56 +0,0 @@ -[ - { - "DisplayName": "Hyland Web ActiveX Controls" - }, - { - "DisplayName": "Intel(R) Processor Graphics" - }, - { - "DisplayName": "Microsoft Visual Studio Setup WMI Provider (default)" - }, - { - "DisplayName": "NetSupport Manager" - }, - { - "DisplayName": "Office 16 Click-to-Run Localization Component" - }, - { - "DisplayName": "Realtek Audio COM Components" - }, - { - "DisplayName": "Realtek High Definition Audio Driver" - }, - { - "DisplayName": "Vulkan Run Time Libraries" - }, - { - "DisplayName": "Microsoft Teams Meeting Add-in for Microsoft Office" - }, - { - "DisplayName": "Documentation Manager" - }, - { - "DisplayName": "64 Bit HP CIO Components Installer" - }, - { - "DisplayName": "Teams Machine-Wide Installer" - }, - { - "DisplayName": "Google Legacy Browser Support" - }, - { - "DisplayName": "Maxx Audio Installer" - }, - { - "DisplayName": "Visage 7.1 (64 bit)" - }, - { - "DisplayName": "Microsoft Edge Update" - }, - { - "DisplayName": "Npcap OEM" - }, - { - "DisplayName": "Dell PointStick Driver" - } -] \ No newline at end of file diff --git a/Get-PC/Data/ExpectedApps.json b/Get-PC/Data/ExpectedApps.json deleted file mode 100644 index 49089f3299675e36dd7b26906372d7eee732f374..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4010 zcmcha-D?w35XI+N@PD}ENx?|1TERE_g#}|nBNh}Nwwn(_HyhH`=OtvPX z(i=iId+#QlbI+VJGx_oTqusZA7Ur*;%4)G&vqS6K)W%j=W?$_s*MW7cW-tAFHG5@k z8`%YWf&1JhzRIj*ea3Fa^A5YU%K!gnk1Ff`jeg+qX2fU_aRSy$M{>^H(2>nRA9&hf zJq24TB!@)ka@s4HDy_*~4weRyPZFKI!5JgpI#<^jKjO?ikfdSzPZ5Ki6ZgX2gQ{aQ z+x7fk!FtI~)Xb{h?n(jcFe%#^na=GqD5Qj7`~Kcb#LOxDcZrY_IoK21<9dJ+v~y{7 zI2ds~Lmk3$WM9~citNK#-#=O6FMVqSTVt+6|3sM#@zA3xN>axc{@=jt9sBK>Vbatu2YJU4@v38>V^#8H7Cr#zc(8P963 ziq2F9yD%e^X}o#jHAnsPnv=_uVnLlGofB8J*e2fXo*g@?5Tu+S8caB+)IWJ+pEEZS zF}$u%J*7`Pcc#Zwe9b8_%VEyDYQ&g7X>gl8{n)jpc}9Me0@SmV2lXX&2<@nzkGShl z(Uuiv*LLWCJ3N<;RbO?jRvt|QDRuSxT+{?OIPsR?L(chhgBPyQSE EC)fQO_5c6? diff --git a/Get-PC/Private/AppDiff.ps1 b/Get-PC/Private/AppDiff.ps1 index 2f09de2..38002d5 100644 --- a/Get-PC/Private/AppDiff.ps1 +++ b/Get-PC/Private/AppDiff.ps1 @@ -24,11 +24,11 @@ function Get-AppDiff { Write-Progress -Activity "Filtering out standard apps from $pc" -Status 'Removing version numbers and loading reference' -PercentComplete 10 -ParentId 1 $apps = Remove-Version $apps # Open example file - $lookupTablePath = Join-Path (get-item $PSScriptRoot).Parent.FullName 'Data\ExpectedApps.json' - $example = get-content $lookupTablePath | ConvertFrom-Json + $lookupTablePath = Join-Path (get-item $PSScriptRoot).Parent.FullName 'Data\ExpectedApps.txt' + $example = get-content $lookupTablePath # Open file with manually added apps to ignore - $lookupTablePath = Join-Path (get-item $PSScriptRoot).Parent.FullName 'Data\AppsToIgnore.json' - $ignore = get-content $lookupTablePath | ConvertFrom-Json + $lookupTablePath = Join-Path (get-item $PSScriptRoot).Parent.FullName 'Data\AppsToIgnore.txt' + $ignore = get-content $lookupTablePath $exclude = $example + $ignore $output = @() # Finds each app that isn't in the example @@ -43,7 +43,7 @@ function Get-AppDiff { break } } - if ($skip -or $exclude.DisplayName -contains $app.DisplayName) { continue } + if ($skip -or $exclude -contains $app.DisplayName) { continue } $output += $app } @@ -111,7 +111,7 @@ function Get-ExampleApps { $lookupTablePath = Join-Path (get-item $PSScriptRoot).Parent.FullName 'Data\ExpectedApps.json' Copy-FileNoDestruct $lookupTablePath $($lookupTablePath + ".bak") Write-Host "Writing expected apps to" $lookupTablePath - $apps | ConvertTo-Json | Out-File $lookupTablePath + $apps | Out-File $lookupTablePath } if ($examplePC) {