header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
How to get ALL e-mail address for a user
Last Post 11 Aug 2011 05:54 AM by Karl Mitschke. 3 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
SahinUser is Offline
New Member
New Member
Posts:2
Avatar

--
10 Aug 2011 02:02 PM

    Hi,

    I needed to know how to get e-mail address associated with users on a MBX server.  I know using :

    Get-Mailbox | select -expand EmailAddresses | %{$_.SmtpAddress}

    gets you the SMTP address, but how do you get "other" e-mail address like Novell GroupWise or MAID, etc?

    thanks!

    Karl MitschkeUser is Offline
    Basic Member
    Basic Member
    Posts:457
    Avatar

    --
    10 Aug 2011 02:14 PM
    Try this:
    
    Get-Mailbox | select -expand EmailAddresses | %{$_.AddressString}
    


    Remember, you need the ResultSize paramater to the Get-Mailbox cmdlet if you have more than 1000 mailboxes, as in "-ResultSize unlimited"

    Karl
    http://unlockpowershell.wordpress.com
    Co-Author, Windows PowerShell 2.0 Bible
    -join("6B61726C6D69747363686B65406D742E6E6574"-split"(?<=\G.{2})",19|%{[char][int]"0x$_"})
    SahinUser is Offline
    New Member
    New Member
    Posts:2
    Avatar

    --
    11 Aug 2011 04:21 AM
    Thanks Karl, that worked like a charm. Is there anywhere I can get a list of the attriutes I can use, like .AddressString, .SMTPaddress, etc ? Thanks again!
    Karl MitschkeUser is Offline
    Basic Member
    Basic Member
    Posts:457
    Avatar

    --
    11 Aug 2011 05:54 AM
    Get-Mailbox | Format-List

    :)
    http://unlockpowershell.wordpress.com
    Co-Author, Windows PowerShell 2.0 Bible
    -join("6B61726C6D69747363686B65406D742E6E6574"-split"(?<=\G.{2})",19|%{[char][int]"0x$_"})
    You are not authorized to post a reply.


    Active Forums 4.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer