Set-SPInfoPathFormsService
设置 SharePoint Server 中InfoPath Forms Services的参数。
语法
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
指定窗体的会话状态可以保持活动的持续时间(以分钟为单位)。 默认值为 1440。
类型必须是介于 0 到 999,999 范围内的非负整数值。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-AllowEmbeddedSqlForDataConnections
指定一个值,该值指示启用浏览器的 InfoPath 表单模板是否可以使用嵌入式 SQL 身份验证。
类型必须为以下值之一:True、False (默认)
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-AllowUdcAuthenticationForDataConnections
指定可以使用通用数据连接 (.udcx 文件) 中的身份验证信息。
类型必须为以下值之一:True (默认) 、False
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-AllowUserFormBrowserEnabling
指定用户可以在浏览器上启用不包含表单代码、需要完全信任、在移动设备上启用呈现或使用由服务器管理员管理的数据连接的表单模板。
类型必须为以下值之一:True (默认) 、False
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-AllowUserFormBrowserRendering
指定启用浏览器的表单模板将由InfoPath Forms Services呈现。
类型必须为以下值之一:True (默认) 、False
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-AllowUserFormCrossDomainDataConnections
指定可以查询与位于不同域中的数据源的数据连接。
类型必须为以下值之一:True、False (默认)
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-AllowViewState
定义存储会话状态的位置:如果为 True,则为“查看状态”,如果为 False,则为“会话状态服务”。
类型必须为以下值之一:True、False (默认)
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-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 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-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 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-DefaultDataConnectionTimeout
指定默认数据连接超时(以毫秒为单位)。 默认值为 10000(10 秒)。
类型必须是非负整数,并且小于或等于为 MaxDataConnectionTimeout 设置的值。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-Identity
指定要更新InfoPath Forms Services服务。
类型必须是有效的 GUID,格式为 12345678-90ab-cdef-1234-567890bcdefgh;InfoPath Forms Services服务的有效名称 (例如 FormsService1) ;或有效的 SPFormsService 对象的实例。
Type: | SPFormsServicePipeBind |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-MaxDataConnectionResponseSize
指定数据连接响应允许的最大大小。 默认值为 15000 kb (KB) 。
类型必须是非负整数。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-MaxDataConnectionRoundTrip
设置一个阈值(以毫秒为单位),用于从数据请求开始到在服务器上返回数据请求的最长时间, (数据连接往返) 。 如果数据连接往返时间超过此阈值,则会在操作日志中记录事件。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-MaxDataConnectionTimeout
指定最大数据连接超时(以毫秒为单位)。 默认值为 20000 (20 秒) 。
类型必须是非负整数,小于或等于 999999。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-MaxFormLoadTime
设置最大窗体加载时间的阈值(以毫秒为单位)。 如果表单加载时间超过此阈值,则会在操作日志中记录事件。
MaxFormLoadTime 参数测量打开窗体所需的时间,从服务器接受请求到离开服务器为止。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-MaxPostbacksPerSession
指定启用浏览器的 InfoPath 表单模板的实例可以对InfoPath Forms Services服务进行的最大回发值。 默认值为 20。
类型必须是非负整数,小于或等于 999999。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-MaxSizeOfUserFormState
指定启用浏览器的 InfoPath 表单模板的实例可以使用的会话状态的最大大小值(以 KB 为单位)。 默认值为 4096。
类型必须是非负整数,小于或等于 999999。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-MaxUserActionsPerPostback
指定每次回发的最大用户操作数。 默认值为 200。
类型必须是非负整数,小于或等于 999999。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-MemoryCacheSize
设置内存中解决方案的缓存大小(以 MB (MB) 为单位)。
默认值为 250 MB。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-RequireSslForDataConnections
指定安全套接字层 (SSL) 要求值。 如果已启用浏览器的表单模板中的数据连接需要基本身份验证或摘要式身份验证,则通过网络发送密码。 将此值设置为 True 以要求对这些身份验证类型使用 SSL 加密连接。
类型必须为以下值之一:True (默认) 、False。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-ViewStateThreshold
指定存储在窗体视图中时会话状态的最大大小(以 KB 为单位)。 默认值为 40。
类型必须是非负整数,小于或等于 99,999,999。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-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 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |