diff --git a/Get-PC/Private/PrinterPurge.ps1 b/Get-PC/Private/PrinterPurge.ps1 index e562aff..d703ec1 100644 --- a/Get-PC/Private/PrinterPurge.ps1 +++ b/Get-PC/Private/PrinterPurge.ps1 @@ -1,7 +1,7 @@ # Removes printer from all online computers. Useful when printer drivers # change to force online users to install new drivers function Invoke-PrinterPurge ($printer) { - $comps = HostnamesByPrinter($printer) + $comps = HostnamesByPrinter $printer | Where-Object { $_ -notmatch "EPIC"} if (-not ($comps -is [array])) { $comps = @($comps) } @@ -14,8 +14,6 @@ function Invoke-PrinterPurge ($printer) { $comp = $comps[$i] Write-Progress -Activity "Dispatching Remove-Printer Jobs for $printer" -PercentComplete (100*$i / $comps.Length) -CurrentOperation "$comp $i/$($comps.Length)" -ParentId 1 - if ($comp -like "*EPIC*") { continue } - if (-not (Test-Connection $comp -Count 1)) { Write-Output "$printer | $comp Offline" continue diff --git a/Get-PC/patchnotes.txt b/Get-PC/patchnotes.txt index 77bae6e..61a14b6 100644 --- a/Get-PC/patchnotes.txt +++ b/Get-PC/patchnotes.txt @@ -1,6 +1,7 @@ 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 Patch 2025-2-24 -Fix Devices and DevicesUnplugged 1.4x speedup