Files
PowerShell-PSDscResources/tests/Integration/MSFT_WindowsProcess.config.ps1
T
2016-12-14 20:22:16 -08:00

36 lines
616 B
PowerShell

param
(
[Parameter(Mandatory = $true)]
[String]
$ConfigurationName
)
Configuration $ConfigurationName
{
param
(
[Parameter(Mandatory = $true)]
[ValidateNotNullOrEmpty()]
[String]
$Path,
[Parameter(Mandatory = $true)]
[AllowEmptyString()]
[String]
$Arguments,
[ValidateSet('Present', 'Absent')]
[String]
$Ensure = 'Present'
)
Import-DscResource -ModuleName 'PSDscResources'
WindowsProcess Process1
{
Path = $Path
Arguments = $Arguments
Ensure = $Ensure
}
}