locked
Exchange Server Get Recepient Usermailbox data RRS feed

  • Question


  • The following code will export the details of Recipient data in Exchange server. I want to implement this via .Net/C#. Need Someone help to implement this.

    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

    Friday, October 11, 2013 7:25 AM