New-SPMetadataServiceApplication

创建新的 Managed Metadata Service 应用程序。

语法

NoQuota

New-SPMetadataServiceApplication
    -Name <String>
    -ApplicationPool <SPIisWebServiceApplicationPoolPipeBind>
    [-AdministratorAccount <String>]
    [-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>]

Quota

New-SPMetadataServiceApplication
    -Name <String>
    -ApplicationPool <SPIisWebServiceApplicationPoolPipeBind>
    -GroupsPerPartition <Int32>
    -LabelsPerPartition <Int32>
    -PropertiesPerPartition <Int32>
    -TermSetsPerPartition <Int32>
    -TermsPerPartition <Int32>
    [-AdministratorAccount <String>]
    [-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]
    [-DeferUpgradeActions]
    [<CommonParameters>]

说明

使用 New-SPMetadataServiceApplication cmdlet 创建新的托管元数据服务应用程序。

有关适用于 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

适用:SharePoint Server 2010、SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019

以逗号分隔的用户帐户或服务帐户列表,格式 <为 domain>\<account> ,可以创建和运行服务应用程序。 这些帐户必须已经存在。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-ApplicationPool

适用:SharePoint Server 2010、SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019

指定要在其中运行新的 Managed Metadata Service 应用程序的现有 IIS 应用程序池。

其值必须为代表 SPServiceApplicationPool 对象标识的 GUID;现有应用程序池的名称;或 SPServiceApplicationPool 对象的实例。

参数属性

类型:SPIisWebServiceApplicationPoolPipeBind
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:True
来自管道的值:True
来自管道的值(按属性名称):False
来自剩余参数的值:False

-AssignmentCollection

适用:SharePoint Server 2010、SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019

管理对象以便正确进行处理。 使用 SPWeb 或 SPSite 等对象可能会耗用大量内存,而且在 Windows PowerShell 脚本中使用这些对象需要正确管理内存。 通过使用 SPAssignment 对象,可以将对象分配给变量,然后在不需要这些对象时对它们进行处理,以释放内存。 在使用 SPWeb、SPSite 或 SPSiteAdministration 对象时,如果不使用分配集合或 Global 参数,则会自动处理这些对象。

使用全局参数时,所有对象均包含在全局存储中。 如果未立即使用对象,或未通过使用 Stop-SPAssignment 命令来处理对象,则可能会发生内存不足的情况。

参数属性

类型:SPAssignmentCollection
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:True
来自管道的值(按属性名称):False
来自剩余参数的值:False

-CacheTimeCheckInterval

适用:SharePoint Server 2010、SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019

指定前端 Web 服务器在向应用程序服务器请求更改之前应等待的时间(以秒为单位)。 可针对每个计时器作业、客户端应用程序或 Web 应用程序设置该值。

最小值为 1,没有最大值。 默认值为 10。

参数属性

类型:Int32
默认值: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

-DatabaseCredentials

适用:SharePoint Server 2010、SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019

指定包含用于数据库 SQL 身份验证的用户名和密码的 PSCredential 对象。

如果将使用 SQL 身份验证,必须指定 DatabaseCredentials,或者必须设置 DatabaseUserName 和 DatabasePassword 参数。

键入的值必须是有效的 PSCredential 对象。

参数属性

类型:PSCredential
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-DatabaseName

适用:SharePoint Server 2010、SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019

指定要为新 Managed Metadata Service 应用程序创建的数据库的名称。

键入的值必须是有效的 SQL Server 数据库名称;例如,MeatadataDB1。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-DatabaseServer

适用:SharePoint Server 2010、SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019

指定在 DatabaseName 中指定的数据库的主机服务器名称。

键入的值必须是有效的 SQL Server 数据库名称;例如,SqlServerHost1。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-DeferUpgradeActions

适用:SharePoint Server 2016,SharePoint Server 2019

指定是否要延迟并手动完成升级过程。

参数属性

类型:SwitchParameter
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-DisablePartitionQuota

