MatchComputerName is using Like instead of exact match

Topics: Feedback
Mar 30 at 2:34 PM
Dears,

I am facing a problem with the PS Script that MatchComputerName Function is using like instead of exact match.
My case is that the naming of my web front end is W01sp16, W02sp16, W03sp16 (which are WebFrontEndwithDistributedCashe) and W01sp16s, W02sp16s (which are ApplicationbWithSearch)
So technically; W01sp16 like W02sp16s will equals to true! which causes a miss :-( I have quickly tried to remove the * but it stopped matching (It might be related to the fact that a Fully Qualified domain is added, my time is limited so i will not be able to troubleshoot & test this issue; has any body came across a solution?