WindowsOptionalFeatures installs Windows Optional Features on a Windows Client OS.
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 |
|
Example
WindowsOptionalFeatures:
RemoveFilesOnDisable: false
NoWindowsUpdateCheck: false
Names:
- +TFTP
- -TelnetClient
- Hyper-V
Recommended Lookup Options in
Datum.yml
(Excerpt)default_lookup_options: MostSpecific
lookup_options:
WindowsOptionalFeatures:
merge_hash: deep
WindowsOptionalFeatures\Names:
merge_basetype_array: Unique