locked
Trying to get-proxyaddresses from import of mailboxes RRS feed

  • Question

  • I did a get-mailbox export exported to alias. I then realized I cannot get proxyaddresses from get-mailbox because it is not a property of get-mailbox but a property of get-aduser. my variable for 150 mailboxes is $Mailbox. How do I get-proxyaddresses from a $mailbox ??  I can query aduser but there are over 3000 accounts. I want to build my query around $Mailbox.

    What is the way to script this task ?

    Wednesday, November 29, 2017 4:23 PM

All replies

  • Your are asking for a completed script and not for help on a specific issue you are having. Please post what you have tried so far and what your are having issues with.

    You could use a property that is the same in both the mailbox and the users account, something like the destinguishedname or samaccountname. Then run a foreach look to get this information and add it to where ever you are storing the information.

    Wednesday, November 29, 2017 4:33 PM
  • There is emailaddresses property in get-mailbox cmdlet

    get-mailbox <username> | select -expand emailaddresses

    Btw, there is nothing wrong to build queries around get-aduser. 

    • Proposed as answer by I.T Delinquent Wednesday, November 29, 2017 5:16 PM
    Wednesday, November 29, 2017 4:53 PM
  • Get-Recipient-RecipientTypeusermailbox

    https://technet.microsoft.com/en-us/library/aa996921(v=exchg.160).aspx

     

    \_(ツ)_/

    • Proposed as answer by I.T Delinquent Wednesday, November 29, 2017 5:16 PM
    • Unproposed as answer by I.T Delinquent Wednesday, November 29, 2017 5:16 PM
    Wednesday, November 29, 2017 4:57 PM