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

This example creates a new managed metadata service application and specifies a content type hub to be used for syndication. It also enables error reporting during syndication.

-----------------範例 3---------------

New-SPMetadataServiceApplication -Name "MetadataServiceApp3" -ApplicationPool "AppPool1" -DatabaseName "MetadataDB3" -PartitionMode

此範例會建立已分割的新 Managed Metadata Service 應用程式,以供訂閱中的網站使用。

參數

-AdministratorAccount

以逗號分隔的使用者帳戶或服務帳戶清單,格式 <domain> \ <account> 可建立和執行服務應用程式。 帳戶必須已存在。

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-ApplicationPool

指定要執行新的 Managed Metadata Service 應用程式之現有 IIS 應用程式集區。

此值必須為 SPServiceApplicationPool 物件的身分識別 GUID、現有應用程式集區名稱,或是 SPServiceApplicationPool 物件的執行個體。

Type:SPIisWebServiceApplicationPoolPipeBind
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-AssignmentCollection

Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.

When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.

Type:SPAssignmentCollection
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-CacheTimeCheckInterval

Specifies an interval, in seconds, that a front-end Web Server should wait before asking the application server for changes. This value is set per timer job, client application, or Web application.

最小值是 1,無最大值。 預設值為 10。

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Confirm

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

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-DatabaseCredentials

指定包含要用於資料庫 SQL 驗證之使用者名稱及密碼的 PSCredential 物件。

若要使用 SQL 驗證,則必須指定 DatabaseCredentials,或者必須同時設定 DatabaseUserName 和 DatabasePassword 參數。

此類型必須為有效的 PSCredential 物件。

Type:PSCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-DatabaseName

指定要為新的 Managed Metadata Service 應用程式建立的資料庫名稱。

此類型必須是有效的 SQL Server 資料庫名稱,例如 MeatadataDB1。

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-DatabaseServer

指定 DatabaseName 中指定之資料庫的主機伺服器名稱。

此類型必須是有效的 SQL Server 資料庫名稱,例如 SqlServerHost1。

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-DeferUpgradeActions

指定是否要延後並以手動方式完成升級程序。

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-DisablePartitionQuota

停用分割區配額。

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-FailoverDatabaseServer

指定容錯移轉資料庫伺服器之主機伺服器的名稱。

此類型必須是有效的 SQL Server 主機名稱,例如 SQLServerHost1。

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-FullAccessAccount

指定一組以逗號分隔的應用程式集區帳戶,其格式 <domain> \ <account> 會被授與 Managed 中繼資料服務字詞庫和內容類型庫的讀取/寫入權限。 帳戶必須已存在。

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-GroupsPerPartition

設定每個資料分割的字詞群組數目上限。

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-HubUri

指定服務所提供存取權之內容類型庫所在的網站集合完整 URL。

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-LabelsPerPartition

設定每個資料分割的標籤數目上限。

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-MaxChannelCache

指定前端網頁伺服器應開放給應用程式伺服器使用的 Windows Communication Foundation (WCF) 頻道數目上限。

此值是按計時器工作、用戶端應用程式或 Web 應用程式個別設定。

最小值是 0,無最大值。 預設值為 4。

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-PartitionMode

指定服務應用程式會依訂閱來限制資料。

Note 在建立服務應用程式之後,便無法變更此屬性。

此屬性對 SharePoint Server 2019 沒有影響。

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-PropertiesPerPartition

設定每個資料分割的屬性數目上限。

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-ReadAccessAccount

指定一組以逗號分隔的應用程式集區帳戶,其格式 <domain> \ <account> 會被授與受控中繼資料服務字詞庫和內容類型庫的唯讀許可權。

帳戶必須已存在。

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-RestrictedAccount

指定以逗號分隔的應用程式集區帳戶集合,其格式 <domain> \ <account> 將具有讀取受管理中繼資料服務字詞庫和內容類型庫的許可權;以及寫入開啟字片語和本機字片語以及建立新企業關鍵字的許可權。

帳戶必須已存在。

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-SyndicationErrorReportEnabled

當匯入內容類型時,啟用錯誤報告。

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-TermSetsPerPartition

設定每個資料分割的字片語數目上限。

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-TermsPerPartition

設定每個資料分割的字詞數目上限。

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-WhatIf

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

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-名稱

指定要建立的服務應用程式名稱。 名稱最多可以包含 128 個字元。

Type:String
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition