Skip to content

SPInfoPathFormsServiceConfig

dscbot edited this page Feb 11, 2022 · 12 revisions

SPInfoPathFormsServiceConfig

Parameters

Parameter Attribute DataType Description Allowed Values
IsSingleInstance Key String Specifies the resource is a single instance, the value must be 'Yes' Yes
Ensure Write String Present ensures the settings are applied Present, Absent
AllowUserFormBrowserEnabling Write Boolean True sets the InfoPath Forms Service to allow users to browse forms
AllowUserFormBrowserRendering Write Boolean True sets the InfoPath Forms Service to render forms in the browser
MaxDataConnectionTimeout Write UInt32 Sets the maximum connection timeout in milliseconds
DefaultDataConnectionTimeout Write UInt32 Sets the default connection timeout in milliseconds
MaxDataConnectionResponseSize Write UInt32 Sets the maximum response size in kb for the user response
RequireSslForDataConnections Write Boolean True sets the InfoPath Forms Service to require SSL for its connections
AllowEmbeddedSqlForDataConnections Write Boolean True sets the InfoPath Forms Service to allow embedded SQL sonnections in Forms
AllowUdcAuthenticationForDataConnections Write Boolean True sets the InfoPath Forms Service to allow User Defined connections
AllowUserFormCrossDomainDataConnections Write Boolean True sets the InfoPath Forms Service to allow Cross-Domain connections
AllowEventPropagation Write Boolean True enables the original performance optimization
MaxPostbacksPerSession Write UInt16 Maximum number of postback allowed per session
MaxUserActionsPerPostback Write UInt16 Maximum number of actions that can be triggered per postback
ActiveSessionsTimeout Write UInt16 Timeout in minutes for active sessions
MaxSizeOfUserFormState Write UInt16 Maximum size of user session data

Description

Type: Distributed Requires CredSSP: No

This resource is responsible for configuring the InfoPath Forms service within the local SharePoint farm. Using Ensure equals to Absent is not supported. This resource can only apply configuration, not ensure they don't exist.

Examples

Example 1

This example shows how to configure the InfoPath Forms Service in the local SharePoint farm.

Configuration Example
{
    param
    (
        [Parameter(Mandatory = $true)]
        [PSCredential]
        $SetupAccount
    )

    Import-DscResource -ModuleName SharePointDsc

    node localhost
    {
        SPInfoPathFormsServiceConfig InfoPathFormsServiceConfig
        {
            IsSingleInstance                         = "Yes"
            AllowUserFormBrowserEnabling             = $true
            AllowUserFormBrowserRendering            = $true
            MaxDataConnectionTimeout                 = 20000
            DefaultDataConnectionTimeout             = 10000
            MaxDataConnectionResponseSize            = 1500
            RequireSslForDataConnections             = $true
            AllowEmbeddedSqlForDataConnections       = $false
            AllowUdcAuthenticationForDataConnections = $false
            AllowUserFormCrossDomainDataConnections  = $false
            MaxPostbacksPerSession                   = 75
            MaxUserActionsPerPostback                = 200
            ActiveSessionsTimeout                    = 1440
            MaxSizeOfUserFormState                   = 4096
        }
    }
}
Clone this wiki locally