Collect E-Mail Addresses from your Domain with Powershell and send the file to our SPAMProxy Host
5 lines
226 B
PowerShell
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
|