Vers 0.4.20. Updates to AppDiff and IP Address resolution

This commit is contained in:
Zachary Gorman 2025-04-15 09:26:54 -07:00
parent 49750da7a5
commit df2cb9b0d7
6 changed files with 17 additions and 6 deletions

View file

@ -43,5 +43,14 @@
},
{
"DisplayName": "Visage 7.1 (64 bit)"
},
{
"DisplayName": "Microsoft Edge Update"
},
{
"DisplayName": "Npcap OEM"
},
{
"DisplayName": "Dell PointStick Driver"
}
]

Binary file not shown.

View file

@ -12,7 +12,7 @@
RootModule = 'Get-PC.psm1'
# Version number of this module.
ModuleVersion = '0.4.19'
ModuleVersion = '0.4.20'
# Supported PSEditions
# CompatiblePSEditions = @()

View file

@ -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

View file

@ -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." }
}
}

View file

@ -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