Tests/Integration/MSFT_WindowsFeature.config.ps1
param ( [Parameter(Mandatory)] [System.String] $ConfigurationName ) Configuration $ConfigurationName { param ( [Parameter(Mandatory = $true)] [System.String] $Name, [ValidateSet('Present', 'Absent')] [System.String] $Ensure = 'Present', [System.Boolean] $IncludeAllSubFeature = $false ) Import-DscResource -ModuleName 'PSDscResources' Node Localhost { WindowsFeature WindowsFeatureTest { Name = $Name Ensure = $Ensure IncludeAllSubFeature = $IncludeAllSubFeature } } } |