-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathoptionalfeature.dsc.resource.json
More file actions
130 lines (130 loc) · 6.38 KB
/
Copy pathoptionalfeature.dsc.resource.json
File metadata and controls
130 lines (130 loc) · 6.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
"$schema": "https://aka.ms/dsc/schemas/v3/bundled/resource/manifest.json",
"description": "Manage Windows Optional Features using the DISM API.",
"tags": [
"windows",
"dism",
"optionalfeature",
"feature"
],
"type": "Microsoft.Windows/OptionalFeatureList",
"version": "0.1.0",
"get": {
"executable": "dism_dsc",
"args": [
"get",
"optional-feature"
],
"input": "stdin",
"requireSecurityContext": "elevated"
},
"set": {
"executable": "dism_dsc",
"args": [
"set",
"optional-feature"
],
"input": "stdin",
"implementsPretest": false,
"return": "state",
"requireSecurityContext": "elevated"
},
"export": {
"executable": "dism_dsc",
"args": [
"export",
"optional-feature"
],
"input": "stdin",
"requireSecurityContext": "elevated"
},
"schema": {
"embedded": {
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/resources/Microsoft.Windows/OptionalFeatureList/v0.1.0/schema.json",
"title": "Windows Optional Feature",
"description": "Manage Windows Optional Features using the DISM API. Supports get, set, and export operations.\n\nhttps://learn.microsoft.com/powershell/dsc/reference/microsoft.windows/optionalfeaturelist/resource\n",
"markdownDescription": "The `Microsoft.Windows/OptionalFeatureList` resource enables you to manage Windows Optional Features using the DISM API. Supports enabling (`Installed`) and disabling (`NotPresent`, `Removed`) features.\n\n[Online documentation][01]\n\n[01]: https://learn.microsoft.com/powershell/dsc/reference/microsoft.windows/optionalfeaturelist/resource\n",
"type": "object",
"additionalProperties": false,
"required": [
"features"
],
"properties": {
"_restartRequired": {
"type": "array",
"title": "Restart required",
"description": "Indicates that a system restart is required to complete the state change. Returned by the set operation when DISM reports that a reboot is needed.",
"items": {
"type": "object",
"additionalProperties": true
}
},
"features": {
"type": "array",
"title": "Features",
"description": "An array of optional feature filters or feature information objects.",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"featureName": {
"type": "string",
"title": "Feature name",
"description": "The name of the Windows optional feature. Required for get operation. For export operation, this is optional and wildcards (*) are supported for case-insensitive filtering."
},
"_exist": {
"type": "boolean",
"title": "Exists",
"description": "Indicates whether the feature exists on the system. Set to false when the requested feature name is not recognized by DISM."
},
"state": {
"type": "string",
"enum": [
"NotPresent",
"UninstallPending",
"Staged",
"Removed",
"Installed",
"InstallPending",
"Superseded",
"PartiallyInstalled"
],
"title": "Feature state",
"description": "The current state of the optional feature. For set operations, only Installed, NotPresent, and Removed are accepted; other states are returned by get and export operations and are not valid inputs for set."
},
"displayName": {
"type": "string",
"title": "Display name",
"description": "The display name of the optional feature. Returned by get and export operations. For export, wildcards (*) are supported for case-insensitive filtering."
},
"description": {
"type": "string",
"title": "Description",
"description": "The description of the optional feature. Returned by get and export operations. For export, wildcards (*) are supported for case-insensitive filtering."
},
"restartRequired": {
"type": "string",
"enum": [
"No",
"Possible",
"Required"
],
"title": "Restart required",
"description": "Whether a restart is required after enabling or disabling the feature. This is a read-only property returned by get and export operations."
}
}
}
},
"sourcePaths": {
"type": "array",
"title": "Source paths",
"description": "An array of paths to feature files if the files are not available in the local feature store. This is an optional property for set operations and is ignored for get operations.",
"items": {
"type": "string"
}
}
}
}
}
}