Hi, does anyone have a script that will delete all the local printers without having to specify the printer names?
Hi, welcome to the forum
What have you tried so far?
We don’t write scripts on demand but are happy to help you with your code.
That said, you shouldn’t need a script for this…
Not tested:
Get-Printer | Where-Object {$_.Type -eq 'Local'} | Remove-Printer -WhatIf
Remove the -WhatIf
when you’re happy it’s only deleting the printers you want to delete.
Thanks! i haven’t tried anything yet. I really don’t know much about PowerShell and was hoping that someone had one to share.