New-MigrationEndpoint

內部部署 Exchange 和雲端式服務有提供此 Cmdlet。 有些參數和設定可能是某一個環境所專屬。

使用 New-MigrationEndpoint Cmdlet 來設定跨樹系移動、遠端移動移轉、完全移轉或分段 Exchange 移轉、IMAP 移轉,以及 Google Workspace (先前稱為 G Suite) 移轉的連線設定。

如需下方<語法>一節中參數集的詳細資訊,請參閱 Exchange Cmdlet 語法

Syntax

New-MigrationEndpoint
   -Name <String>
   -Credentials <PSCredential>
   -EmailAddress <SmtpAddress>
   [-Autodiscover]
   [-ExchangeRemoteMove]
   [-Confirm]
   [-DomainController <Fqdn>]
   [-MaxConcurrentIncrementalSyncs <Unlimited>]
   [-MaxConcurrentMigrations <Unlimited>]
   [-Partition <MailboxIdParameter>]
   [-SkipVerification]
   [-WhatIf]
   [<CommonParameters>]
New-MigrationEndpoint
   -Name <String>
   -Credentials <PSCredential>
   -EmailAddress <SmtpAddress>
   [-Autodiscover]
   [-ExchangeOutlookAnywhere]
   [-AcceptUntrustedCertificates]
   [-Confirm]
   [-DomainController <Fqdn>]
   [-MaxConcurrentIncrementalSyncs <Unlimited>]
   [-MaxConcurrentMigrations <Unlimited>]
   [-Partition <MailboxIdParameter>]
   [-SkipVerification]
   [-SourceMailboxLegacyDN <String>]
   [-TestMailbox <MailboxIdParameter>]
   [-WhatIf]
   [<CommonParameters>]
New-MigrationEndpoint
   -Name <String>
   -Credentials <PSCredential>
   [-EmailAddress <SmtpAddress>]
   [-ExchangeOutlookAnywhere]
   [-ExchangeServer <String>]
   [-AcceptUntrustedCertificates]
   [-Authentication <AuthenticationMethod>]
   [-Confirm]
   [-DomainController <Fqdn>]
   [-MailboxPermission <MigrationMailboxPermission>]
   [-MaxConcurrentIncrementalSyncs <Unlimited>]
   [-MaxConcurrentMigrations <Unlimited>]
   [-NspiServer <String>]
   [-Partition <MailboxIdParameter>]
   [-RpcProxyServer <Fqdn>]
   [-SkipVerification]
   [-SourceMailboxLegacyDN <String>]
   [-TestMailbox <MailboxIdParameter>]
   [-WhatIf]
   [<CommonParameters>]
New-MigrationEndpoint
   -Name <String>
   -RemoteServer <Fqdn>
   [-Credentials <PSCredential>]
   [-ExchangeRemoteMove]
   [-ApplicationId <String>]
   [-AppSecretKeyVaultUrl <String>]
   [-Confirm]
   [-DomainController <Fqdn>]
   [-MaxConcurrentIncrementalSyncs <Unlimited>]
   [-MaxConcurrentMigrations <Unlimited>]
   [-Partition <MailboxIdParameter>]
   [-RemoteTenant <String>]
   [-SkipVerification]
   [-WhatIf]
   [<CommonParameters>]
New-MigrationEndpoint
   -Name <String>
   -RemoteServer <Fqdn>
   [-Credentials <PSCredential>]
   [-PSTImport]
   [-Confirm]
   [-DomainController <Fqdn>]
   [-MaxConcurrentIncrementalSyncs <Unlimited>]
   [-MaxConcurrentMigrations <Unlimited>]
   [-Partition <MailboxIdParameter>]
   [-SkipVerification]
   [-WhatIf]
   [<CommonParameters>]
New-MigrationEndpoint
   -Name <String>
   -RemoteServer <Fqdn>
   [-IMAP]
   [-Port <Int32>]
   [-Security <IMAPSecurityMechanism>]
   [-AcceptUntrustedCertificates]
   [-Authentication <AuthenticationMethod>]
   [-Confirm]
   [-DomainController <Fqdn>]
   [-MaxConcurrentIncrementalSyncs <Unlimited>]
   [-MaxConcurrentMigrations <Unlimited>]
   [-Partition <MailboxIdParameter>]
   [-SkipVerification]
   [-WhatIf]
   [<CommonParameters>]
