Examples/Resources/SPPowerPointAutomationServiceApp/1-NewServiceApp.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<#
.EXAMPLE
    This example makes sure the service application exists and has a specific configuration
#>


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

        node localhost {
            SPPowerPointAutomationServiceApp PowerPointAutomation 
            { 
                Name = "PowerPoint Automation Service Application" 
                ProxyName = "PowerPoint Automation Service Application Proxy"
                CacheExpirationPeriodInSeconds = 600
                MaximumConversionsPerWorker = 5
                WorkerKeepAliveTimeoutInSeconds = 120
                WorkerProcessCount = 3
                WorkerTimeoutInSeconds = 300
                ApplicationPool = "SharePoint Web Services"
                Ensure = "Present"
                PsDscRunAsCredential = $SetupAccount 
            } 
        }
    }