PowerShell to list of UPNs based on specific Wildcard search?

Ask your Windows PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
ITEngineer
Posts: 171
Joined: Wed Oct 12, 2011 10:52 am

Re: PowerShell to list of UPNs based on specific Wildcard search?

Post by ITEngineer » Sun Oct 27, 2019 8:44 pm

jvierra wrote:
Sun Oct 27, 2019 3:46 pm
You cannot use match to search a collection. Use +-in+ or "-contains".
You cannot use a wildcard in a match.
Start here:
help about_regular_expressions
and
https://www.regular-expressions.info/
Yes, I will adjust it accordingly.

Thank you Mr. Vierra.
/* IT Engineer */

Locked