Fix printerweb and incremented version to 0.4.17

This commit is contained in:
Zachary Gorman 2025-03-07 12:29:11 -08:00
parent feec780f84
commit cd077f030a
4 changed files with 6 additions and 6 deletions

View file

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

View file

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

View file

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

View file

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