New-MigrationEndpoint
   -Name <String>
   -ServiceAccountKeyFileData <Byte[]>
   [-Gmail]
   [-EmailAddress <SmtpAddress>]
   [-Confirm]
   [-DomainController <Fqdn>]
   [-MaxConcurrentIncrementalSyncs <Unlimited>]
   [-MaxConcurrentMigrations <Unlimited>]
   [-Partition <MailboxIdParameter>]
   [-SkipVerification]
   [-WhatIf]
   [<CommonParameters>]
New-MigrationEndpoint
   -Name <String>
   -Credentials <PSCredential>
   -PublicFolderDatabaseServerLegacyDN <String>
   -RpcProxyServer <Fqdn>
   -SourceMailboxLegacyDN <String>
   [-PublicFolder]
   [-Authentication <AuthenticationMethod>]
   [-Confirm]
   [-DomainController <Fqdn>]
   [-MaxConcurrentIncrementalSyncs <Unlimited>]
   [-MaxConcurrentMigrations <Unlimited>]
   [-Partition <MailboxIdParameter>]
   [-SkipVerification]
   [-TestMailbox <MailboxIdParameter>]
   [-WhatIf]
   [<CommonParameters>]
New-MigrationEndpoint
   -Name <String>
   -Credentials <PSCredential>
   -RemoteServer <Fqdn>
   [-Compliance]
   [-Confirm]
   [-DomainController <Fqdn>]
   [-MaxConcurrentIncrementalSyncs <Unlimited>]
   [-MaxConcurrentMigrations <Unlimited>]
   [-Partition <MailboxIdParameter>]
   [-SkipVerification]
   [-WhatIf]
   [<CommonParameters>]
New-MigrationEndpoint
   -Name <String>
   -Credentials <PSCredential>
   -RemoteServer <Fqdn>
   [-PublicFolderToUnifiedGroup]
   [-Confirm]
   [-DomainController <Fqdn>]
   [-MaxConcurrentIncrementalSyncs <Unlimited>]
   [-MaxConcurrentMigrations <Unlimited>]
   [-Partition <MailboxIdParameter>]
   [-SkipVerification]
   [-TestMailbox <MailboxIdParameter>]
   [-WhatIf]
   [<CommonParameters>]
New-MigrationEndpoint
   -Name <String>
   -Credentials <PSCredential>
   -RemoteServer <Fqdn>
   [-PublicFolder]
   [-Confirm]
   [-DomainController <Fqdn>]
   [-MaxConcurrentIncrementalSyncs <Unlimited>]
   [-MaxConcurrentMigrations <Unlimited>]
   [-Partition <MailboxIdParameter>]
   [-SkipVerification]
   [-WhatIf]
   [<CommonParameters>]
New-MigrationEndpoint
   -Name <String>
   -Credentials <PSCredential>
   -PublicFolderDatabaseServerLegacyDN <String>
   -RpcProxyServer <Fqdn>
   -SourceMailboxLegacyDN <String>
   [-PublicFolderToUnifiedGroup]
   [-Authentication <AuthenticationMethod>]
   [-Confirm]
   [-DomainController <Fqdn>]
   [-MaxConcurrentIncrementalSyncs <Unlimited>]
   [-MaxConcurrentMigrations <Unlimited>]
   [-Partition <MailboxIdParameter>]
   [-SkipVerification]
   [-TestMailbox <MailboxIdParameter>]
   [-WhatIf]
   [<CommonParameters>]

Description

