dsc/ext/PsGallery/xPSDesiredStateConfiguration.6.4.0.0/Examples/Sample_xWindowsFeatureSet_Install.ps1
<#
.SYNOPSIS Installs the TelnetClient and RSAT-File-Services Windows features, including all their subfeatures. Logs the operation to the file at 'C:\LogPath\Log.log'. #> Configuration xWindowsFeatureSetExample_Install { [CmdletBinding()] param () Import-DscResource -ModuleName 'xPSDesiredStateConfiguration' xWindowsFeatureSet WindowsFeatureSet1 { Name = @( 'Telnet-Client', 'RSAT-File-Services' ) Ensure = 'Present' IncludeAllSubFeature = $true LogPath = 'C:\LogPath\Log.log' } } |