diff --git a/Get-PC/Get-PC.psd1 b/Get-PC/Get-PC.psd1 index d893de1..fbac39c 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.16' +ModuleVersion = '0.4.17' # Supported PSEditions # CompatiblePSEditions = @() diff --git a/Get-PC/Private/SHSPrinter.ps1 b/Get-PC/Private/SHSPrinter.ps1 index 9a0fe05..63090d7 100644 --- a/Get-PC/Private/SHSPrinter.ps1 +++ b/Get-PC/Private/SHSPrinter.ps1 @@ -423,11 +423,9 @@ $Headers = @{ process { if($printer.DomainName -ne 'No DNS Entry' -and $printer.MAC -ne 'Offline'){ - $domainName = $printer.DomainName - start "http://$domainName" - $mac = $printer.MAC + start "http://$($printer.Hostname).$($printer.DomainName)" Sleep -Seconds 1 - start "https://azporion1/Orion/UDT/EndpointDetails.aspx?NetObject=UE-MAC:VAL=$mac" + start "https://azporion1/Orion/UDT/EndpointDetails.aspx?NetObject=UE-MAC:VAL=$($printer.MAC)" } else{ diff --git a/Get-PC/Private/UninstallProgram.ps1 b/Get-PC/Private/UninstallProgram.ps1 index 86ce06f..b97485c 100644 --- a/Get-PC/Private/UninstallProgram.ps1 +++ b/Get-PC/Private/UninstallProgram.ps1 @@ -26,7 +26,7 @@ function Invoke-UninstallProgram ($Computer) { foreach ($item in $selection) { Write-Host "Uninstalling $($apps[$item].Name)" $res = $apps[$item].Uninstall() - switch ($res) { + 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" } diff --git a/Get-PC/patchnotes.txt b/Get-PC/patchnotes.txt index 61a14b6..4432183 100644 --- a/Get-PC/patchnotes.txt +++ b/Get-PC/patchnotes.txt @@ -2,6 +2,8 @@ Patch -Fix Queries Spark! by asset tag rather than hostname to also hit in stock workstations -Add Elo monitor ports to -devices -Fix PrinterPurge more accurately reflects how many computers are affected +-Fix UninstallProgram now handles successful return codes +-Fix PrinterWeb now opens the printer webpage correctly Patch 2025-2-24 -Fix Devices and DevicesUnplugged 1.4x speedup