Files
System-Scripts/Microsoft/Exchange/Mail-Gateways/eMailAddressDump.ps1
Christian Pohle a15cd9f64e Collect and send E-Mail Addresses to our SPAMProxy Host
Collect E-Mail Addresses from your Domain with Powershell and send the file to our SPAMProxy Host
2020-05-18 09:55:09 +02:00

5 lines
226 B
PowerShell

# 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