dsc/ext/PsGallery/xPSDesiredStateConfiguration.6.4.0.0/Examples/Sample_xServiceSet_StartServices.ps1

<#
    .SYNOPSIS
        Ensures that the DHCP Client and Windows Firewall services are running.
#>

Configuration xServiceSetStartExample
{
    Import-DscResource -ModuleName 'xPSDesiredStateConfiguration'

    xServiceSet ServiceSet1
    {
        Name   = @( 'Dhcp', 'MpsSvc' )
        Ensure = 'Present'
        State  = 'Running'
    }
}