适用:SharePoint Server 2016,SharePoint Server 2019

禁用分区配额。

参数属性

类型:SwitchParameter
默认值:None
支持通配符:False
不显示:False

参数集

NoQuota
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-FailoverDatabaseServer

适用:SharePoint Server 2010、SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019

指定故障转移数据库服务器的主机服务器的名称。

键入的值必须是有效的 SQL Server 主机名;例如,SQLServerHost1。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-FullAccessAccount

适用:SharePoint Server 2010、SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019

以 domain>\<account> 格式<指定一组逗号分隔的应用程序池帐户,这些帐户将被授予对托管元数据服务的术语存储和内容类型库的读/写权限。 这些帐户必须已经存在。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-GroupsPerPartition

适用:SharePoint Server 2016,SharePoint Server 2019

设置每个分区的最大术语组数。

参数属性

类型:Int32
默认值:None
支持通配符:False
不显示:False

参数集

Quota
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-HubUri

适用:SharePoint Server 2010、SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019

指定网站集的完全限定 URL,服务将提供该网站集中内容类型库的访问权限。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-LabelsPerPartition

适用:SharePoint Server 2016,SharePoint Server 2019

设置每个分区的最大标签数。

参数属性

类型:Int32
默认值:None
支持通配符:False
不显示:False

参数集

Quota
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-MaxChannelCache

适用:SharePoint Server 2010、SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019

指定前端 Web 服务器应为应用程序服务器打开的最大 Windows Communication Foundation (WCF) 通道数。

可针对每个计时器作业、客户端应用程序或 Web 应用程序设置该值。

最小值为 0,没有最大值。 默认值为 4。

参数属性

类型:Int32
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Name

适用:SharePoint Server 2010、SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019

指定要创建的服务应用程序的名称。 该名称最多可包含 128 个字符。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:True
来自管道的值:True
来自管道的值(按属性名称):True
来自剩余参数的值:False

-PartitionMode

适用:SharePoint Server 2010、SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019

指定服务应用程序按订阅限制数据。

注意在创建服务应用程序之后,无法更改此属性。

此属性对SharePoint Server 2019没有影响。

参数属性

类型:SwitchParameter
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-PropertiesPerPartition

适用:SharePoint Server 2016,SharePoint Server 2019

设置每个分区的最大属性数。

参数属性

类型:Int32
默认值:None
支持通配符:False
不显示:False

参数集

Quota
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-ReadAccessAccount

适用:SharePoint Server 2010、SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019

以 domain>\<account> 格式<指定一组逗号分隔的应用程序池帐户,这些帐户将被授予对托管元数据服务的术语存储和内容类型库的只读权限。

这些帐户必须已经存在。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-RestrictedAccount

适用:SharePoint Server 2010、SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019

指定一组以逗号分隔的应用程序池帐户,格式 <为 domain>\<account> ,这些帐户将被授予读取托管元数据服务的术语存储和内容类型库的权限;以及写入打开术语集和本地术语集的权限,以及创建新的企业关键字的权限。

这些帐户必须已经存在。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-SyndicationErrorReportEnabled

适用:SharePoint Server 2010、SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019

在导入内容类型时启用错误报告功能。

参数属性

类型:SwitchParameter
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-TermSetsPerPartition

适用:SharePoint Server 2016,SharePoint Server 2019

设置每个分区的最大术语集数。

参数属性

类型:Int32
默认值:None
支持通配符:False
不显示:False

参数集

Quota
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-TermsPerPartition

适用:SharePoint Server 2016,SharePoint Server 2019

参数属性

类型:Int32
默认值:None
支持通配符:False
不显示:False

参数集

Quota
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-WhatIf

适用:SharePoint Server 2010、SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019

显示一条描述命令作用的消息,而不执行命令。 有关详细信息,请键入以下命令:get-help about_commonparameters

参数属性

类型:SwitchParameter
默认值:None
支持通配符:False
不显示:False
别名:无线

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

CommonParameters

此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters