For more information about the queue database, see Managing the Queue Database.
By default the Move-TransportDatabase.ps1 script is located in the following folder on an Exchange 2007 SP1-based computer:
%ProgramFiles%\Microsoft\Exchange Server\Scripts
This script accepts the following parameters:
-
-QueueDatabasePath
-
-QueueDatabaseLoggingPath
-
-IPFilterDatabasePath
-
-IPFilterDatabaseLoggingPath
-
-TemporaryStoragePath
To move the Transport database or transaction log files, the script performs the following actions:
-
The script validates the parameter values.
-
The script skips the validation action if the destination path that is specified is the same as the source path.
-
The QueueDatabasePath and IPFilterDatabasePath values cannot be the same. This is because both locations contain Trn.chk files.
-
The QueueDatabaseLoggingPath and the IPFilterDatabaseLoggingPath values cannot be the same. This is because the log files have the same file name.
-
The script verifies that 2 GB plus space equal to the size of the files that must be copied is available. For example, space must be available that is equal to 2 GB plus the size of the Mail.que, Trn.chk, and Ipfiltering.edb files.
Note: |
|---|
|
The script skips the file space verification if the destination path is on the same drive as the source files.
|
-
The script creates folders, as appropriate.
-
The script creates the destination folders, if required.
-
If the Administrators group, the local System account, or the Network Services account does not have Full Control permissions to the destination path, the script adds the permissions.
-
If the Administrators group, the local System account, or the Network Services account has a Deny access rule to the destination path, the script generates a warning message. In this scenario, the script does not exit.
-
The script stops the MSExchangeTransport service.
-
The script backs up the EdgeTransport.exe.config file and names it EdgeTransport.exe.config.yyyyMMddHHmmss.old.
-
The script moves the following files to the destination path, as appropriate for the command that was used:
-
QueueDatabasePath: Mail.que, Trn.chk
-
IPFilterDatabasePath: IPFiltering.edb, Trn.chk
-
Logging path: Trn*.log, Trnres00001.jrs, Trnres00002.jrs, Temp.edb
-
The script updates the EdgeTransport.exe.config file and then saves the changes to the file.
-
The script starts the MSExchangeTransport service.