Set-ExchangeServer (RTM)

 

適用版本: Exchange Server 2007

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

使用 Set-ExchangeServer 命令,在 Active Directory 中針對指定的伺服器設定 Microsoft Exchange Server 2007 屬性。

語法

Set-ExchangeServer -Identity <ServerIdParameter> [-DomainController <Fqdn>] [-ErrorReportingEnabled <Nullable>] [-ProductKey <ProductKey>] [-StaticConfigDomainController <String>] [-StaticDomainControllers <MultiValuedProperty>] [-StaticExcludedDomainControllers <MultiValuedProperty>] [-StaticGlobalCatalogs <MultiValuedProperty>]

Set-ExchangeServer [-DomainController <Fqdn>] [-ErrorReportingEnabled <Nullable>] [-Instance <ExchangeServer>] [-ProductKey <ProductKey>] [-StaticConfigDomainController <String>] [-StaticDomainControllers <MultiValuedProperty>] [-StaticExcludedDomainControllers <MultiValuedProperty>] [-StaticGlobalCatalogs <MultiValuedProperty>]

詳細描述

此命令可在 Active Directory 中,針對只執行 Exchange 2007 的指定電腦設定一般 Exchange 屬性。您一次只能在一部伺服器上使用這個工作。如果您希望大量管理 Exchange 伺服器,請將此工作新增至指令碼。

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

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

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

參數

參數 必要 類型 描述

Identity

必要

Microsoft.Exchange.Configuration.Tasks.ServerIdParameter

此參數指定 GUID、辨別名稱,或伺服器名稱。

DomainController

選用

Microsoft.Exchange.Data.Fqdn

此參數指定命令所使用的網域控制站。

ErrorReportingEnabled

選用

System.Nullable

此參數指定是否啟用錯誤報告。

Instance

選用

Microsoft.Exchange.Data.Directory.Management.ExchangeServer

Instance 參數可讓您將整個物件傳遞至要處理的命令。它主要是用於必須將整個物件傳遞至命令的指令碼。

ProductKey

選用

Microsoft.Exchange.Management.SystemConfigurationTasks.ProductKey

此參數指定伺服器產品金鑰。

StaticConfigDomainController

選用

System.String

此參數是用來設定伺服器透過 DSAccess 所使用的網域控制站。

StaticDomainControllers

選用

Microsoft.Exchange.Data.MultiValuedProperty

此參數是用來設定伺服器透過目錄服務存取 (DSAccess) 所使用的網域控制站清單。

StaticExcludedDomainControllers

選用

Microsoft.Exchange.Data.MultiValuedProperty

此參數是用來排除伺服器所使用的網域控制站清單。

StaticGlobalCatalogs

選用

Microsoft.Exchange.Data.MultiValuedProperty

此參數是用來設定伺服器透過 DSAccess 所使用的通用類別目錄清單。

輸入類型

傳回類型

錯誤

錯誤 描述

例外狀況

例外狀況 描述

範例

在此範例中,已在指定的伺服器上停用錯誤報告。

Set-ExchangeServer -Identity TestServer.Contoso.com -ErrorReportingEnabled: $False

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