New-MigrationEndpoint 指令程式會設定不同遷移類型的連線設定:

  • 跨樹系移動:在兩個不同的內部部署 Exchange 樹系之間移動信箱。 跨樹系移動需使用遠端移動端點。
  • 遠端移動移轉:在混合式部署中,遠端移動移轉牽涉到上線或離線移轉。 遠端移動移轉也需要使用 Exchange 遠端移動端點。 上線會將信箱從內部部署 Exchange 組織移至Exchange Online,並使用遠端移動端點作為移轉批次的來源端點。 下線會將信箱從Exchange Online移至內部部署 Exchange 組織,並使用遠端移動端點作為移轉批次的目標端點。
  • 完全轉移 Exchange 移轉:將內部部署 Exchange 組織中的所有信箱移轉至Exchange Online。 完全轉換 Exchange 移轉需要使用 Outlook Anywhere 移轉端點。
  • 分段 Exchange 移轉:將信箱子集從內部部署 Exchange 組織移轉至Exchange Online。 暫存 Exchange 移轉需要使用 Outlook Anywhere 移轉端點。
  • IMAP 移轉:將信箱資料從內部部署 Exchange 組織或其他電子郵件系統移轉至Exchange Online。 若要進行 IMAP 移轉,您必須先建立雲端式信箱,再移轉信箱資料。 IMAP 移轉需要使用 IMAP 端點。
  • Google 工作區移轉:將信箱資料從 Google Workspace 租使用者移轉至 Exchange Online。 若要進行 Google 工作區移轉,您必須先建立雲端式郵件使用者或信箱,才能移轉信箱資料。 Google 工作區移轉需要使用 Gmail 端點。

在單一內部部署 Exchange 樹系內的不同伺服器或資料庫之間移動信箱 (稱為本機移動) 不需要移轉端點。

您必須已獲指派權限,才能執行此指令程式。 雖然本主題已列出這個指令程式的所有參數,不過,如果某些參數並未包含在指派給您的權限中,您可能就無法存取這些參數。 若要尋找在組織中執行任何 Cmdlet 或參數所需的權限,請參閱 Find the permissions required to run any Exchange cmdlet

範例

範例 1

New-MigrationEndpoint -Name Endpoint1 -ExchangeRemoteMove -Autodiscover -EmailAddress tonysmith@contoso.com -Credentials (Get-Credential contoso\tonysmith)

本範例會使用 Autodiscover 參數來偵測設定,以建立遠端移動的端點。

範例 2

New-MigrationEndpoint -Name Endpoint2 -ExchangeRemoteMove -RemoteServer MRSServer.contoso.com -Credentials (Get-Credential Contoso.com\Administrator)

本範例會手動指定設定值,以建立遠端移動的端點。

範例 3

$Credentials = Get-Credential

New-MigrationEndpoint -ExchangeOutlookAnywhere -Name EXCH-AutoDiscover -Autodiscover -EmailAddress administrator@contoso.com -Credentials $Credentials

此範例會使用自動探索參數來偵測內部部署組織的連線設定,以建立 Outlook Anywhere 移轉端點。 Outlook Anywhere 端點用於完全移轉和分段 Exchange 移轉。 Get-Credential 指令程式可用來取得內部部署帳戶的認證,此帳戶具有網域中的必要系統管理權限,而且可以存取要遷移的信箱。 當系統提示您輸入使用者名稱時,您可以使用電子郵件地址或系統管理員帳戶的 domain\username 格式。 此帳戶可以是 EmailAddress 參數所指定的同一個帳戶。

範例 4

New-MigrationEndpoint -ExchangeOutlookAnywhere -Name EXCH_Manual -ExchangeServer EXCH-01-MBX.contoso.com -RPCProxyServer EXCH-02-CAS.contoso.com -Credentials (Get-Credential administrator@contoso.com) -EmailAddress annb@contoso.com

此範例會手動指定連線設定,以建立 Outlook Anywhere 移轉端點。 Outlook Anywhere 端點用於完全移轉和分段 Exchange 移轉。 ExchangeServer 參數的值會指定裝載要移轉之信箱的內部部署 Exchange 伺服器。 RPCProxyServer 參數的值會指定內部部署組織中已安裝用戶端存取伺服器角色且直接接受和 Proxy 用戶端連線的 Exchange 伺服器。 EmailAddress 參數可以指定內部部署網域中的任何信箱。

建議您使用以自動探索到的連線設定建立的遷移端點 (請參閱範例 3),因為會使用自動探索服務來連線至遷移批次中的每一個使用者信箱。 如果您手動指定端點的連線設定,而且使用者信箱不在 ExchangeServer 參數所指定的伺服器上,則該使用者的遷移會失敗。 如果您有多個內部部署 Outlook Anywhere 伺服器,這點很重要。 否則,您可能需要建立不同的遷移端點,以對應至每部內部部署伺服器。

範例 5

