Hi Experts<\/p>\n
I have a csv file with mailboxes list.
\nfor example:<\/p>\n
Name I want to export the below information<\/p>\n Current mailbox usage If archiving is enabled i want to pull the below info Please help me to achieve this<\/p>","upvoteCount":4,"answerCount":8,"datePublished":"2018-12-18T04:27:18.000Z","author":{"@type":"Person","name":"risingflight","url":"https://community.spiceworks.com/u/risingflight"},"acceptedAnswer":{"@type":"Answer","text":" try<\/p>\n Hi Experts<\/p>\n I have a csv file with mailboxes list. Name I want to export the below information<\/p>\n Current mailbox usage If archiving is enabled i want to pull the below info Please help me to achieve this<\/p>","upvoteCount":4,"datePublished":"2018-12-18T04:27:19.000Z","url":"https://community.spiceworks.com/t/mailbox-stats/689118/1","author":{"@type":"Person","name":"risingflight","url":"https://community.spiceworks.com/u/risingflight"}},{"@type":"Answer","text":" i also want know to know the current usage of primary mailbox, and if archiving is enabled , current usage of archive mailbox<\/p>","upvoteCount":0,"datePublished":"2018-12-18T06:00:19.000Z","url":"https://community.spiceworks.com/t/mailbox-stats/689118/3","author":{"@type":"Person","name":"risingflight","url":"https://community.spiceworks.com/u/risingflight"}},{"@type":"Answer","text":" We can use Get-User<\/a> , Get-Mailbox<\/a> and Get-MailboxStatistics<\/a> to list the user and mailbox status.<\/p>\n Try this:<\/p>\n Get-Mailbox -Resultsize Unlimited | Get-MailboxStatistics | where {($.StorageLimitStatus -contains “ProhibitSend”) –or ($<\/em>.StorageLimitStatus -contains “IssueWarning”)}<\/em><\/p>\n If you only need archive mailbox information, you could try this:<\/p>\n What’s your Exchange version?<\/p>\n For on-premise, you could run the cmdlet below through EMS to achieve current usage of primary/archive mailbox.<\/p>\n Get-MailboxDatabase | Get-MailboxStatistics | Sort TotalItemSize -desc | select DisplayName<\/p>\n ,TotalItemSize, Database*quota | export-csv c:\\mailboxes.csv<\/p>\n
\n[email protected]<\/a>
\n[email protected]<\/a>
\n[email protected]<\/a><\/p>\n
\nIssueWarningQuota
\nProhibitSendQuota
\nProhibitSendReceiveQuota<\/p>\n
\nArchive Usage
\nArchive Quota
\nArchive issue warning<\/p>\nImport-Csv c:\\list.csv |Foreach{get-mailbox $_.name |select Name,IssueWarningQuota,ProhibitSendQuota,ProhibitSendReceiveQuota\n}\n\nImport-Csv c:\\list.csv |Foreach{get-mailbox $_.name | where {$_.ArchiveDatabase -ne $null} | select name, archivedatabase, archivename, archivequota, archivewarningquota}\n<\/code><\/pre>","upvoteCount":0,"datePublished":"2018-12-18T05:07:51.000Z","url":"https://community.spiceworks.com/t/mailbox-stats/689118/2","author":{"@type":"Person","name":"jitensh","url":"https://community.spiceworks.com/u/jitensh"}},"suggestedAnswer":[{"@type":"Answer","text":"
\nfor example:<\/p>\n
\n[email protected]<\/a>
\n[email protected]<\/a>
\n[email protected]<\/a><\/p>\n
\nIssueWarningQuota
\nProhibitSendQuota
\nProhibitSendReceiveQuota<\/p>\n
\nArchive Usage
\nArchive Quota
\nArchive issue warning<\/p>\nGet-Mailbox | where {$_.ArchiveDatabase -ne $null} |\nselect name, archivedatabase, archivequota, archivewarningquota,\n@{label=\"TotalItemSize(MB)\";expression={(Get-MailboxStatistics $_).TotalItemSize.Value.ToMB()}} |\nexport-csv c:\\archiveuser.csv -append -Notype -Encoding UTF8\n<\/code><\/pre>","upvoteCount":0,"datePublished":"2018-12-18T06:13:45.000Z","url":"https://community.spiceworks.com/t/mailbox-stats/689118/4","author":{"@type":"Person","name":"rupesh-lepide","url":"https://community.spiceworks.com/u/rupesh-lepide"}},{"@type":"Answer","text":"