list all SMTP email addresses in Exchange Server

All Email Addresses Exchange Server

get-recipient

get-recipient | where {$_.emailaddresses -match “yshvili.local”} | fl name,emailaddresses >>recipient.txt

you need just the email addresses assigned to mailboxes can use simpler cmdlet

All Email Addresses Exchange Server

get-mailbox

get-mailbox | fl name, emailaddresses >> c:\mailbox.txt

get just the addresses used by mail-enabled public folders use the Get-MailPublicFolder cmdlet

Get-MailPublicFolder

Get-MailPublicFolder | fl Name,EmailAddresses >> pf-MailPublicFolder.txt

cmdlets will output the addresses to a text file in the current directory 

c:\

How to list all SMTP email addresses in Exchange

Get-Recipient | GM

Get-Recipient | Select Name -ExpandProperty EmailAddresses

Get-Recipient | Select Name -ExpandProperty EmailAddresses | Select Name,  SmtpAddress

Get-Recipient | Select Name -ExpandProperty EmailAddresses | Select Name, SmtpAddress | Export-csv c:\yshvilimailAddress.csv

Leave a Reply

Your email address will not be published. Required fields are marked *


CAPTCHA Image
Reload Image

This site uses Akismet to reduce spam. Learn how your comment data is processed.

WhatsApp Logo IT World