Move-StorageGroupPath

 

適用版本: Exchange Server 2007 SP3, Exchange Server 2007 SP2, Exchange Server 2007 SP1

上次修改主題的時間: 2008-07-07

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

語法

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

詳細描述

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 中的組態。$false 的值會變更 Active Directory 中的組態並移動檔案。預設值為 $true

Confirm

選用

System.Management.Automation.SwitchParameter

Confirm 參數會使得命令暫停處理,並要求確認命令將進行的動作之後才會繼續處理。您不需要為 Confirm 參數指定任何值。

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 參數混淆。

WhatIf

選用

System.Management.Automation.SwitchParameter

WhatIf 參數指示命令模擬它將對物件採取的動作。使用 WhatIf 參數,則不需要套用任何變更,就能檢視變更。您不需要為 WhatIf 參數指定任何值。

輸入類型

傳回類型

錯誤

錯誤 描述

 

 

例外狀況

例外狀況 描述

 

 

範例

下列程式碼是如何使用 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 技術資源中心.