# uninstall.ps1 $ErrorActionPreference = "Stop" $PrinterPath = "\\EA1196SV\EA - Follow Me" try { $printer = Get-Printer -Name $PrinterPath -ErrorAction SilentlyContinue if ($printer) { Remove-Printer -Name $PrinterPath } else { # Fallback (older builds / odd naming) & rundll32.exe printui.dll,PrintUIEntry /dn /n "$PrinterPath" | Out-Null } exit 0 } catch { Write-Error $_ exit 1 }