As your environment grows or changes over time, it may be necessary to move one or more databases and their log streams to another location. This is one of those tasks that's required to be done from the Exchange Management Shell. The advantage is, the Shell gives you some more flexibility. In this recipe, you will learn how to move database and log files to another location.
Moving databases and logs to another location
How to do it...
To move the database file and log stream for the DB1 database to a new location, use the following command syntax:
Move-DatabasePath -Identity DB1 ` -EdbFilePath F:\Databases\DB1\Database\DB1.edb ` -LogFolderPath F:\Databases\DB1\Logs ` -Confirm:$false ` -Force
After...