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,

yan li


regards, yan li



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

Disconnecting from a Windows Server 2012 R2 file sharing session on a Windows 7,8,10 machine

Event ID 64,77,1008 Certificates Events Windows Server 2008, 2008R2