Search for username in ad with capitol letter

Is there any way I can search for ad users without it being case sensitive?

get-aduser -filter {surname -like "smith"} -Property DisplayName

This wont show me users with the last name Smith
Who is Participating?
Dustin SaundersConnect With a Mentor Director of OperationsCommented:
It shouldn't be case sensitive, that code should work fine.  I tested it on our production domain and have no issue returning 'Smith'.
RoccatAuthor Commented:
You are right. I dont know what I was looking at earlier
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.