Copy-SPTaxonomyGroups
將 Managed 中繼資料分類法群組從 SharePoint 內部部署複製到 SharePoint Online。
Syntax
Copy-SPTaxonomyGroups
[-AssignmentCollection <SPAssignmentCollection>]
[-AuthEndpoint <String>]
-Credential <PSCredential>
[-GraphApiEndpoint <String>]
-GroupNames <String[]>
-LocalSiteUrl <Uri>
-LocalTermStoreName <String>
-RemoteSiteUrl <Uri>
[<CommonParameters>]
Description
使用 Copy-SPTaxonomyGroups Cmdlet 從內部部署環境將指定的中繼資料群組複製到混合式 SharePoint 設定中的 SharePoint Online。 SharePoint Online 會成為所複製分類法群組的授權來源。 分類法群組的所有更新都必須在 SharePoint Online 中進行。 複製分類法群組之後,就無法重新複製。
範例
範例 1
$credential = Get-Credential
Copy-SPTaxonomyGroups -LocalTermStoreName "Managed Metadata Service Application Proxy" -LocalSiteUrl "https://sharepoint" -RemoteSiteUrl "https://contoso.sharepoint.com" -GroupNames "Group1","Group2" -Credential $credential
本範例會將兩個分類法群組 「Group1」 和 「Group2」 從本機字詞庫複製到 「 https://contoso.com" ; 中的遠端字詞庫。 已使用混合式分類法啟用這兩個網站。
參數
-AssignmentCollection
管理物件以適當處置它們。 使用 SPWeb 或 SPSite 等物件可能會耗用大量的記憶體,因此在 Windows PowerShell 指令碼中使用這些物件時,必須適當地管理記憶體。 您可以使用 SPAssignment 物件將物件指派給變數,並在不需要時處置這些物件,以釋放記憶體。 使用 SPWeb、SPSite 或 SPSiteAdministration 物件時,若未使用指派集合或 Global 參數,將會自動處置這些物件。
使用 Global 參數時,所有物件會包含在全域儲存區內。 若未立即使用物件,或未使用 Stop-SPAssignment 命令處置物件,將會發生記憶體不足的狀況。
Type: | SPAssignmentCollection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-AuthEndpoint
指定 Azure Active Directory 圖形 API 驗證端點。 根據預設,將使用已知的端點。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-Credential
指定遠端 SharePoint Online 字詞庫的分類法字詞庫管理員認證。
將資料寫入遠端字詞庫,如此便需要字詞庫管理員的認證以進行作業。
Type: | PSCredential |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-GraphApiEndpoint
指定 Azure Active Directory 圖形 API 端點。 根據預設,將使用已知的端點。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-GroupNames
指定本機內部部署字詞庫中分類法群組的名稱陣列,其將會被複製到遠端 SharePoint Online 字詞庫。
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-LocalSiteUrl
指定包含本機分類法字詞庫的本機 SharePoint 內部部署網站之 URL。
Type: | Uri |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-LocalTermStoreName
指定在 SharePoint 內部部署陣列中本機的分類法字詞庫名稱。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-RemoteSiteUrl
指定包含遠端分類法字詞庫的遠端 SharePoint Online 網站之 URL。
Type: | Uri |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
輸入
System.String
System.Uri System.String[] System.Management.Automation.PSCredential Microsoft。SharePoint.PowerShell.SPAssignmentCollection
輸出
System.Object