Set-SPInfoPathFormsService

为 SharePoint Server 中的 InfoPath Forms Services 设置参数。

语法

Default (默认值)

Set-SPInfoPathFormsService
    [-ActiveSessionTimeout <Int32>]
    [-AllowEmbeddedSqlForDataConnections <String>]
    [-AllowUdcAuthenticationForDataConnections <String>]
    [-AllowUserFormBrowserEnabling <String>]
    [-AllowUserFormBrowserRendering <String>]
    [-AllowUserFormCrossDomainDataConnections <String>]
    [-AllowViewState <String>]
    [-AssignmentCollection <SPAssignmentCollection>]
    [-Confirm]
    [-DefaultDataConnectionTimeout <Int32>]
    [-Identity <SPFormsServicePipeBind>]
    [-MaxDataConnectionResponseSize <Int32>]
    [-MaxDataConnectionRoundTrip <Int32>]
    [-MaxDataConnectionTimeout <Int32>]
    [-MaxFormLoadTime <Int32>]
    [-MaxPostbacksPerSession <Int32>]
    [-MaxUserActionsPerPostback <Int32>]
    [-MemoryCacheSize <Int32>]
    [-RequireSslForDataConnections <String>]
    [-ViewStateThreshold <Int32>]
    [-WhatIf]
    [-MaxSizeOfUserFormState <Int32>]
    [<CommonParameters>]

说明

Set-SPInfoPathFormsService cmdlet 修改 SharePoint Server 中 InfoPath Forms Services 的设置。

有关适用于 SharePoint 产品的 Windows PowerShell 的权限和最新信息,请参阅 SharePoint Server cmdlet。

示例

示例 1

Set-SPInfoPathFormsService -AllowUserFormBrowserEnabling $true -AllowUserFormBrowserRendering $false

此示例修改 AllowUserFormBrowserEnabling 和 AllowUserFormBrowserRendering 参数值。

示例 2

Set-SPInfoPathFormsService -AllowViewState $true -ViewStateThreshold 40961

此示例修改 AllowViewState 和 ViewStateThreshold 参数值。

参数

-ActiveSessionTimeout

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

指定窗体的会话状态可以保持活动状态的持续时间(以分钟为单位)。 默认值为 1440。

类型必须是介于 0 到 999,999 范围内的非负整数值。

参数属性

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

参数集

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

-AllowEmbeddedSqlForDataConnections

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

指定一个值,该值指示启用浏览器的 InfoPath 表单模板是否可以使用嵌入式 SQL 身份验证。

类型必须是下列值之一:True、False (默认)

参数属性

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

参数集

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

-AllowUdcAuthenticationForDataConnections

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

指定可以使用通用数据连接 (.udcx 文件) 中的身份验证信息。

类型必须是下列值之一:True (默认) ,False

参数属性

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

参数集

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

-AllowUserFormBrowserEnabling

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

指定用户可以在浏览器中启用不包含表单代码、要求完全信任、在移动设备上启用渲染或使用由服务器管理员管理的数据连接的表单模板。

类型必须是下列值之一:True (默认) ,False

参数属性

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

参数集

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

-AllowUserFormBrowserRendering

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

指定启用浏览器的表单模板将由 InfoPath Forms Services 呈现。

类型必须是下列值之一:True (默认) ,False

参数属性

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

参数集

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

-AllowUserFormCrossDomainDataConnections

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

指定可以查询与位于不同域中的数据源的数据连接。

类型必须是下列值之一:True、False (默认)

参数属性

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

参数集

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

-AllowViewState

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

定义要存储窗体会话状态的位置:当为 True 时为视图状态,当为 False 时,会话状态服务。

类型必须是下列值之一:True、False (默认)

参数属性

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

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):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

-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

-DefaultDataConnectionTimeout

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

指定默认的数据连接超时(以毫秒为单位)。 默认值为 10000(10 秒)。

类型必须为非负整数,且小于或等于 MaxDataConnectionTimeout 设置的值。

参数属性

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

参数集

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

-Identity

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

指定要更新的 InfoPath Forms Services 服务。

类型必须是有效的 GUID,格式为 12345678-90ab-cdef-1234-567890bcdefgh;InfoPath Forms Services服务 (的有效名称,例如 FormsService1) ;或有效 SPFormsService 对象的实例。

参数属性

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

参数集

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

-MaxDataConnectionResponseSize

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

指定数据连接响应允许的最大大小。 默认值为 15000 KB (KB) 。

类型必须为非负整数。

参数属性

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

参数集

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

-MaxDataConnectionRoundTrip

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

设置从数据请求开始到在服务器上返回数据请求 (数据连接往返) 所需的最长时间的阈值(以毫秒为单位)。 如果数据连接往返时间超过此阈值,则会在操作日志中记录事件。

参数属性

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

参数集

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

-MaxDataConnectionTimeout

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

指定最大数据连接超时(以毫秒为单位)。 默认值为 20000 (20 秒) 。

类型必须为非负整数且小于或等于 999999。

参数属性

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

参数集

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

-MaxFormLoadTime

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

设置最大窗体加载时间的阈值(以毫秒为单位)。 如果窗体加载时间超过此阈值,则会在操作日志中记录事件。

MaxFormLoadTime 参数测量窗体打开所需的时间,从服务器接受请求开始到它离开服务器。

参数属性

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

参数集

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

-MaxPostbacksPerSession

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

指定启用浏览器的 InfoPath 表单模板的实例可以对 InfoPath Forms Services 服务进行的最大回调值。 默认值为 20。

类型必须为非负整数且小于或等于 999999。

参数属性

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

参数集

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

-MaxSizeOfUserFormState

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

指定启用浏览器的 InfoPath 表单模板的实例可以使用的最大会话状态大小的值(以千字节为单位)。 默认值为 4096。

类型必须为非负整数且小于或等于 999999。

参数属性

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

参数集

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

-MaxUserActionsPerPostback

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

指定每个回发的最大用户操作。 默认值为 200。

类型必须为非负整数且小于或等于 999999。

参数属性

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

参数集

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

-MemoryCacheSize

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

设置内存中解决方案的缓存大小(以 MB (MB) 为单位)。

默认值为 250 MB。

参数属性

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

参数集

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

-RequireSslForDataConnections

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

指定安全套接字层 (SSL) 要求值。 如果启用浏览器的表单模板中的数据连接需要基本身份验证或摘要式身份验证,则会通过网络发送密码。 将此值设置为 True 时,要求这些身份验证类型具有 SSL 加密连接。

类型必须是下列值之一:True (默认) False。

参数属性

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

参数集

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

-ViewStateThreshold

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

指定存储在窗体视图中的会话状态的最大大小(以千字节为单位)。 默认值为 40。

类型必须为非负整数且小于或等于 99,999,999。

参数属性

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

参数集

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

-WhatIf

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

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

参数属性

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

参数集

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

CommonParameters

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