79362139

Date: 2025-01-16 15:22:34
Score: 1
Natty:
Report link

Solved:

When storing these external users, exchange will replace the "@" symbol in the User Principle Name with an "_", leaving the emails to look like this: exampleemail_outlook.com#EXT#@company.com. This issue was resolved by changing Select-Object -ExpandProperty UserPrincipalName to Select-Object -ExpandProperty Mail.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Brian mallet