?
Solved

Powershell scripts to document Exchange 2010 Enviroment

Posted on 2010-08-18
7
Medium Priority
?
1,081 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

In-place Upgrading Dirsync to Azure AD Connect
A couple of months ago we ran into an issue that necessitated re-creating our Edge Subscriptions. However, when we attempted to execute the command: New-EdgeSubscription -filename C:\NewEdgeSub_01.xml we received an error indicating that the LDAP se…
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
Suggested Courses

770 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