From df2cb9b0d7d94e8a81eecfd39bfa003ada9e03a4 Mon Sep 17 00:00:00 2001 From: Zachary Gorman Date: Tue, 15 Apr 2025 09:26:54 -0700 Subject: [PATCH] Vers 0.4.20. Updates to AppDiff and IP Address resolution --- Get-PC/Data/AppsToIgnore.json | 9 +++++++++ Get-PC/Data/ExpectedApps.json | Bin 4142 -> 4010 bytes Get-PC/Get-PC.psd1 | 2 +- Get-PC/Private/AppDiff.ps1 | 3 ++- Get-PC/Private/UninstallProgram.ps1 | 8 ++++---- Get-PC/patchnotes.txt | 1 + 6 files changed, 17 insertions(+), 6 deletions(-) diff --git a/Get-PC/Data/AppsToIgnore.json b/Get-PC/Data/AppsToIgnore.json index 2272ee8..5a0825f 100644 --- a/Get-PC/Data/AppsToIgnore.json +++ b/Get-PC/Data/AppsToIgnore.json @@ -43,5 +43,14 @@ }, { "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 index f69abb2925c975617a3339c67ca710b6082800b4..49089f3299675e36dd7b26906372d7eee732f374 100644 GIT binary patch delta 296 zcmZ3duu6WyF+*pDB8Gg1a)uO!V1^PPJCh-sA(cUaAsooc1B!y=ih=xKplBYDl|NZf zKzL(=2jgT9razPQcw;8V@P%!TW4XmR*@(T*7?*J_K<#BfBa^{~I|Gf)16!BRkTdaN zxFs%aZa^(X47orzBm!xWyBvWU6B%+CDuHgvWGDt|R>q|n?qr6d$-3N`o1HimST^hN q&R|jv18D^slMXi0oI#Jl5NNapgBgPfkWK>1mM~}njh=jrKLY@$gG0^$ delta 191 zcmXAh%L)Nu9L3Mf7`a8t-dEOkvauVK4W?uvr5I##nQ4q!DOuP`{oleu>3atc;c1+* zJD1-%&+1D(KH4=*BRfWjCFY1FF!#D=rj7D|k;f>6!Vq2bxUWZwe!<*dOU5x+WT^bK}c3H<7P>7uQJDcH|XYGCtXuo0#hV)#1)Z VA{TqAiy4)YFk8_{-nGOjZGQF?ELH#j diff --git a/Get-PC/Get-PC.psd1 b/Get-PC/Get-PC.psd1 index 4570403..62b6113 100644 --- a/Get-PC/Get-PC.psd1 +++ b/Get-PC/Get-PC.psd1 @@ -12,7 +12,7 @@ RootModule = 'Get-PC.psm1' # Version number of this module. -ModuleVersion = '0.4.19' +ModuleVersion = '0.4.20' # Supported PSEditions # CompatiblePSEditions = @() diff --git a/Get-PC/Private/AppDiff.ps1 b/Get-PC/Private/AppDiff.ps1 index cc52e4b..2f09de2 100644 --- a/Get-PC/Private/AppDiff.ps1 +++ b/Get-PC/Private/AppDiff.ps1 @@ -92,7 +92,8 @@ function Get-ExampleApps { $sccmPath = (Join-Path (get-item $PSScriptRoot).Parent.FullName 'Private\SCCMQuery.ps1') Import-Module -Force $appsPath Import-Module -Force $sccmPath - $apps = Get-Apps $examplePC | Select-Object -Property "DisplayName" + # Assumes supplied PC name is online + $apps = Get-Apps $examplePC "Online" | Select-Object -Property "DisplayName" $trimmedApps = @() foreach ($app in $apps) { $skip = $false diff --git a/Get-PC/Private/UninstallProgram.ps1 b/Get-PC/Private/UninstallProgram.ps1 index 762953a..4ecd2f8 100644 --- a/Get-PC/Private/UninstallProgram.ps1 +++ b/Get-PC/Private/UninstallProgram.ps1 @@ -27,10 +27,10 @@ function Invoke-UninstallProgram ($Computer) { Write-Host "Uninstalling $($apps[$item].Name)" $res = $apps[$item].Uninstall() switch ($res.ReturnValue) { - 0 { Write-Host "Successfully Uninstalled $($apps[$item].Name) from $Computer" } - 1641 { Write-Host "Successfully Uninstalled $($apps[$item].Name) from $Computer"; Write-Warning "Restarting $Computer" } - 3010 { Write-Host "Successfully Uninstalled $($apps[$item].Name) from $Computer"; Write-Warning "Please restart $Computer to finish uninstall" } - 3011 { Write-Host "Successfully Uninstalled $($apps[$item].Name) from $Computer"; Write-Warning "Please restart $Computer to finish uninstall" } + 0 { Write-Host "Successfully Uninstalled $($apps[$item].Name) from $Computer" } + 1641 { Write-Host "Successfully Uninstalled $($apps[$item].Name) from $Computer"; Write-Warning "Restarting $Computer" } + 3010 { Write-Host "Successfully Uninstalled $($apps[$item].Name) from $Computer"; Write-Warning "Please restart $Computer to finish uninstall" } + 3011 { Write-Host "Successfully Uninstalled $($apps[$item].Name) from $Computer"; Write-Warning "Please restart $Computer to finish uninstall" } default { Write-Warning "$appname failed to uninstall from $Computer with ReturnValue $($res.ReturnValue). See an MsiExec return value table for more information." } } } diff --git a/Get-PC/patchnotes.txt b/Get-PC/patchnotes.txt index c56d397..196cd80 100644 --- a/Get-PC/patchnotes.txt +++ b/Get-PC/patchnotes.txt @@ -2,6 +2,7 @@ Patch -Update Added Visage to the AppDiff ignore list -Fix Capped ping attempts to one in CMDB fallback so it doesn't hang on offline computers -Fix IP Address queries now resolve to the hostname correctly, but does not act as a workaround for duplicate A records +-Update Appdiff now ignores CrowdStrike but won't ignore Carbon Black Patch 2025-3-20 -Update GPUpdate is now more robust by clearing more files and registry keys