Script or power shell command to mail box details
Script or power shell command to get the details with Display Name Alias PrimarySmtpAddress TotalItemSize (In MB) Database IssueWarningQuota ProhibitSendQuota ProhibitSendReceiveQuota UseDatabaseQuotaDefaults
December 30th, 2011 2:44am

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
Free Windows Admin Tool Kit Click here and download it now
December 30th, 2011 3:12am

Thanks for reply but i need the command for all mailbox of my organization not for particular mail box.
December 30th, 2011 4:36am

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.
Free Windows Admin Tool Kit Click here and download it now
December 30th, 2011 4:41am

Hi, all information is coming except Only UseDatabaseQuotaDefaults is not coming from script ...... Please suggest. Thanks Abhishek
December 30th, 2011 5:07am

From below command i am getting information about UseDatabaseQuotaDefaults -eq $false [PS] C:\Documents and Settings\v-abhishek>get-mailbox -server corpexchmbx -ResultSize unlimited | Where {$_.UseDatabaseQ uotaDefaults -eq $false} Name Alias ServerName ProhibitSendQuota ---- ----- ---------- ----------------- Sanjeev_Sharma SSharma_chemsys corpexchmbx 1GB nikhil_pasi nikhil_pasi corpexchmbx unlimited V-Praveen v-praveen corpexchmbx unlimited Sandeep Dubey Sandeep_Dubey corpexchmbx 2GB taradutt pathak TPathak corpexchmbx 2GB Manoj Sharma manojsharma corpexchmbx 2GB Sanjay Sharma sanjaydominossharma corpexchmbx unlimited
Free Windows Admin Tool Kit Click here and download it now
December 30th, 2011 5:12am

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.
December 30th, 2011 5:44am

Free Windows Admin Tool Kit Click here and download it now
January 8th, 2012 11:21pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics