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

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

Fanta

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

Fanta Ukraine | Reply

3/9/2010 8:23:20 PM #

Arman Obosyan


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

Arman Obosyan Georgia | Reply

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



About the author

Arman Obosyan is an experienced IT Pro. with over 9 years work experience in Information Technologies sector. Now is working in National Bank of Georgia on a position Head of IT Infrastructure. Last 3 years working with one of the leading Bank in Georgia. His specialization is Messaging, Directory Services and other Microsoft server software solutions; also has good experience in maintenance and configuring Enterprise class storages and Enterprise class hardware/software solutions from various vendors,....

His hobby is Computers and despite very loaded and heavy working schedule he always finds time to participate in testing of Microsoft’s new Beta products.

Certified since 2003 year, have passed following certifications MCP, MCSA, MCSE, MCTS, MCITP

Calendar

<<  July 2010  >>
MoTuWeThFrSaSu
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

View posts in large calendar

RecentComments

Comment RSS