Move-SPProfileManagedMetadataProperty

將多字串值移入字詞組。

語法

Default (預設值)

Move-SPProfileManagedMetadataProperty
    -Identity <String>
    -ProfileServiceApplicationProxy <SPServiceApplicationProxyPipeBind>
    [-AssignmentCollection <SPAssignmentCollection>]
    [-AvailableForTagging]
    [-Confirm]
    [-TermSetName <String>]
    [-WhatIf]
    [<CommonParameters>]

Description

使用 Move-SPProfileManagedMetadataProperty Cmdlet 將多字串或單字串屬性值移至您指定的字詞集中。 如果您未指定字詞集,則值會移至關鍵字字詞集中。 您在執行 Cmdlet 之後新增至屬性的任何新值,都會移至您指定的字詞集中。

從 Office SharePoint Server 升級使用者設定檔應用程式之後,除非執行 Move-SPProfileManagedMetadataProperty Cmdlet 以將它們對應至 Managed Metadata Service 內的字詞集,否則將無法使用單一字串和多字串值屬性。

如需適用於 SharePoint 產品的 Windows PowerShell 權限及最新資訊,請參閱線上文件 SharePoint Server Cmdlet。

範例

範例

$proxy = Get-SPServiceApplicationProxy | ?{$_.TypeName -eq 'User Profile Service Application Proxy'}
Move-SPProfileManagedMetadataProperty -ProfileServiceApplicationProxy $proxy -Identity SPS-Interests -TermSetName Interests -AvailableForTagging

此範例會將值從 SPS-Interests 屬性移至稱為 Interests 的新字詞集,並將該字詞集標示為可供標記。

參數

-AssignmentCollection

適用項目:SharePoint Server 2010、SharePoint Server 2013、SharePoint Server 2016、SharePoint Server 2019

管理物件以適當處置它們。 使用 SPWeb 或 SPSite 等物件可能會耗用大量的記憶體,因此在 Windows PowerShell 指令碼中使用這些物件時,必須適當地管理記憶體。 您可以使用 SPAssignment 物件將物件指派給變數,並在不需要時處置這些物件,以釋放記憶體。 使用 SPWeb、SPSite 或 SPSiteAdministration 物件時,若未使用指派集合或 Global 參數,將會自動處置這些物件。

使用 Global 參數時,所有物件會包含在全域儲存區內。 若未立即使用物件,或未使用 Stop-SPAssignment 命令處置物件,將會發生記憶體不足的狀況。

參數屬性

類型:SPAssignmentCollection
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:True
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-AvailableForTagging

適用項目:SharePoint Server 2010、SharePoint Server 2013、SharePoint Server 2016、SharePoint Server 2019

決定產生的字詞集中的字詞是否可用於受管理的中繼資料標記。 如果字詞集有超過 30,000 個字詞,將其用於受管理的中繼資料標記可能會導致用戶端電腦的效能問題。 因為大部分的設定檔屬性可能有超過 30,000 個字詞,所以預設值為 [否]。

參數屬性

類型:SwitchParameter
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-Confirm

適用項目:SharePoint Server 2010、SharePoint Server 2013、SharePoint Server 2016、SharePoint Server 2019

在執行命令之前,提示您確認操作。 如需詳細資訊,請輸入下列命令:get-help about_commonparameters。

參數屬性

類型:SwitchParameter
預設值:None
支援萬用字元:False
不要顯示:False
別名:CF

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-Identity

適用項目:SharePoint Server 2010、SharePoint Server 2013、SharePoint Server 2016、SharePoint Server 2019

指定需要移轉至分類法的設定檔屬性名稱。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-ProfileServiceApplicationProxy

適用項目:SharePoint Server 2010、SharePoint Server 2013、SharePoint Server 2016、SharePoint Server 2019

指定要使用的使用者設定檔服務應用程式 Proxy 的名稱。

參數屬性

類型:SPServiceApplicationProxyPipeBind
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:True
來自管線的值:True
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-TermSetName

適用項目:SharePoint Server 2010、SharePoint Server 2013、SharePoint Server 2016、SharePoint Server 2019

指定時,會建立字詞集名稱。 如果未指定 TermSetName 參數,則屬性會對應至 Managed Metadata Service 中的關鍵字詞彙集。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-WhatIf

適用項目:SharePoint Server 2010、SharePoint Server 2013、SharePoint Server 2016、SharePoint Server 2019

顯示訊息會描述命令的功效而不執行命令。 如需詳細資訊,請輸入下列命令:get-help about_commonparameters。

參數屬性

類型:SwitchParameter
預設值:None
支援萬用字元:False
不要顯示:False
別名:WI

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

CommonParameters

此 Cmdlet 支援常見參數: -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters。