New-SPAccessServicesApplication

创建 Access Services 服务应用程序。

语法

DefaultParameterSet

New-SPAccessServicesApplication
    -ApplicationPool <SPIisWebServiceApplicationPoolPipeBind>
    -DatabaseServer <String>
    [-AssignmentCollection <SPAssignmentCollection>]
    [-CacheTimeout <Int32>]
    [-Confirm]
    [-DatabaseServerCredentials <PSCredential>]
    [-Default]
    [-Encrypt <Boolean>]
    [-Hosted <Boolean>]
    [-Name <String>]
    [-PrivateBytesMax <Int32>]
    [-QueryTimeout <Int32>]
    [-RecoveryPointObjective <Int32>]
    [-RequestDurationMax <Int32>]
    [-SessionsPerAnonymousUserMax <Int32>]
    [-SessionsPerUserMax <Int32>]
    [-TrustServerCertificate <Boolean>]
    [-WhatIf]
    [<CommonParameters>]

NoApplicationServerParameterSet

New-SPAccessServicesApplication
    -ApplicationPool <SPIisWebServiceApplicationPoolPipeBind>
    [-AssignmentCollection <SPAssignmentCollection>]
    [-CacheTimeout <Int32>]
    [-Confirm]
    [-Default]
    [-Hosted <Boolean>]
    [-Name <String>]
    [-PrivateBytesMax <Int32>]
    [-QueryTimeout <Int32>]
    [-RecoveryPointObjective <Int32>]
    [-RequestDurationMax <Int32>]
    [-SessionsPerAnonymousUserMax <Int32>]
    [-SessionsPerUserMax <Int32>]
    [-WhatIf]
    [<CommonParameters>]

说明

创建 Access Services 服务应用程序。

示例

示例 1

New-SPAccessServicesApplication -DatabaseServer SQLServerName -ApplicationPool 'SharePoint Web Services Default' -Name 'Access Services Service Application' -Default

创建 Access Services 服务应用程序。

参数

-ApplicationPool

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

指定要在其中运行服务应用程序的 Web 服务的现有 IIS 应用程序池。

键入的值必须为 12345678-90ab-cdef-1234-567890bcdefgh 形式的有效 GUID;应用程序池的有效名称(如 AppPoolName1);或有效 IISWebServiceApplicationPool 对象的实例。

参数属性

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

参数集

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

-AssignmentCollection

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

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

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

参数属性

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

参数集

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

-CacheTimeout

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

数据缓存可保持可用的最大时间(以秒为单位),此最大时间从每个针对该缓存中的数据的请求结束时算起。

有效值:-1 (表示) 没有限制;1 到 2073600 (24 天) 。

参数属性

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

参数集

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

-Confirm

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

提示你在运行 cmdlet 之前进行确认。

参数属性

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

参数集

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

-DatabaseServer

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

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

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

参数属性

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

参数集

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

-DatabaseServerCredentials

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

指定用于登录到数据库服务器的凭据。

参数属性

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

参数集

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

-Default

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

添加到默认服务应用程序代理组。

参数属性

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

参数集

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

-Encrypt

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

指定在 Access Services 与托管 Access Services 数据库的SQL Server之间使用 SSL 加密。

参数属性

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

参数集

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

-Hosted

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

未使用。

参数属性

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

参数集

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

-Name

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

指定要创建的 Access Services 服务应用程序的名称。

参数属性

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

参数集

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

-PrivateBytesMax

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

访问服务进程分配的) (的最大专用字节数(以 MB 为单位)。

有效值:-1 (限制设置为计算机物理内存的 50%,) 任意正整数。

参数属性

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

参数集

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

-QueryTimeout

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

数据库命令或查询在取消之前执行的最大时间(秒)。

有效值:0 (表示) 没有限制;1 到 2073600 (24 天) 。 建议值为 60。

参数属性

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

参数集

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

-RecoveryPointObjective

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

未使用。

参数属性

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

参数集

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

-RequestDurationMax

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

允许来自应用程序的请求具有的最大持续时间(以秒为单位)。

有效值:-1 (表示) 没有限制;1 到 2073600 (24 天) 。

参数属性

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

参数集

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

-SessionsPerAnonymousUserMax

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

允许每个用户具有的最大会话数。 如果达到此最大值,则会在启动新会话时删除最早的会话。

有效值:-1 (没有限制) ,1 到任何正整数。

参数属性

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

参数集

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

-SessionsPerUserMax

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

允许每个匿名用户具有的最大会话数。 如果一个用户具有多个会话并开始一个新会话,则将删除此用户最早的会话。

有效值:-1 () 没有限制,从 1 到任何正整数。

参数属性

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

参数集

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

-TrustServerCertificate

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

设置一个值,该值指示是否在绕过证书链以验证信任时加密通道。

参数属性

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

参数集

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

-WhatIf

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

显示在 cmdlet 运行时发生的情况。 此 cmdlet 未运行。

参数属性

类型: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

输入

Microsoft.SharePoint.PowerShell.SPIisWebServiceApplicationPoolPipeBind

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

输出

System.Object