Examples/Sample_ProcessSet_Start.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<#
    .SYNOPSIS
        Starts the processes with the executables at the file paths C:\Windows\cmd.exe and
        C:\TestPath\TestProcess.exe with no arguments.
#>

Configuration Sample_ProcessSet_Start
{
    [CmdletBinding()]
    param ()

    Import-DscResource -ModuleName 'PSDscResources'

    ProcessSet ProcessSet1
    {
        Path = @( 'C:\Windows\System32\cmd.exe', 'C:\TestPath\TestProcess.exe' )
        Ensure = 'Present'
    }
}