How to get mail box , mailbox size , organisation unit ( all organization units not a specific Ou) , database name , which server
Hi,
can any on help me
i want a command where i can get list of mailbox name , mailbox size , organization unit (i need all organization units should be displayed not a specific Ou in AD) , database name , which server
my environment is exchange 2010 enterprise 1 mailbox & 1 hubcas.
vijay kumar designer 2010
March 12th, 2013 3:03am
You can use these commands to do that:
Get-mailbox
Get-mailboxstatistics
Zahran
Free Windows Admin Tool Kit Click here and download it now
March 15th, 2013 11:15pm
Hi,
I have developed a script for you. Hope this will help you. Save as PS1 and execute from EMC. The result csv will be saved at C:\Result.csv
$UserList = Get-mailbox -resultsize unlimited
$MasterList = @()
foreach ($User in $UserList) {
$MyObject = New-Object PSObject -Property @{
ServerName=(Get-Mailboxstatistics $User).ServerName
OrganizationalUnit=(Get-Mailbox $User).OrganizationalUnit
DisplayName=(Get-Mailbox $User).DisplayName
EmailAddress = (Get-Mailbox $User).PrimarySmtpAddress
MailboxSize = (Get-MailboxStatistics $User).TotalItemSize
DatabaseName=(Get-Mailboxstatistics $User).DatabaseName
}
$MasterList += $MyObject
}
$MasterList|export-csv c:\Result.csvRegards from ExchangeOnline
Windows Administrator's Area
March 16th, 2013 1:24pm