Introduction
In this chapter, we will focus on several scenarios in which PowerShell scripting can be used to increase your efficiency when managing databases, which are the most critical resources in your Exchange environment. We will look at how you can add and remove mailbox databases, configure database settings, generate advanced reports on database statistics, and more from within the shell.
Performing some basic steps
To work with the code samples in this chapter, follow these steps to launch the Exchange Management Shell:
Log on to a workstation or the server with the Exchange Management Tools installed.
You can connect using remote PowerShell if you, for some reason, don't have Exchange Management Tools installed. Use the following command:
$Session = New-PSSession -ConfigurationName Microsoft.Exchange ` -ConnectionUri http://tlex01/PowerShell/ ` -Authentication Kerberos ` Import-PSSession $Session
Open the Exchange Management Shell by clicking on Start | All Programs | Exchange Server...