From f1b2049b3d02d832f1adcfe5fc009dd748dcc949 Mon Sep 17 00:00:00 2001 From: Gabe Date: Wed, 6 Aug 2025 17:54:16 +0000 Subject: [PATCH] Upload files to "Fix Scripts" --- Fix Scripts/Fix - Remove all WSD Ports.ps1 | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Fix Scripts/Fix - Remove all WSD Ports.ps1 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