Created
August 15, 2020 19:22
-
-
Save kekoa-/2778899e61cd5aba41cceba81241968b to your computer and use it in GitHub Desktop.
uses wmi to delete all network printers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Get-WMIObject Win32_Printer | Where-Object { $_.Network -eq 'true' } | Foreach-Object { $_.delete() } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment