Files
PowerShell-PSDscResources/Tests/Integration/MSFT_WindowsProcess_NoCredential.config.ps1

36 lines
641 B
PowerShell

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