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>]
说明
cmdlet Set-SPInfoPathFormsService 修改 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 表单模板的实例可以使用的会话状态的最大大小值(以 KB 为单位)。 默认值为 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
指定存储在窗体视图中时会话状态的最大大小(以 KB 为单位)。 默认值为 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 | 
| 别名: | 无线 | 
参数集
(All)
| Position: | Named | 
| 必需: | False | 
| 来自管道的值: | False | 
| 来自管道的值(按属性名称): | False | 
| 来自剩余参数的值: | False | 
CommonParameters
此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。