Solved

Search for username in ad with capitol letter

Posted on 2016-10-28
2
23 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
2 Comments
 
LVL 12

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article shows how a content item can be identified directly or through translation of a navigation type. It then shows how this information can be used to create a menu for further navigation.
Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
This video discusses moving either the default database or any database to a new volume.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now