Export (0) Print
Expand All

Set-SPInfoPathFormsService

 

Applies to: SharePoint Server 2010

Topic Last Modified: 2010-02-22

Sets parameters for InfoPath Forms Services in Microsoft SharePoint Server 2010.

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

The Set-SPInfoPathFormsService cmdlet modifies the settings for InfoPath Forms Services in SharePoint Server 2010.

 

Parameter Required Type Description

ActiveSessionTimeout

Optional

System.Nullable

Specifies the duration, in minutes, that a form's session state can remain active. The default value is 1440.

The type must be a non-negative integer value in the range from 0 through 999,999.

AllowEmbeddedSqlForDataConnections

Optional

System.String

Specifies a value that indicates whether embedded SQL authentication can be used by browser-enabled Microsoft InfoPath 2010 form templates.

The type must be one of the following values: True, False (default)

AllowUdcAuthenticationForDataConnections

Optional

System.String

Specifies that authentication information in a universal data connection (.udcx file) can be used.

The type must be one of the following values: True (default), False

AllowUserFormBrowserEnabling

Optional

System.String

Specifies that users can browser enable form templates that do not contain form code, require full trust, enable rendering on a mobile device, or use a data connection managed by a server administrator.

The type must be one of the following values: True (default), False

AllowUserFormBrowserRendering

Optional

System.String

Specifies that browser-enabled form templates will be rendered by InfoPath Forms Services.

The type must be one of the following values: True (default), False

AllowUserFormCrossDomainDataConnections

Optional

System.String

Specifies that data connections to data sources located in a different domain can be queried.

The type must be one of the following values: True, False (default)

AllowViewState

Optional

System.String

Defines the location to store form session state: View state when True, or Session State Service when False.

The type must be one of the following values: True, False (default)

AssignmentCollection

Optional

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.

noteNote
When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.

Confirm

Optional

System.Management.Automation.SwitchParameter

Prompts you for confirmation before executing the command. For more information, type the following command: get-help about_commonparameters

DefaultDataConnectionTimeout

Optional

System.Nullable

Specifies the default data connection timeout in milliseconds. The default value is 10000 (10 seconds).

The type must be a non-negative integer and less than or equal to the value set for MaxDataConnectionTimeout.

Identity

Optional

Microsoft.Office.InfoPath.Server.Cmdlet.SPFormsServicePipeBind

Specifies the InfoPath Forms Services service to update.

The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of an InfoPath Forms Services service (for example, FormsService1); or an instance of a valid SPFormsService object.

MaxDataConnectionResponseSize

Optional

System.Nullable

Specifies the maximum size allowed for a data connection response. The default value is 15000 kilobytes (KB).

The type must be a non-negative integer.

MaxDataConnectionRoundTrip

Optional

System.Nullable

Sets a threshold, in milliseconds, for the maximum time it takes from the start of a data request to the return of the data request on the server (the data connection round trip). If the data connection round trip time exceeds this threshold, an event is logged in the Operational log.

MaxDataConnectionTimeout

Optional

System.Nullable

Specifies the maximum data connection timeout in milliseconds. The default value is 20000 (20 seconds).

The type must be a non-negative integer and less than or equal to 999999.

MaxFormLoadTime

Optional

System.Nullable

Sets a threshold, in milliseconds, for maximum form load time. If form load time exceeds this threshold, an event is logged in the Operational log.

The MaxFormLoadTime parameter measures the time it takes for a form to open, starting from when the request is accepted by the server until it leaves the server.

MaxPostbacksPerSession

Optional

System.Nullable

Specifies the value of the maximum postbacks that an instance of a browser-enabled Microsoft InfoPath 2010 form template can make to the InfoPath Forms Services service. The default value is 20.

The type must be a non-negative integer and less than or equal to 999999.

MaxSizeOfFormSessionState

Optional

System.Nullable

Specifies the value of the maximum size in kilobytes of session state an instance of a browser-enabled InfoPath form template can use. The default value is 4096.

The type must be a non-negative integer and less than or equal to 999999.

MaxUserActionsPerPostback

Optional

System.Nullable

Specifies the maximum user actions per postback. The default value is 200.

The type must be a non-negative integer and less than or equal to 999999.

MemoryCacheSize

Optional

System.Nullable

Sets the size, in megabytes (MB), of the cache for solutions in memory.

The default value is 250 MB.

RequireSslForDataConnections

Optional

System.String

Specifies the Secure Sockets Layer (SSL) requirement value. If data connections in browser-enabled form templates require basic authentication or digest authentication, a password is sent over the network. Set this value to True to require an SSL-encrypted connection for these authentication types.

The type must be one of the following values: True (default), False.

ViewStateThreshold

Optional

System.Nullable

Specifies the maximum size in kilobytes of the session state when stored in the form view. The default value is 40.

The type must be a non-negative integer and less than or equal to 99,999,999.

WhatIf

Optional

System.Management.Automation.SwitchParameter

Displays a message that describes the effect of the command instead of executing the command. For more information, type the following command: get-help about_commonparameters

--------------EXAMPLE 1-----------------

Set-SPInfoPathFormsService -AllowUserFormBrowserEnabling $true -AllowUserFormBrowserRendering $false

This example modifies the AllowUserFormBrowserEnabling and AllowUserFormBrowserRendering parameter values.

--------------EXAMPLE 2-----------------

Set-SPInfoPathFormsService -AllowViewState $true -ViewStateThreshold 40961

This example modifies the AllowViewState and ViewStateThreshold parameter values.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft