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 and public folder databases, configure database settings, generate advanced reports on database statistics, and more from within the shell.
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
Open the Exchange Management Shell by clicking on Start | All Programs | Exchange Server 2010
Click on the Exchange Management Shell shortcut