Solved

Powershell scripts to document Exchange 2010 Enviroment

Posted on 2010-08-18
7
1,026 Views
Last Modified: 2012-05-10
Looking for a script or scripts that will help document roles, database and log paths, cas array name, owa fqdn, and build numbers.
Database size, mailbox statistics

Thanks,
Mark
0
Comment
Question by:markpalinux
  • 5
  • 2
7 Comments
 
LVL 32

Accepted Solution

by:
endital1097 earned 500 total points
ID: 33463936
Get-ExchangeServer | Select Name,ServerRole,AdminDisplayVersion
Get-MailboxDatabase | Select Name,EdbFilePath,LogFolderPath
Get-ClientAccessArray | Select Name,Site,Fqdn
Get-OwaVirtualDirectory | Select ExternalUrl
0
 
LVL 32

Assisted Solution

by:endital1097
endital1097 earned 500 total points
ID: 33463950
Get-Mailbox -ResultSize unlimited | Get-MailboxStatistics | Select DisplayName,ItemCount,TotalItemSize
0
 
LVL 32

Assisted Solution

by:endital1097
endital1097 earned 500 total points
ID: 33463960
to get database file size
$servers = Get-MailboxServer

foreach($s in $servers)

{	$db = Get-MailboxDatabase -Server $s

	foreach ($objItem in $db)

	{	$edbfilepath = $objItem.edbfilepath

		$path = "`\`\" + $s + "`\" + $objItem.EdbFilePath.DriveName.Remove(1).ToString() + "$"+ $objItem.EdbFilePath.PathName.Remove(0,2)

		$dbsize = Get-ChildItem $path

		$dbsize = "{0:N2}" -f ($dbsize.Length/1024MB)

	    $ReturnedObj = New-Object PSObject

	    $ReturnedObj | Add-Member NoteProperty -Name "Server\StorageGroup\Database" -Value $objItem.Identity

	    $ReturnedObj | Add-Member NoteProperty -Name "Size (GB)" -Value $dbsize

	    Write-Output $ReturnedObj



	}

}

Open in new window

0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 15

Author Comment

by:markpalinux
ID: 33464988


I guess that was too easy....

how can I document database limits and message size limits?

Thanks
0
 
LVL 32

Assisted Solution

by:endital1097
endital1097 earned 500 total points
ID: 33465019
Database quotas
Get-MailboxDatabase | ft Name,*Quota
0
 
LVL 32

Assisted Solution

by:endital1097
endital1097 earned 500 total points
ID: 33465035
Get-TransportConfig | Select MaxReceiveSize,MaxSendSize
Get-SendConnector | Select Name,MaxMessageSize
Get-ReceiveConnector | Select Name,MaxMessageSize
0
 
LVL 15

Author Closing Comment

by:markpalinux
ID: 33581021
Great! Thanks.
0

Featured Post

Do email signature updates give you a headache?

Do you feel like you are constantly making changes to email signatures? Are the images not formatting how you want them to? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today.

Join & Write a Comment

Utilizing an array to gracefully append to a list of EmailAddresses
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now