Examples/Sample_xServiceSet_BuiltInAccount.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<#
    .SYNOPSIS
        Sets the Secure Socket Tunneling Protocol and DHCP Client services to run under the
        built-in account LocalService.
#>

Configuration xServiceSetBuiltInAccountExample
{
    Import-DscResource -ModuleName 'xPSDesiredStateConfiguration'

    xServiceSet ServiceSet1
    {
        Name           = @( 'SstpSvc', 'Dhcp'  )
        Ensure         = 'Present'
        BuiltInAccount = 'LocalService'
        State          = 'Ignore'
    }
}