Solved

Powershell scripts to document Exchange 2010 Enviroment

Posted on 2010-08-18
7
1,035 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
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Multiple Send Connectors - Exchange (SBS 2008) 10 50
Installation of new DAG member with different patching level 2 46
Doubt. 2 55
exchange out of office 8 38
Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
In this video we show how to create a Contact 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 Recipients >> Contact ta…
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 …

914 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

21 Experts available now in Live!

Get 1:1 Help Now