Skip to content

SPAccessServices2010

Yorick Kuijs edited this page Nov 13, 2020 · 7 revisions

SPAccessServices2010

Parameters

Parameter Attribute DataType Description Allowed Values
Name Key String The name of the service application
ApplicationPool Required String The name of the application pool to run the service app in
Ensure Write String Present ensures service app exists, absent ensures it is removed Present, Absent
InstallAccount Write PSCredential POWERSHELL 4 ONLY: The account to run thsi resource as, use PsDscRunAsCredential if using PowerShell 5

Description

Type: Distributed Requires CredSSP: No

This resource is responsible for creating Access Services 2010 Application instances within the local SharePoint farm. The resource will provision and configure the Access Services 2010 Service Application.

The default value for the Ensure parameter is Present. When not specifying this parameter, the service application is provisioned.

Examples

Example 1

This example shows how to deploy Access Services 2010 to the local SharePoint farm.

    Configuration Example
    {
        param(
            [Parameter(Mandatory = $true)]
            [PSCredential]
            $SetupAccount
        )
        Import-DscResource -ModuleName SharePointDsc

        node localhost {
            SPAccessServices2010 Access2010Services
            {
                Name                 = "Access 2010 Services Service Application"
                ApplicationPool      = "SharePoint Service Applications"
                PsDscRunAsCredential = $SetupAccount
            }
        }
    }

Example 2

This example shows how to remove a specific Access Services 2010 from the local SharePoint farm. Because Application pool is a required parameters, but is not actually needed to remove the app, any text value can be supplied for these as they will be ignored.

    Configuration Example
    {
        param(
            [Parameter(Mandatory = $true)]
            [PSCredential]
            $SetupAccount
        )
        Import-DscResource -ModuleName SharePointDsc

        node localhost {
            SPAccessServices2010 Access2010Services
            {
                Name                 = "Access 2010 Services Service Application"
                ApplicationPool      = "n/a"
                Ensure               = "Absent"
                PsDscRunAsCredential = $SetupAccount
            }
        }
    }
Clone this wiki locally