?
Solved

Powershell scripts to document Exchange 2010 Enviroment

Posted on 2010-08-18
7
Medium Priority
?
1,096 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 2000 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 2000 total points
ID: 33463950
Get-Mailbox -ResultSize unlimited | Get-MailboxStatistics | Select DisplayName,ItemCount,TotalItemSize
0
 
LVL 32

Assisted Solution

by:endital1097
endital1097 earned 2000 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
Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

 
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 2000 total points
ID: 33465019
Database quotas
Get-MailboxDatabase | ft Name,*Quota
0
 
LVL 32

Assisted Solution

by:endital1097
endital1097 earned 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As much as Microsoft wants to kill off PST file support, just as they tried to do with public folders, there are still times when it is useful or downright necessary to export Exchange mailboxes to PST files. Thankfully, it is still possible to e…
This article will help to fix the below errors for MS Exchange Server 2016 I. Certificate error "name on the security certificate is invalid or does not match the name of the site" II. Out of Office not working III. Make Internal URLs and Externa…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

807 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