Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Combine outputs from commands

$
0
0

Hello all,
How would I combine the following two commands into a single command?

Get-mailboxstatistics "Joe Bloggs" | ft DisplayName, TotalItemSize, ItemCount, StorageLimitStatus -auto

Get-mailbox "Joe Bloggs" | ft DisplayName, IssueWarningQuota, ProhibitSendQuota, ProhibitSendRecieveQuote" 

I want to end up with a table containing:

DisplayName
TotalItemSize
StorageLimitStatus
IssueWarningQuota
ProhibitSendQuota
ProhibitSendRecieveQuota

I know there must be an easy way to do it but I'm getting nowhere, any help would be greatly appreciated!

Thanks

Tom


Viewing all articles
Browse latest Browse all 6937

Trending Articles