Share via


Move-StorageGroupPath (RTM)

Microsoft Exchange Server 2007 will reach end of support on April 11, 2017. To stay supported, you will need to upgrade. For more information, see Resources to help you upgrade your Office 2007 servers and clients.

 

Applies to: Exchange Server 2007

Use the Move-StorageGroupPath cmdlet to set a new path for a storage group.

Syntax

Move-StorageGroupPath -Identity <StorageGroupIdParameter> [-ConfigurationOnly <SwitchParameter>] [-CopyLogFolderPath <NonRootLocalLongFullPath>] [-CopySystemFolderPath <NonRootLocalLongFullPath>] [-DomainController <Fqdn>] [-Force <SwitchParameter>] [-LogFolderPath <NonRootLocalLongFullPath>] [-SystemFolderPath <NonRootLocalLongFullPath>]

Detailed Description

The Move-StorageGroupPath cmdlet sets a new path in the Active Directory directory service for the specified storage group object and then moves the related files to the new location. As part of executing this task, the associated databases are dismounted and remounted.

To run the Move-StorageGroupPath cmdlet, the account you use must be delegated the following:

  • Exchange Server Administrator role and local Administrators group for the target server

For more information about permissions, delegating roles, and the rights that are required to administer Microsoft Exchange Server 2007, see Permission Considerations.

Parameters

Parameter Required Type Description

Identity

Required

Microsoft.Exchange.Configuration.Tasks.StorageGroupIdParameter

Use the Identity parameter to specify the GUID or distinguished name that represents a specific storage group. You can also include the server name by using the format ServerName\StorageGroup. The Identity parameter label is optional.

ConfigurationOnly

Optional

System.Management.Automation.SwitchParameter

The ConfigurationOnly parameter sets the new path in Active Directory only when it is set to $true. The data files are automatically copied to the new location when the ConfigurationOnly parameter is set to $false. The default value is $false.

CopyLogFolderPath

Optional

Microsoft.Exchange.Data.NonRootLocalLongFullPath

The CopyLogFolderPath parameter indicates the folder where log files are stored for the storage group copy. The default path is <ExchangeInstallPath>\Mailbox\LocalCopies\<StorageGroupName>. The location for all directories must be local. Remote access disk drives are not permissible. This parameter can only be used when Local Continuous Replication is enabled on the server. Note: Do not confuse the CopyLogFolderPath parameter with the LogFolderPath parameter.

CopySystemFolderPath

Optional

Microsoft.Exchange.Data.NonRootLocalLongFullPath

The CopySystemFolderPath parameter indicates the folder where system files are stored for the storage group copy. The default path is <ExchangeInstallPath>\Mailbox\LocalCopies\<StorageGroupName>.

This parameter can only be used when Local Continuous Replication is enabled on the server. Note: Do not confuse the CopySystemFolderPath parameter with the SystemFolderPath parameter.

DomainController

Optional

Microsoft.Exchange.Data.Fqdn

To specify the fully qualified domain name (FQDN) of the domain controller that writes this configuration change to Active Directory, include the DomainController parameter in the command.

Force

Optional

System.Management.Automation.SwitchParameter

Include the Force parameter to force the command to execute without asking for user confirmation.

LogFolderPath

Optional

Microsoft.Exchange.Data.NonRootLocalLongFullPath

The LogFolderPath parameter indicates the folder where log files will be stored. The default path is <ExchangeInstallPath>\Mailbox<StorageGroupName>. Note: Do not confuse the LogFolderPath parameter with the CopyLogFolderPath parameter.

SystemFolderPath

Optional

Microsoft.Exchange.Data.NonRootLocalLongFullPath

The SystemFolderPath parameter indicates the folder where system files will be stored. The default path is <ExchangeInstallPath>\Mailbox<StorageGroupName>. Note: Do not confuse the SystemFolderPath parameter with the CopySystemFolderPath parameter.

Input Types

Return Types

Errors

Error Description

 

 

Exceptions

Exceptions Description

 

 

Example

The following code is an example of how to use the Move-StorageGroupPath command.

Move-StorageGroupPath -Identity "Second Storage Group" -LogFolderPath:"D:\Mailbox\Second Storage Group" -SystemFolderPath:"D:\Mailbox\Second Storage Group"