Exchange Server 2010 and getting Mailbox DB Size

by Arman Obosyan 9. March 2010 19:21

Недавно в User Group Microsoft Exchange Server – Russia пробежал вопрос “как узнать размер базы Exchange 2007 из PowerShell”. Ответ конечно сразу же был отписан...

…но вот интересная заметка, как все просто в Exchange Server 2010 (см. ниже)

Вот пример как посмотреть размер базы из PowerShell на Exchange Server 2007 (взято у Амит-а)


Get-MailboxDatabase | Select Server, StorageGroupName, Name, @{Name="Size (GB)";Expression={$objitem = (Get-MailboxDatabase $_.Identity); $path = "`\`\" + $objitem.server + "`\" + $objItem.EdbFilePath.DriveName.Remove(1).ToString() + "$"+ $objItem.EdbFilePath.PathName.Remove(0,2); $size = ((Get-ChildItem $path).length)/1048576KB; [math]::round($size, 2)}}, @{Name="Size (MB)";Expression={$objitem = (Get-MailboxDatabase $_.Identity); $path = "`\`\" + $objitem.server + "`\" + $objItem.EdbFilePath.DriveName.Remove(1).ToString() + "$"+ $objItem.EdbFilePath.PathName.Remove(0,2); $size = ((Get-ChildItem $path).length)/1024KB; [math]::round($size, 2)}}, @{Name="No. Of Mbx";expression={(Get-Mailbox -Database $_.Identity | Measure-Object).Count}} | Format-table -AutoSize


А вот все тоже самое только с Exchange Server 2010

Get-MailboxDatabase -status | fl name, databasesize


Не правда ли удобно?  И не так страшно как в 2007 :)


Get-MailboxDatabase -status | fl name, databasesize


…как “все” просто в Exchange Server 2010 :-)


Comments (2) -

Fanta Ukraine
3/9/2010 7:47:50 PM #

Арман, но ты так и не ответил можно ли аналогичным методом посмотреть размер логов транзакций в 2010 ?

Arman Obosyan
Arman Obosyan Georgia
3/9/2010 8:23:20 PM #

Вроде как отписал что нет в 2010 посмотра общего размера логов транзакций, только установленый размер лога (одного файла)

Comments are closed

© 2008-2012, Arman Obosyan, Postmaster.GE
Powered by BlogEngine.NET
Hosted on Windows Azure and IIS8

About the author

Arman Obosyan have more than 20+ years’ work experience in Information Technologies sector.

Last few years he working on a position Technology Strategist at Microsoft Corporation, In the past Arman was Head of IT Infrastructure in Governmental Central Bank of Georgia (National Bank of Georgia).

Nowadays Arman is supporting C-Level and enabling business, visionary with a passion of technology, trends.


Certified since 2003 year, passed following certifications MCP, MCSA, MCSE, MCTS, MCITP, Exin ITIL and VMware Certified Professional (VCP)

Founder / Lead of Microsoft Certified Professionals (MCP) Club Tbilisi and Community GE project 

In 2010 Was awarded a Microsoft Most Valuable Professional (MVP)

2017 MVP Reconnect


The opinions expressed herein are my own personal opinions and do not represent anyone else's view in any way, including those of my employer.

Live Trafic



<<  January 2021  >>

View posts in large calendar