Need to get the output of two commands in the same table. RRS feed

  • Question

  • Hello,

    I am trying to run a script that will find all the usermailbox in Exchange Online and extract the following data in a table:

    1. Name.
    2. Email Address.
    3. Office location.
    4. Mailbox size.
    5. Mobile devices configured.

    I have achieved the output of the 1-4 using the command below:

    $a=Get-Mailbox -ResultSize unlimited -RecipientTypeDetails usermailbox 
    $a|FT identity, windowslive*, ProhibitSendReceiveQuota, usagelocation

    For step 5, I have run 

    $g=$a|foreach-object{Get-MobileDevice -Mailbox $_.Name|FT FriendlyName, DeviceOS, UserDisplayName} 

    However, I need a way to print this output in a table, Any ideas?

    • Moved by Bill_Stewart Tuesday, December 18, 2018 12:23 AM Abandoned
    Monday, October 8, 2018 5:30 PM

All replies