Files
PowerShell-PSDscResources/Examples/Sample_WindowsFeatureSet_Install.ps1
T
2019-04-28 18:51:33 +01:00

21 lines
546 B
PowerShell

<#
.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 WindowsFeatureSetExample_Install
{
[CmdletBinding()]
param ()
Import-DscResource -ModuleName 'PSDscResources'
WindowsFeatureSet WindowsFeatureSet1
{
Name = @( 'Telnet-Client', 'RSAT-File-Services' )
Ensure = 'Present'
IncludeAllSubFeature = $true
LogPath = 'C:\LogPath\Log.log'
}
}