locked
Script or power shell command to mail box details RRS feed

  • Question

  • Script or power shell command to get the details with  Display Name Alias PrimarySmtpAddress TotalItemSize (In MB) Database IssueWarningQuota ProhibitSendQuota ProhibitSendReceiveQuota UseDatabaseQuotaDefaults
    Friday, December 30, 2011 7:36 AM

Answers

  • try this out..

    Get-Mailbox -database "servername\databasename" | Select-Object name,alias,servername,ProhibitSendQuota,IssueWarningQuota,UseDatabaseQuotaDefaults,MaxReceiveSize,MaxSendSize,DisplayName,Database,PrimarySmtpAddress,ProhibitSendReceiveQuota,@{n="Size(KB)";e = {$MBXstat = Get-MailboxStatistics $_.name; $MBXstat.totalItemsize}},@{n="Items"; e = {$MBXstat = Get-MailboxStatistics $_.name ; $MBXstat.itemcount; $MBXstat.storageLimitStatus}}


    Thanks & Regards, Kottees **** Please mark as an answer if it is really helps you.
    Friday, December 30, 2011 10:36 AM

All replies

  • Get-MailboxStatistics -identity "email-id" |FT DisplayName,Alias,PrimarySmtpAddress,{$_.TotalItemSize.Value.ToMB()} ,Database,IssueWarningQuota,ProhibitSendQuota,ProhibitSendReceiveQuota,UseDatabase,QuotaDefaults
    Regards from www.windowsadmin.info  | www.blog.windowsadmin.info
    • Edited by ManU PhiliP Friday, December 30, 2011 8:04 AM
    Friday, December 30, 2011 8:04 AM
  • Thanks for reply but i need the command for all mailbox of my organization not for particular mail box.

    Friday, December 30, 2011 9:27 AM
  • Hello there,

    try this out..

    Get-Mailbox –Database "exch32-srv-01\mailbox database" | Select-Object name,alias,servername,ProhibitSendQuota,IssueWarningQuota,MaxReceiveSize,MaxSendSize,DisplayName,Database,PrimarySmtpAddress,ProhibitSendReceiveQuota,@{n="Size(KB)";e = {$MBXstat = Get-MailboxStatistics $_.name; $MBXstat.totalItemsize}},@{n="Items"; e = {$MBXstat = Get-MailboxStatistics $_.name ; $MBXstat.itemcount; $MBXstat.storageLimitStatus}}


    Thanks & Regards, Kottees **** Please mark as an answer if it is really helps you.
    Friday, December 30, 2011 9:32 AM
  • Hi,

    all information is coming except Only UseDatabaseQuotaDefaults is not coming from script ......

    Please suggest.

     

    Thanks

    Abhishek

    Friday, December 30, 2011 9:59 AM
  • try this out..

    Get-Mailbox -database "servername\databasename" | Select-Object name,alias,servername,ProhibitSendQuota,IssueWarningQuota,UseDatabaseQuotaDefaults,MaxReceiveSize,MaxSendSize,DisplayName,Database,PrimarySmtpAddress,ProhibitSendReceiveQuota,@{n="Size(KB)";e = {$MBXstat = Get-MailboxStatistics $_.name; $MBXstat.totalItemsize}},@{n="Items"; e = {$MBXstat = Get-MailboxStatistics $_.name ; $MBXstat.itemcount; $MBXstat.storageLimitStatus}}


    Thanks & Regards, Kottees **** Please mark as an answer if it is really helps you.
    Friday, December 30, 2011 10:36 AM
  •  

     

    Monday, January 9, 2012 4:12 AM