You can list all smtp addresses - will that work for you?
I haven't tested it; but I found this.
What class are you going to? I'm looking for live classroom training, but
it's difficult to find.

http://dxpetti.com/blog/?p=175

Get-Mailbox -Database "Mailserver\Databasename" -ResultSize Unlimited
|Select-Object DisplayName,ServerName,PrimarySmtpAddress,
@{Name=“EmailAddresses”;Expression={$_.EmailAddresses |Where-Object
{$_.PrefixString -ceq “smtp”} | ForEach-Object {$_.SmtpAddress}}} |
Export-Csv c:\mailbox_alias.csv



On Wed, Apr 17, 2013 at 6:19 PM, Heaton, Joseph@Wildlife <
[email protected]> wrote:

>  I need the following information for all users in my organization:****
>
> ** **
>
> Primary SMTP address, First Name, Last Name, Secondary smtp address****
>
> ** **
>
> Now, I know I can get primary smtp address through Exchange Shell, but
> that looks like all I can get there.****
>
> ** **
>
> I see that I can use the mail field in AD, but that’s a field that will be
> inaccurate for a lot of my folks, since not everyone has been migrated to
> Exchange yet, so that field is either blank, or reflects their old e-mail
> address.  I know that I can also get givenName for first name, and sn for
> last name.  The secondary smtp is where I am lost, as proxyAddresses lists
> all smtp addresses, which includes a temp address for the migration
> efforts, in addition to the two that I do want.****
>
> ** **
>
> ** **
>
> Anyone have ideas?****
>
> ** **
>
> I am going to a Powershell class next month, so hopefully some of that
> helps me get on track with Powershell.****
>
> ** **
>
> Thanks,****
>
> ** **
>
> Joe Heaton****
>
> Enterprise Server Support****
>
> CA Department of Fish and Wildlife****
>
> 1807 13th Street, Suite 201****
>
> Sacramento, CA  95811****
>
> Desk:  (916) 323-1284****
>
> ** **
>
> ~ Finally, powerful endpoint security that ISN'T a resource hog! ~
> ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~
>
> ---
> To manage subscriptions click here:
> http://lyris.sunbelt-software.com/read/my_forums/
> or send an email to [email protected]
> with the body: unsubscribe ntsysadmin
>

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin

Reply via email to