Move-StorageGroupPath (RTM)

 

適用版本: Exchange Server 2007

上次修改主題的時間: 2007-06-05

使用 Move-StorageGroupPath 指令程式,可設定儲存群組的新路徑。

語法

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

詳細描述

Move-StorageGroupPath 指令程式會針對指定的儲存群組物件,在 Active Directory 目錄服務中設定新路徑,再將相關檔案移至新位置。執行此工作的其中一部份是要卸載並重新裝載關聯的資料庫。

若要執行 Move-StorageGroupPath 指令程式,必須對您使用的帳戶委派下列項目:

  • Exchange Server 系統管理員角色和目標伺服器的本機 Administrators 群組

如需管理 Microsoft Exchange Server 2007 所需之權限、委派角色及權利的相關資訊,請參閱權限考量

參數

參數 必要 類型 描述

Identity

必要

Microsoft.Exchange.Configuration.Tasks.StorageGroupIdParameter

使用 Identity 參數,可以指定代表特定儲存群組的 GUID 或辨別名稱。您也可以使用 ServerName\StorageGroup 的格式加入伺服器名稱。Identity 是選用的參數標籤。

ConfigurationOnly

選用

System.Management.Automation.SwitchParameter

ConfigurationOnly 參數僅會在它設為 $true 時設定 Active Directory 中的新路徑。當 ConfigurationOnly 參數設為 $false 時,則會自動將資料檔案複製至新位置。預設值為 $false

CopyLogFolderPath

選用

Microsoft.Exchange.Data.NonRootLocalLongFullPath

CopyLogFolderPath 參數會指出針對儲存群組副本儲存記錄檔的資料夾位置。預設路徑為 <ExchangeInstallPath>\Mailbox\LocalCopies\<StorageGroupName>。所有目錄位置必須位於本機。不允許遠端存取的磁碟機。只有在伺服器上啟用本機連續複寫時,才能使用此參數。附註:請勿將 CopyLogFolderPath 參數與 LogFolderPath 參數混淆。

CopySystemFolderPath

選用

Microsoft.Exchange.Data.NonRootLocalLongFullPath

CopySystemFolderPath 參數會指出針對儲存群組副本儲存系統檔案的資料夾位置。預設路徑為 <ExchangeInstallPath>\Mailbox\LocalCopies\<StorageGroupName>

只有在伺服器上啟用本機連續複寫時,才能使用此參數。附註:請勿將 CopySystemFolderPath 參數與 SystemFolderPath 參數混淆。

DomainController

選用

Microsoft.Exchange.Data.Fqdn

若要指定將此組態變更寫入至 Active Directory 之網域控制站的網域全名 (FQDN),請在命令中加入 DomainController 參數。

Force

選用

System.Management.Automation.SwitchParameter

加入 Force 參數可強制命令在不向使用者確認的情況下執行。

LogFolderPath

選用

Microsoft.Exchange.Data.NonRootLocalLongFullPath

LogFolderPath 參數會指出儲存記錄檔的資料夾位置。預設路徑為 <ExchangeInstallPath>\Mailbox<StorageGroupName>。附註:請勿將 LogFolderPath 參數與 CopyLogFolderPath 參數混淆。

SystemFolderPath

選用

Microsoft.Exchange.Data.NonRootLocalLongFullPath

SystemFolderPath 參數會指出儲存系統檔案的資料夾位置。預設路徑為 <ExchangeInstallPath>\Mailbox<StorageGroupName>。附註:請勿將 SystemFolderPath 參數與 CopySystemFolderPath 參數混淆。

輸入類型

傳回類型

錯誤

錯誤 描述

 

 

例外狀況

例外狀況 描述

 

 

範例

下列程式碼是如何使用 Move-StorageGroupPath 命令的範例。

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

若要確保您目前閱讀的是最新資訊,並尋找其他的 Exchange Server 2007 說明文件,請造訪 Exchange Server 技術資源中心.