Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

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

$
0
0

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?



Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>