Quantcast
Channel: Jorink.nl » Powershell
Viewing all articles
Browse latest Browse all 3

Export all your Exchange email addresses to CSV

$
0
0
To create a list of all your email addresses including the primary and alias addresses run this PowerShell command; Get-Mailbox -ResultSize Unlimited |Select-Object DisplayName,ServerName,PrimarySmtpAddress, @{Name=“EmailAddresses”;Expression={$_.EmailAddresses |Where-Object {$_.PrefixString -ceq “smtp”} | ForEach-Object {$_.SmtpAddress}}} | Export-CSV c:\smtp.csv -NoTypeInformation

Viewing all articles
Browse latest Browse all 3

Trending Articles