PowerShell Commands to Extract External User Email Addresses

Mohana Reddy 80 Reputation points
2025-01-30T19:11:59.9333333+00:00

There is a need to retrieve email address information of external users for supporting an email campaign. Looking for PowerShell commands that can extract all email addresses from the mailbox, specifically targeting external users outside the organization.

Additionally, the goal is to perform this action for all users in the organization simultaneously.

Note: Emails from the past 4-5 years are visible in the Outlook account, but verifying every email manually is a big process. Any assistance or possibilities to retrieve this data would be appreciated.

Microsoft Exchange Online
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,431 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,710 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,778 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.