Hello
It seems like you're encountering an issue where the Get-Recipient command is returning two owners for the "Donotedit" distribution group, even though it should only have one owner. This could be due to a few reasons:
Duplicate Entries: There might be duplicate entries in the directory for the owner. This can happen if there are synchronization issues or if the owner has been added multiple times with slight variations in their details.
Display Name Confusion: The display names might be causing confusion. In your case, aasim_anwar2 and aasim_anwar1edit both have similar primary SMTP addresses, which might be leading to the incorrect assumption that there are two different owners.
Command Syntax: Ensure that the command syntax is correct and that there are no hidden characters or spaces that might be affecting the results.
To troubleshoot this issue, you can try the following steps:
Check for Duplicates: Use the Get-Recipient command to check for any duplicate entries for aasim_anwar2. You can use a more specific filter to ensure that you're getting the correct results.
Verify Owner Details: Double-check the details of the owner in the directory to ensure that there are no discrepancies or duplicate entries.
Use Exchange Admin Center: If possible, use the Exchange Admin Center to manually verify the owners of the distribution group. This can help you identify any discrepancies that might not be visible through the command line.
If the issue persists, you might want to consult with your IT department or refer to the Microsoft documentation on managing distribution groups for further assistance.