New-SPMetadataServiceApplication
建立新的 Managed Metadata Service 應用程式。
Syntax
New-SPMetadataServiceApplication
-Name <String>
[-AdministratorAccount <String>]
-ApplicationPool <SPIisWebServiceApplicationPoolPipeBind>
[-AssignmentCollection <SPAssignmentCollection>]
[-CacheTimeCheckInterval <Int32>]
[-Confirm]
[-DatabaseCredentials <PSCredential>]
[-DatabaseName <String>]
[-DatabaseServer <String>]
[-FailoverDatabaseServer <String>]
[-FullAccessAccount <String>]
[-HubUri <String>]
[-MaxChannelCache <Int32>]
[-PartitionMode]
[-ReadAccessAccount <String>]
[-RestrictedAccount <String>]
[-SyndicationErrorReportEnabled]
[-WhatIf]
[-DisablePartitionQuota]
[-DeferUpgradeActions]
[<CommonParameters>]
New-SPMetadataServiceApplication
-Name <String>
[-AdministratorAccount <String>]
-ApplicationPool <SPIisWebServiceApplicationPoolPipeBind>
[-AssignmentCollection <SPAssignmentCollection>]
[-CacheTimeCheckInterval <Int32>]
[-Confirm]
[-DatabaseCredentials <PSCredential>]
[-DatabaseName <String>]
[-DatabaseServer <String>]
[-FailoverDatabaseServer <String>]
[-FullAccessAccount <String>]
[-HubUri <String>]
[-MaxChannelCache <Int32>]
[-PartitionMode]
[-ReadAccessAccount <String>]
[-RestrictedAccount <String>]
[-SyndicationErrorReportEnabled]
[-WhatIf]
-GroupsPerPartition <Int32>
-LabelsPerPartition <Int32>
-PropertiesPerPartition <Int32>
-TermSetsPerPartition <Int32>
-TermsPerPartition <Int32>
[-DeferUpgradeActions]
[<CommonParameters>]
Description
使用 Cmdlet New-SPMetadataServiceApplication
建立新的受控中繼資料服務應用程式。
如需適用於 SharePoint 產品的 Windows PowerShell 權限及最新資訊,請參閱線上文件 SharePoint Server Cmdlet。
範例
-----------------範例 1---------------
New-SPMetadataServiceApplication -Name "MetadataServiceApp1" -ApplicationPool "AppPool1" -DatabaseName "MetadataDB1"
此範例會建立新的 Managed Metadata Service 應用程式。
-----------------範例 2---------------
New-SPMetadataServiceApplication -Name "MetadataServiceApp2" -ApplicationPool "AppPool1" -DatabaseName "MetadataDB2" -HubUri "https://sitename" -SyndicationErrorReportEnabled
此範例會建立新的 Managed Metadata Service 應用程式,並指定用於整合的內容類型中樞。 它也會在整合期間啟用錯誤報告。
-----------------範例 3---------------
New-SPMetadataServiceApplication -Name "MetadataServiceApp3" -ApplicationPool "AppPool1" -DatabaseName "MetadataDB3" -PartitionMode
此範例會建立已分割的新 Managed Metadata Service 應用程式,以供訂閱中的網站使用。
參數
-AdministratorAccount
以逗號分隔的使用者帳戶或服務帳戶清單,格式 < 為 domain > \ < account > ,可建立並執行服務應用程式。 帳戶必須已存在。
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 應用程式之現有 IIS 應用程式集區。
此值必須為 SPServiceApplicationPool 物件的身分識別 GUID、現有應用程式集區名稱,或是 SPServiceApplicationPool 物件的執行個體。
Type: | SPIisWebServiceApplicationPoolPipeBind |
Position: | Named |
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 |
-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 |
-DeferUpgradeActions
指定是否要延後並以手動方式完成升級程序。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | 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 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 中繼資料服務字詞庫和內容類型庫的讀取/寫入權限。 帳戶必須已存在。
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 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 |
-LabelsPerPartition
設定每個資料分割的標籤數目上限。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | 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: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-PartitionMode
指定服務應用程式會依訂閱來限制資料。
Note 在建立服務應用程式之後,便無法變更此屬性。
此屬性對 SharePoint Server 2019 沒有影響。
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 |
-PropertiesPerPartition
設定每個資料分割的屬性數目上限。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2016, SharePoint Server 2019 |
-ReadAccessAccount
指定一組以逗號分隔的應用程式集區帳戶,其格式 < 為 domain > \ < account > ,將獲得 Managed 中繼資料服務字詞庫和內容類型庫的唯讀許可權。
帳戶必須已存在。
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 > ,將獲授與讀取受管理中繼資料服務字詞庫和內容類型庫的許可權;以及寫入開啟字片語和本機字片語以及建立新企業關鍵字的許可權。
帳戶必須已存在。
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 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 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 |