Set-SPMetadataServiceApplication
設定 Managed Metadata Service 應用程式的屬性。
Syntax
Set-SPMetadataServiceApplication
[-Identity] <SPMetadataServiceCmdletPipeBind>
[-AdministratorAccount <String>]
[-ApplicationPool <SPIisWebServiceApplicationPoolPipeBind>]
[-AssignmentCollection <SPAssignmentCollection>]
[-CacheTimeCheckInterval <Int32>]
[-Confirm]
[-DatabaseCredentials <PSCredential>]
[-DatabaseName <String>]
[-DatabaseServer <String>]
[-DoNotUnpublishAllPackages]
[-FailoverDatabaseServer <String>]
[-FullAccessAccount <String>]
[-Name <String>]
[-RestrictedAccount <String>]
[-SyndicationErrorReportEnabled]
[-HubUri <String>]
[-MaxChannelCache <Int32>]
[-ReadAccessAccount <String>]
[-WhatIf]
[-DisablePartitionQuota]
[<CommonParameters>]
Set-SPMetadataServiceApplication
[-Identity] <SPMetadataServiceCmdletPipeBind>
[-AdministratorAccount <String>]
[-ApplicationPool <SPIisWebServiceApplicationPoolPipeBind>]
[-AssignmentCollection <SPAssignmentCollection>]
[-CacheTimeCheckInterval <Int32>]
[-Confirm]
[-DatabaseCredentials <PSCredential>]
[-DatabaseName <String>]
[-DatabaseServer <String>]
[-DoNotUnpublishAllPackages]
[-FailoverDatabaseServer <String>]
[-FullAccessAccount <String>]
[-Name <String>]
[-RestrictedAccount <String>]
[-SyndicationErrorReportEnabled]
[-HubUri <String>]
[-MaxChannelCache <Int32>]
[-ReadAccessAccount <String>]
[-WhatIf]
-GroupsPerPartition <Int32>
-LabelsPerPartition <Int32>
-PropertiesPerPartition <Int32>
-TermSetsPerPartition <Int32>
-TermsPerPartition <Int32>
[<CommonParameters>]
Description
使用 Cmdlet Set-SPMetadataServiceApplication
來設定受控中繼資料服務應用程式的屬性。
如需適用於 SharePoint 產品的 Windows PowerShell 權限及最新資訊,請參閱線上文件 SharePoint Server Cmdlet。
範例
--------------------範例 1---------------------
$sa = Get-SPMetadataServiceApplication -Identity 'Managed Metadata Service Application'
Set-SPMetadataServiceApplication -Identity $sa -HubUri 'https://sitename' -SyndicationErrorReportEnabled
此範例會對現有 Managed Metadata Service 應用程式新增內容類型中樞。 它也會在匯入內容類型時啟用錯誤報告。
--------------------範例 2---------------------
$sa = Get-SPMetadataServiceApplication -Identity 'Managed Metadata Service Application'
Set-SPMetadataServiceApplication -Identity $sa -AdministratorAccount 'contoso\username1' -FullAccessAccount 'contoso\AppPoolAccount1,contoso\AppPoolAccount2' -RestrictedAccount 'contoso\AppPoolAccount3,contoso\AppPoolAccount4,contoso\AppPoolAccount5' -ReadAccessAccount 'contoso\AppPoolAccount6'
此範例會設定現有 Managed Metadata Service 應用程式上的權限。
如果您使用Windows PowerShell來設定任何帳戶值,您應該設定所有值。
此 Set-SPMetadataServiceApplication
Cmdlet 會先清除所有帳戶,然後新增您指定的帳號。
參數
-AdministratorAccount
以逗號分隔的使用者帳戶或服務帳戶清單,格式 < 為 domain > \ < account > ,可建立並執行服務應用程式。 帳戶必須已存在。
如果使用此參數設定值,則會移除 FullAccessAccount、ReadAccessAccount 和 RestrictedAccount 參數的任何現有值。 請考慮一起設定所有四個參數。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-ApplicationPool
為 Managed Metadata Service 應用程式指定要執行 Web 服務的現有 IIS 應用程式集區。
此值必須為 SPServiceApplicationPool 物件的身分識別 GUID;現有應用程式集區名稱;或是有效之 SPServiceApplicationPool 物件的執行個體。
Type: | SPIisWebServiceApplicationPoolPipeBind |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-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 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-CacheTimeCheckInterval
指定前端網頁伺服器在詢問應用程式伺服器是否有變更之前應等待的間隔時間 (以秒為單位)。 此值是按計時器工作、用戶端應用程式或 Web 應用程式個別設定。
最小值是 1,無最大值。 預設值為 10。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-Confirm
在執行命令之前,提示您確認操作。
如需詳細資訊,請輸入下列命令:get-help about_commonparameters
。
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-DatabaseCredentials
指定包含要用於資料庫 SQL 驗證之使用者名稱及密碼的 PSCredential 物件。
若要使用 SQL 驗證,則必須指定 DatabaseCredentials 參數,或者必須同時設定 DatabaseUserName 和 DatabasePassword 參數。
此類型必須為有效的 PSCredential 物件。
Type: | PSCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-DatabaseName
指定 Managed Metadata Service 應用程式字詞庫所在的資料庫名稱。
此類型必須是有效的 SQL Server 資料庫名稱,例如 MeatadataDB1。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-DatabaseServer
指定 DatabaseName 中指定之資料庫的主機伺服器名稱。
此類型必須是有效的 SQL Server 資料庫名稱,例如 SqlServerHost1。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-DisablePartitionQuota
處於資料分割模式時,停用資料分割配額。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-DoNotUnpublishAllPackages
若設定此標幟,則不會解除發佈套件。 若 HubUri 參數已變更,則所有內容類型套件預設都會解除發佈。
若 HubUri 參數未變更,則此標幟沒有作用。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-FailoverDatabaseServer
指定容錯移轉資料庫伺服器之主機伺服器的名稱。
此類型必須是有效的 SQL Server 主機名稱,例如 SQLServerHost1。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-FullAccessAccount
指定一組以逗號分隔的應用程式集區帳戶,其格式 < 為 domain > \ < account > ,將會獲得 Managed 中繼資料服務字詞庫和內容類型庫的讀取/寫入權限。 帳戶必須已存在。
如果使用此參數設定值,則會移除 AdministratorAccount、ReadAccessAccount 和 RestrictedAccount 參數的任何現有值。 請考慮一起設定所有四個參數。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-GroupsPerPartition
處於資料分割模式時,設定每個資料分割的群組數目上限。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-HubUri
指定服務所提供存取權之內容類型庫所在的網站集合完整 URL。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-Identity
指定要更新的 Managed Metadata Service 應用程式。
此類型必須是有效的 GUID 或有效受控中繼資料服務應用程式的名稱。
Type: | SPMetadataServiceCmdletPipeBind |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-LabelsPerPartition
處於資料分割模式時,設定每個資料分割的標籤數目上限。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-MaxChannelCache
指定前端網頁伺服器開放給應用程式伺服器使用的 Windows Communication Foundation (WCF) 頻道數目上限。 此值是按計時器工作、用戶端應用程式或 Web 應用程式個別設定。
最小值是 0,無最大值。 預設值為 4。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-Name
指定服務應用程式的新名稱。 名稱最多可以包含 128 個字元。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-PropertiesPerPartition
處於資料分割模式時,設定每個資料分割的屬性數目上限。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-ReadAccessAccount
指定一組以逗號分隔的應用程式集區帳戶,其格式 < 為 domain > \ < account > ,將獲得 Managed 中繼資料服務字詞庫和內容類型庫的唯讀許可權。 帳戶必須已存在。
如果使用此參數設定值,則會移除 FullAccessAccount、RestrictedAccount 和 AdministratorAccount 參數的任何先前值。 請考慮一起設定所有四個參數。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-RestrictedAccount
指定一組以逗號分隔的應用程式集區帳戶,其格式 < 為 domain > \ < account > ,可讓您讀取受控中繼資料服務的字詞庫和內容類型庫,以及寫入開啟字片語和本機字片語以及建立新企業關鍵字的許可權。 帳戶必須已存在。
如果使用此參數設定值,則會移除 FullAccessAccount、ReadAccessAccount 和 AdministratorAccount 參數的任何先前值。 請考慮一起設定所有四個參數。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-SyndicationErrorReportEnabled
當匯入內容類型時,啟用錯誤報告。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-TermSetsPerPartition
處於資料分割模式時,設定每個資料分割的字片語數目上限。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-TermsPerPartition
處於資料分割模式時,設定每個資料分割的字詞數目上限。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-WhatIf
顯示訊息會描述命令的功效而不執行命令。
如需詳細資訊,請輸入下列命令:get-help about_commonparameters
。
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |