From 73ed9c78a3c5c133dc0b3f967de6ecc6c8aaa6b4 Mon Sep 17 00:00:00 2001 From: Gabe Date: Mon, 23 Nov 2026 23:22:22 +0000 Subject: [PATCH] Add Utility Scripts/Remove Local Printers.ps1 --- Utility Scripts/Remove Local Printers.ps1 | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Utility Scripts/Remove Local Printers.ps1 diff --git a/Utility Scripts/Remove Local Printers.ps1 b/Utility Scripts/Remove Local Printers.ps1 new file mode 100644 index 0000000..ea5caca --- /dev/null +++ b/Utility Scripts/Remove Local Printers.ps1 @@ -0,0 +1,8 @@ +$Printername = Get-Printer | Where-Object { $_.Type -like "*Local*" -and $_.Name -notlike "*OneNote*" -and $_.Name -notlike "*Fax*" -and $_.Name -notlike "*Microsoft*" } +$Printername | ForEach-Object { +Remove-Printer -Name $_.Name -Confirm:$false -Verbose +} + +$Printers = Get-Printer | Select-Object -ExpandProperty Name +Write-Host "Remaining printers:" +Write-Output $Printers \ No newline at end of file