Combine Multiple Output into Single Output using powershell command

Is there a way merge all the below output into single output using powershell script. The output needs to be in html format sorting out the user in mailbox size on descending order


$User = Get-MailboxServer MBX01 | Get-Mailbox -ResultSize 10  
$EASOutput =  $MBXV01  | ForEach-Object { Get-MobileDeviceStatistics -Mailbox $_.Identity} | Select-Object identity,devicemodel,LastSuccessSync}

$CASOutput =  Get-Casmailbox User1 | ft Name, ActivesyncEnabled, MAPIEnabled
$MBXOutput =  Get-Mailbox User1 | ft servername, alias, primarysmtpaddress, database
$MBXStat = Get-MailboxStatistics -Identity User1 | ft displayname, TotalItemSize, TotalDeletedItemSize, Item
February 4th, 2014 2:04pm

Hi,

I think we can create a PSobject and then save those result in it, for more details, please refer to the below link:

New-Object PSObject Property [HashTable]

http://blogs.msdn.com/b/powershell/archive/2009/12/05/new-object-psobject-property-hashtable.aspx

Regards,

Yan Li

Free Windows Admin Tool Kit Click here and download it now
February 6th, 2014 12:45am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics