Files
System-Scripts/Microsoft/Exchange/Mail-Gateways/eMailAddressDump.ps1

5 lines
226 B
PowerShell
Raw Normal View History

# Collect and Display all SMTP E-Mail Addresses in Domain
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn
Get-Mailbox | Select Name -ExpandProperty EmailAddresses | Select SmtpAddress | ft -HideTableHeaders