WindowsOptionalFeatures enables or disables Windows optional features on a Windows client OS.
Use this resource when you need to enable or disable optional features on Windows client operating systems (e.g., Hyper-V, Windows Subsystem for Linux, .NET Framework 3.5). For Windows Server roles and features, use WindowsFeatures instead.
Source |
|
DSC Resource |
|
Documentation |
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
Names |
Mandatory |
String[] |
Indicates the name of the feature that you want to ensure is added or removed.
This is the same as the Name property from the |
[+ | -]<name> |
RemoveFilesOnDisable |
Boolean |
Set to |
|
|
NoWindowsUpdateCheck |
Boolean |
Specifies whether DISM contacts Windows Update (WU) when searching for the source files to enable a feature.
If |
|
WindowsOptionalFeatures:
RemoveFilesOnDisable: false
NoWindowsUpdateCheck: false
Names:
- +TFTP
- -TelnetClient
- Hyper-VDatum.yml (Excerpt)default_lookup_options: MostSpecific
lookup_options:
WindowsOptionalFeatures:
merge_hash: deep
WindowsOptionalFeatures\Names:
merge_basetype_array: Unique