Powershell, Removing a printer with a Wildcard value

Brian Marsalia 1 Reputation point
2020-06-30T01:55:02.787+00:00

Looking for help to remove a printer through a powershell script.

I understand how to remove the printer using the whole name, but I need to use a wildcard with "prX" to delete the printer. I have tried everything I can think of and it doesnt work for me. Any assistance would be a great help

Thank you
Brian

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,562 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Leon Laude 85,716 Reputation points
    2020-06-30T08:50:06.967+00:00

    Hi,

    PowerShell is currently not supported in the Q&A forums, the supported products are listed over here https://learn.microsoft.com/en-us/answers/products (more to be added later on).

    You can ask the experts in the dedicated PowerShell forum over here:
    https://social.technet.microsoft.com/Forums/windows/en-US/home?forum=winserverpowershell

    (Please don't forget to accept helpful replies as answer)

    Best regards,
    Leon

    0 comments No comments