New-MigrationEndpoint -IMAP -Name IMAPEndpoint -RemoteServer imap.contoso.com -Port 993 -Security Ssl

本範例會建立 IMAP 遷移端點。 RemoteServer 參數值會指定主控要遷移之信箱的 IMAP 伺服器 FQDN。 端點會設定為使用通訊埠 993 來進行 SSL 加密。

範例 6

New-MigrationEndpoint -IMAP -Name IMAP_TLS_Endpoint -RemoteServer imap.contoso.com -Port 143 -Security Tls -MaxConcurrentMigrations 50 -MaxConcurrentIncrementalSyncs 10

本範例會建立一個 IMAP 遷移端點,支援 50 個同時遷移及 10 個同時增量同步處理。 端點會設定為使用通訊埠 143 來進行 TLS 加密。

參數

-AcceptUntrustedCertificates

此參數只能在雲端式服務中使用。

{{ 填入 AcceptUntrustedCertificates 描述 }}

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Online

-ApplicationId

此參數只能在雲端式服務中使用。

{{ 填滿 ApplicationId 描述 }}

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Online

-AppSecretKeyVaultUrl

此參數只能在雲端式服務中使用。

{{ 填入 AppSecretKeyVaultUrl 描述 }}

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Online

-Authentication

此參數只能在雲端式服務中使用。

Authentication 參數會指定內部部署郵件伺服器所使用的驗證方法。 如果未包含這個參數,則系統會使用 Basic 驗證。

Type:AuthenticationMethod
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Online

-Autodiscover

針對 Exchange 移轉,自動探索參數會指定是否要從自動探索服務取得內部部署伺服器的其他連線設定。 您不需要使用此參數指定值。

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Server 2013, Exchange Server 2016, Exchange Server 2019, Exchange Online

-Compliance

[合規性] 參數會指定端點類型為合規性。 您不需要使用此參數指定值。

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Server 2016, Exchange Server 2019, Exchange Online

-Confirm

Confirm 參數會指定要顯示或隱藏確認提示。 這個參數對 Cmdlet 的影響取決於 Cmdlet 是否需要確認才能繼續作業。

  • 例如,具破壞性的 Cmdlet (例如 Remove-* Cmdlet) 內建暫停,可強制您在繼續之前確認命令。 對於這些 Cmdlet,您可以使用以下確切語法來略過確認提示:-Confirm:$false
  • 其他大部分的 Cmdlet (例如,New-* 和 Set-* Cmdlet) 沒有內建暫停。 在使用這些 Cmdlet 時,指定不含任何值的 Confirm 參數會引入強迫您認可命令後才繼續作業的暫停。
Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Server 2013, Exchange Server 2016, Exchange Server 2019, Exchange Online

-Credentials

Credentials 參數會指定要連線到所有 Exchange 移轉類型的來源或目標端點的認證。

此參數的值需要使用 Get-Credential Cmdlet。 若要暫停此命令並收到輸入認證的提示,請使用值 (Get-Credential)。 或者,在您執行此命令之前,將認證儲存在變數中 (例如,$cred = Get-Credential),然後將變數名稱 ($cred) 用於此參數。 如需詳細資訊,請參閱 Get-Credential

Type:PSCredential
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Server 2013, Exchange Server 2016, Exchange Server 2019, Exchange Online

-DomainController

此參數僅適用於內部部署 Exchange。

DomainController 參數會指定此 Cmdlet 用來向 Active Directory 讀取或寫入資料的網域控制站。 您可以透過網域控制站的完整網域名稱 (FQDN) 來識別網域控制站。 例如,dc01.contoso.com。

Type:Fqdn
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Server 2013, Exchange Server 2016, Exchange Server 2019

-EmailAddress

EmailAddress 參數會指定自動探索服務所使用的電子郵件地址,或在某些情況下,當您手動指定連線設定時用來驗證端點的電子郵件地址。

Type:SmtpAddress
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Server 2013, Exchange Server 2016, Exchange Server 2019, Exchange Online

-ExchangeOutlookAnywhere

此參數只能在雲端式服務中使用。

ExchangeOutlookAnywhere 參數會指定階段性與轉換移轉的端點類型。 您不需要使用此參數指定值。

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Online

-ExchangeRemoteMove

