I want to search my Active Directory for all users that DO NOT match the following criteria:
First letter of login name matches first letter of first name. Remainder of login name matches last name.
So, user John Smith with logon jsmith would be a match. How can I query AD to find users who do not match this criteria?
Here is a little PowerShell script that uses the Quest AD cmdlets, available here. It constructs the desired logon and then compares it to the current logon, writing out the invalid logon names to the console window. You could have it output to a file or whatever.