Tests/Integration/xWindowsFeatureSet.config.ps1
param ( [Parameter(Mandatory = $true)] [System.String] $ConfigurationName ) Configuration $ConfigurationName { param ( [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] [System.String[]] $WindowsFeatureNames, [ValidateSet('Present', 'Absent')] [System.String] $Ensure = 'Present', [ValidateNotNullOrEmpty()] [System.String] $LogPath ) Import-DscResource -ModuleName 'xPSDesiredStateConfiguration' xWindowsFeatureSet xWindowsFeatureSet1 { Name = $WindowsFeatureNames Ensure = $Ensure LogPath = $LogPath IncludeAllSubfeature = $false } } |