ExchangeRemoteMove 參數會指定混合部署中跨樹系移動及遠端移動遷移的端點類型。 您不需要使用此參數指定值。

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Server 2013, Exchange Server 2016, Exchange Server 2019, Exchange Online

-ExchangeServer

此參數只能在雲端式服務中使用。

ExchangeServer 參數會指定裝載要移轉之信箱之內部部署 Exchange 伺服器的 FQDN。 當您建立 Outlook Anywhere 移轉端點以進行完全移轉和分段 Exchange 移轉時,會使用此參數。

唯有未使用 Autodiscover 參數時才需要有這個參數。

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Online

-Gmail

此參數只能在雲端式服務中使用。

Gmail 參數會指定 Google 工作區移轉的端點類型。 您不需要使用此參數指定值。

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Online

-IMAP

此參數只能在雲端式服務中使用。

IMAP 參數會指定 IMAP 移轉的端點類型。 您不需要使用此參數指定值。

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Online

-MailboxPermission

此參數只能在雲端式服務中使用。

MailboxPermission 參數會指定在 Outlook Anywhere 上線 (暫存 Exchange 移轉和完全轉換 Exchange 移轉) 期間,要用來存取來源信箱的許可權。

為端點指定的遷移系統管理員帳戶必須具有下列其中一個權限:

  • Admin:此帳戶是網域系統管理員,可以存取任何他們想要遷移的信箱。
  • FullAccess:會對此帳戶指派他們想要遷移之信箱的「完整存取」權限,或主控要遷移之信箱的信箱資料庫的 Receive As 權限。

如果未指定此參數,則指令程式會嘗試使用網域系統管理員權限存取來源信箱,但若失敗,則它會嘗試使用「完整存取」或 Receive As 權限存取來源信箱。

此參數無法用於建立非 Outlook Anywhere 移轉端點。

Type:MigrationMailboxPermission
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Online

-MaxConcurrentIncrementalSyncs

MaxConcurrentIncrementalSyncs 參數會指定每個端點的累進同步數目上限。 預設值是 20。

Type:Unlimited
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Server 2013, Exchange Server 2016, Exchange Server 2019, Exchange Online

-MaxConcurrentMigrations

MaxConcurrentMigrations 參數會指定初始同步期間移轉的信箱數目上限。此參數適用于所有移轉類型。 預設值為 100。

Type:Unlimited
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Server 2013, Exchange Server 2016, Exchange Server 2019, Exchange Online

-Name

Name 參數會指定您賦予新移轉端點的名稱。 您可以在執行 New-MigrationBatch 指令程式時使用 Name 參數。

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Server 2013, Exchange Server 2016, Exchange Server 2019, Exchange Online

-NspiServer

此參數只能在雲端式服務中使用。

NspiServer 參數會指定轉換與階段性移轉的遠端名稱服務提供者介面 (NSPI) 伺服器位置。 您必須提供伺服器的 FQDN。

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Online

-Partition

此參數只能在雲端式服務中使用。

將保留此參數供 Microsoft 內部使用。

Type:MailboxIdParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Online

-Port

此參數只能在雲端式服務中使用。

進行 IMAP 遷移時,Port 參數會指定遷移程序用來連線到遠端伺服器的 TCP 通訊埠號碼。 當您想要將資料從內部部署 IMAP 伺服器遷移至雲端式信箱時,需要此參數。

Type:Int32
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Online

-PSTImport

此參數僅適用於內部部署 Exchange。

將保留此參數供 Microsoft 內部使用。

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Server 2013, Exchange Server 2016, Exchange Server 2019

-PublicFolder

此參數只能在雲端式服務中使用。

將保留此參數供 Microsoft 內部使用。

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Online

-PublicFolderDatabaseServerLegacyDN

此參數只能在雲端式服務中使用。

將保留此參數供 Microsoft 內部使用。

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Online

-PublicFolderToUnifiedGroup

PublicFolderToUnifiedGroup 參數會指定端點類型是要Microsoft 365 群組的公用資料夾。 您不需要使用此參數指定值。

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Server 2016, Exchange Server 2019, Exchange Online

-RemoteServer

