Home | Site Map | Cisco How ToNet How To | Wireless |Search | Forums | Services | Donations | Careers | About Us | Contact Us|

Powershell DisplayName+TotalItemSize+CustomAttribute

Network Sharing , TCP/IP, Internet, Wireless, Exchange, IIS, ISA and Print

Powershell DisplayName+TotalItemSize+CustomAttribute

Postby guest » Fri Oct 07, 2011 12:11 pm

I would like to combine the results of get-mailboxstatistics with TotalItemSize.Value to GB, and get-mailbox with CustomAttribute.

Get-mailbox -resultsize unlimited | where {$_.CustomAttribute1 -eq "attribute name"} | Select display

Get-MailboxStatistics | select-object DisplayName, {$_.TotalItemSize.Value.ToGB()}
Tablet and Smartphone Setup Guide
http://www.quicksetupguide.com

Troubleshooting Vista Wireless
http://chicagotech.net/
guest
 
Posts: 9027
Joined: Mon Nov 27, 2006 1:10 pm

Re: Powershell DisplayName+TotalItemSize+CustomAttribute

Postby guest » Fri Oct 07, 2011 12:12 pm

According to your problem description, I understand that you would like to combine the results of get-mailboxstatistics and get-mailbox cmdlets. If my understanding is not correct, please feel free to let me know.



Based on my knowledge, please try to run the following cmdlet to check whether this objective can be achieved.



Please run this cmdlet first:

$Mailboxes = Get-mailbox -resultsize unlimited | where {$_.CustomAttribute1 -eq "attribute name"} | Select display



Then run this cmdlet:



$Mailboxes | Get-MailboxStatistics | select-object DisplayName, {$_.TotalItemSize.Value.ToGB()}



After that, please check whether the cmdlet can be performed and let me know the results.
Tablet and Smartphone Setup Guide
http://www.quicksetupguide.com

Troubleshooting Vista Wireless
http://chicagotech.net/
guest
 
Posts: 9027
Joined: Mon Nov 27, 2006 1:10 pm


Return to Networking

Your Ad Here

Who is online

Users browsing this forum: No registered users and 5 guests