diff --git a/Fix Scripts/Fix - Remove all WSD Ports.ps1 b/Fix Scripts/Fix - Remove all WSD Ports.ps1 new file mode 100644 index 0000000..58c2a5b --- /dev/null +++ b/Fix Scripts/Fix - Remove all WSD Ports.ps1 @@ -0,0 +1,13 @@ +$WSD = @() + +$printername = Get-Printer | Where-Object { $_.Portname -like "*WSD*" } | Select-Object -ExpandProperty Name + +Add-PrinterPort -Name "LocalPort:" + +Get-Printer $printername | Set-Printer -PortName "LocalPort:" + +Restart-Service Spooler + +reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\WSD Port" /f + +Start-Service Spooler \ No newline at end of file