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.
40,449 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Leon Laude 85,841 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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.