Public feed
#4E5GysHSHB
$Url = 'http://HP48EA62BF714A.local:631/ipp/print'$Name = 'HP Envy 6500e'# Remove phantom queue node and any re-created IPP pairing (spooler running)Restart-Service Spooler -Force; Start-Sleep 3Get-PnpDevice | Where-Object { ($_.InstanceId -like 'SWD\PRINTENUM\*' -and $_.FriendlyName -match 'Envy|6500') -or $_.InstanceId -like 'SWD\IPP\E7483655*' -or $_.InstanceId -like 'SWD\PRINTENUM\WSD-48A8B836*'} | ForEach-Object { pnputil /remove-device "$($_.InstanceId)" }Restart-Service Spooler -Force; Start-Sleep 5# Add over IPP, verify, printAdd-Printer -Name $Name -IppURL $UrlStart-Sleep 5$p = Get-Printer -Name $Name$p | Format-List Name,DriverName,PortName,PrinterStatusif ($p -and $p.PortName -notlike 'WSD-*') { Get-CimInstance Win32_Printer -Filter "Name='$Name'" | Invoke-CimMethod -MethodName PrintTestPage | Out-Null "SUCCESS: test page sent over IPP."}