RemoteServer 參數會指定遠端伺服器的 FQDN,但取決於用於移動的通訊協定類型:

  • 對於跨樹系移動和遠端移動移轉,此參數是指內部部署組織中已安裝用戶端存取伺服器角色且直接接受和 Proxy 用戶端連線的 Exchange 伺服器。
  • 若為 IMAP 遷移,此參數代表 IMAP 伺服器。
Type:Fqdn
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Server 2013, Exchange Server 2016, Exchange Server 2019, Exchange Online

-RemoteTenant

此參數只能在雲端式服務中使用。

{{ 填滿 RemoteTenant Description }}

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Online

-RpcProxyServer

此參數只能在雲端式服務中使用。

RpcProxyServer 參數會指定內部部署 Exchange 組織中已安裝用戶端存取伺服器角色且直接接受和 Proxy 用戶端連線之 Exchange 伺服器的 FQDN。 當您建立 Outlook Anywhere 移轉端點以進行完全移轉和分段 Exchange 移轉時,會使用此參數。 一般而言,此 FQDN 會與您的Outlook 網頁版 URL 相同;例如,mail.contoso.com。 這也是 Outlook 用來連線到 Exchange 伺服器之 Proxy 伺服器的 URL。

唯有未使用 Autodiscover 參數時才需要有這個參數。

Type:Fqdn
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Online

-Security

此參數只能在雲端式服務中使用。

針對 IMAP 移轉,Security 參數會指定遠端郵件伺服器所使用的加密方法。 選項為 None、Tls 或 Ssl。

Type:IMAPSecurityMechanism
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Online

-ServiceAccountKeyFileData

此參數只能在雲端式服務中使用。

ServiceAccountKeyFileData 參數可用來指定驗證為服務帳戶所需的資訊。 資料應該來自建立已授與遠端租使用者存取權的服務帳戶時所下載的 JSON 金鑰檔案。

此參數的有效值需要您使用下列語法,將檔案讀取至位元組編碼的物件: ([System.IO.File]::ReadAllBytes('<Path>\<FileName>')) 。 您可以使用此命令作為參數值,也可以將輸出寫入變數 () $data = [System.IO.File]::ReadAllBytes('<Path>\<FileName>') ,並使用 變數作為參數值 () $data

Type:Byte[]
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Online

-SkipVerification

SkipVerification 參數會指定在建立遷移端點時是否要略過遠端伺服器可聯繫性的驗證作業。 您不需要使用此參數指定值。

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Server 2013, Exchange Server 2016, Exchange Server 2019, Exchange Online

-SourceMailboxLegacyDN

此參數只能在雲端式服務中使用。

SourceMailboxLegacyDN 參數會指定內部部署信箱的 LegacyExchangeDN,此信箱可用來測試遷移服務是否能使用此端點建立連線。 此指令程式會嘗試使用命令中指定之系統管理員帳戶的認證來存取此信箱。

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Online

-TestMailbox

此參數只能在雲端式服務中使用。

TestMailbox 參數會指定移轉服務用來驗證使用此端點之連線的Exchange Online信箱。 您可以使用可唯一識別信箱的任何值。 例如:

  • 名稱
  • 別名
  • 辨別名稱 (DN)
  • 辨別名稱 (DN)
  • Domain\Username
  • 電子郵件地址
  • GUID
  • LegacyExchangeDN
  • SamAccountName
  • 使用者識別碼或使用者主要名稱 (UPN)

如果您未使用此參數,移轉服務會使用Exchange Online組織中的移轉仲裁信箱來驗證連線。

此參數僅用來建立 Outlook Anywhere 移轉端點。

Type:MailboxIdParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Online

-WhatIf

WhatIf 參數會模擬命令的動作。 使用此參數時,您不需要實際套用變更即可檢視可能會發生的變更。 您不需要使用此參數指定值。

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Server 2013, Exchange Server 2016, Exchange Server 2019, Exchange Online

輸入

Input types

若要查看此指令程式可接受的輸入類型,請參閱指令程式輸入和輸出類型。 如果指令程式的 [輸入類型] 欄位是空的,表示指令程式不接受輸入資料。

輸出

Output types

若要查看此指令程式可接受的傳回類型 (也就是所謂的輸出類型),請參閱指令程式輸入和輸出類型。 如果 [輸出類型] 欄位是空的,表示指令程式不會傳回資料。