I am trying to push an attribute from a group of AD Contacts to their corresponding AD Users. The Contacts are in AD with their displayName formatted such as "FirstName LastName" or like "Tony Stark". Their corresponding AD Users are all identified as "LastName, Firstname" or like "Stark, Tony". I am not sure how to do a "get-aduser" with the searchbase OU included, and how to filter to match the contact to the user so the attributes can be pushed correctly. I have tried a lot of things, but nothing returns the right AD user. I have thought about reformatting the output of the displayName from the Contact, but it would need to be done manually and there are several hundred of them.
My thought is trying to use whatever search mechanism as the "Find" tool in "AD Users and Computers" field, as it will return the proper AD user, even if the name formatting is different. It seems to be the only search where the order of the firstname and lastname does not matter when matching the values.