Skip to content

SPInfoPathFormsServiceConfig

Yorick Kuijs edited this page Feb 19, 2019 · 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
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
InstallAccount Write PSCredential POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsCredential if using PowerShell 5

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