Files
PowerShell-PSDscResources/Tests/Integration/WindowsOptionalFeatureSet.config.ps1
T

37 lines
730 B
PowerShell

param
(
[Parameter(Mandatory = $true)]
[String]
$ConfigurationName
)
Configuration $ConfigurationName
{
param
(
[Parameter(Mandatory = $true)]
[ValidateNotNullOrEmpty()]
[String[]]
$WindowsOptionalFeatureNames,
[ValidateSet('Present', 'Absent')]
[String]
$Ensure = 'Present',
[ValidateNotNullOrEmpty()]
[String]
$LogPath
)
Import-DscResource -ModuleName 'PSDscResources'
WindowsOptionalFeatureSet WindowsOptionalFeatureSet1
{
Name = $WindowsOptionalFeatureNames
Ensure = $Ensure
LogPath = $LogPath
NoWindowsUpdateCheck = $false
RemoveFilesOnDisable = $false
}
}