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 f69abb2..49089f3 100644 Binary files a/Get-PC/Data/ExpectedApps.json and b/Get-PC/Data/ExpectedApps.json differ 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