I have an overall script that does a Get-Mailuser that is filtered for any that do not have a legacyExchangeDN value.
I then process that array that is created using various IF statements to detect variables that are malformed. The part I need to do now is detect a case where emailaddresses (AD attribute proxyaddresses) has two or more entries with a capital SMTP prefix. Meaning they have two primary smtp addresses.
I have been wracking my brain and haven't found a way to work.
Keep in mind I am calling the function from within an IF statement.
Jeff C