Solved

Search for username in ad with capitol letter

Posted on 2016-10-28
2
39 Views
Last Modified: 2016-10-28
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
0
Comment
Question by:Roccat
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 13

Accepted Solution

by:
Dustin Saunders earned 500 total points
ID: 41864577
It shouldn't be case sensitive, that code should work fine.  I tested it on our production domain and have no issue returning 'Smith'.
0
 

Author Closing Comment

by:Roccat
ID: 41864668
You are right. I dont know what I was looking at earlier
0

Featured Post

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Window Passwordy Expiration and Powershell 5 39
Powershell 2.0/3.0 2 42
import-csv powershell 8 28
Copy files and run psex to windows 7 only 14 44
Windows 10 came with  a lot of built in applications, Some organisations leave them there, some will control them using GPO's. This Article is useful for those who do not want to have any applications in their image (example:me).
Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question