Hi, Guys follow this article to Export all Exchange Online forwarding enabled Mailboxes list in bulk.
Please change adminid@domain.com with your admin ID then run these commands to install the Exchange Online Management PowerShell module and login via your admin ID to M365 Exchange Online account it will ask for a password enter your password and hit the Sign in button
1 2 3 |
Install-Module PowershellGet -Force Install-Module -Name ExchangeOnlineManagement -Force Connect-ExchangeOnline -UserPrincipalName adminid@domain.com |
Execute below given command to create List of forwarding enabled mailboxes.
4 |
$forwarded=Get-Mailbox -ResultSize Unlimited -RecipientTypeDetails UserMailbox | Select UserPrincipalName,ForwardingSmtpAddress,DeliverToMailboxAndForward | Where-Object {$_.ForwardingSmtpAddress -Like "*smtp*"} |
Execute below given command to Export output to a CSV file and open the CSV file.
5 |
$forwarded | Export-Csv C:\forwarded.csv | Start C:\forwarded.csv |
I hope you found this informative and helpful.
Thank You for reading this Export Forwarded E-mails list in bulk Article.