probe
(Probe)
1
Description
Script to show all users mailbox info from Exchange 2010 & output to a CSV. This script includes User name, Alias, Primary SMTP address, Send/Receive quotas, storage limit status, deleted item size.
If there is anything else you would like added let me know or feel free to amend the script to suit.
Source Code
Get-Mailbox | sort-object | Select-Object name,alias,DisplayName,PrimarySmtpAddress,servername,Database,ProhibitSendQuota,IssueWarningQuota,MaxReceiveSize,MaxSendSize,ProhibitSendReceiveQuota,@{n="Size(KB)";e = {$MBXstat = Get-MailboxStatistics $_.name; $MBXstat.totalItemsize}},@{n="Items"; e = {$MBXstat = Get-MailboxStatistics $_.name ; $MBXstat.itemcount}},@{n="Status"; e = {$MBXstat = Get-MailboxStatistics $_.name ; $MBXstat.storageLimitStatus}},@{n="Deleted Item Size"; e={$MBXstat = Get-MailboxStatistics $_.name ; $MBXstat.TotalDeletedItemSize}} | Export-CSV C:\mailboxes.csv -NoTypeInformation
3 Spice ups