New-SPMetadataServiceApplication
创建新的 Managed Metadata Service 应用程序。
语法
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>]
说明
使用 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
以逗号分隔的用户帐户或服务帐户列表,格式 <为 domain>\<account> ,可以创建和运行服务应用程序。 这些帐户必须已经存在。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
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 |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-AssignmentCollection
管理对象以便正确进行处理。 使用 SPWeb 或 SPSite 等对象可能会耗用大量内存,而且在 Windows PowerShell 脚本中使用这些对象需要正确管理内存。 通过使用 SPAssignment 对象,可以将对象分配给变量,然后在不需要这些对象时对它们进行处理,以释放内存。 在使用 SPWeb、SPSite 或 SPSiteAdministration 对象时,如果不使用分配集合或 Global 参数,则会自动处理这些对象。
使用全局参数时,所有对象均包含在全局存储中。
如果未立即使用对象,或未通过使用 Stop-SPAssignment
命令来处理对象,则可能会发生内存不足的情况。
Type: | SPAssignmentCollection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-CacheTimeCheckInterval
指定前端 Web 服务器在向应用程序服务器请求更改之前应等待的时间(以秒为单位)。 可针对每个计时器作业、客户端应用程序或 Web 应用程序设置该值。
最小值为 1,没有最大值。 默认值为 10。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
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 |
Required: | False |
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 |
Required: | False |
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 |
Required: | False |
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 |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-DeferUpgradeActions
指定是否要延迟并手动完成升级过程。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-DisablePartitionQuota
禁用分区配额。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
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 |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-FullAccessAccount
以 domain>\<account> 格式<指定一组逗号分隔的应用程序池帐户,这些帐户将被授予对托管元数据服务的术语存储和内容类型库的读/写权限。 这些帐户必须已经存在。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-GroupsPerPartition
设置每个分区的最大术语组数。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-HubUri
指定网站集的完全限定 URL,服务将提供该网站集中内容类型库的访问权限。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-LabelsPerPartition
设置每个分区的最大标签数。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-MaxChannelCache
指定前端 Web 服务器应为应用程序服务器打开的最大 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 Subscription Edition |
-Name
指定要创建的服务应用程序的名称。 该名称最多可包含 128 个字符。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-PartitionMode
指定服务应用程序按订阅限制数据。
注意在创建服务应用程序之后,无法更改此属性。
此属性对SharePoint Server 2019没有影响。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-PropertiesPerPartition
设置每个分区的最大属性数。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-ReadAccessAccount
以 domain>\<account> 格式<指定一组逗号分隔的应用程序池帐户,这些帐户将被授予对托管元数据服务的术语存储和内容类型库的只读权限。
这些帐户必须已经存在。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-RestrictedAccount
指定一组以逗号分隔的应用程序池帐户,格式 <为 domain>\<account> ,这些帐户将被授予读取托管元数据服务的术语存储和内容类型库的权限;以及写入打开术语集和本地术语集的权限,以及创建新的企业关键字的权限。
这些帐户必须已经存在。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-SyndicationErrorReportEnabled
在导入内容类型时启用错误报告功能。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-TermSetsPerPartition
设置每个分区的最大术语集数。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-TermsPerPartition
设置每个分区的最大条款数。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | True |
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 |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |