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

17 lines
453 B
PowerShell

<#
.SYNOPSIS
Disables the Windows optional features TelnetClient and LegacyComponents and removes all
files associated with these features.
#>
Configuration WindowsOptionalFeatureSet_Disable
{
Import-DscResource -ModuleName 'PSDscResources'
WindowsOptionalFeatureSet WindowsOptionalFeatureSet1
{
Name = @('TelnetClient', 'LegacyComponents')
Ensure = 'Absent'
RemoveFilesOnDisable = $true
}
}