Combine Multiple Output into Single Output using powershell command
there way merge below output single output using powershell script. output needs in html format sorting out 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, itemcount
exchange queries
hi,
i think can create psobject , save result in it, more details, please refer below link:
new-object psobject –property [hashtable]
http://blogs.msdn.com/b/powershell/archive/2009/12/05/new-object-psobject-property-hashtable.aspx
regards,
regards, yan li
Windows Server > Windows PowerShell
Comments
Post a Comment