-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathschema.json
More file actions
622 lines (622 loc) · 19.1 KB
/
schema.json
File metadata and controls
622 lines (622 loc) · 19.1 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
{
"$schema": "http://json-schema.org/draft-07/schema",
"title": "Answer File Generator JSON options.",
"type": "object",
"description": "Provides options for generating an unattended Windows installation answer file using the Answer File Generator.",
"additionalProperties": false,
"properties": {
"$schema": {
"type": "string",
"title": "Schema",
"description": "Pointer to the schema against which this document should be validated."
},
"InstallOptions": {
"description": "Options for the installation method. This should be an object with a '$type' property, or null to generate an answer file intended for a preinstalled image. Other available options depend on the value of '$type'.",
"oneOf": [
{
"type": "null"
},
{
"properties": {
"$type": {
"enum": [
"CleanEfi",
"CleanBios",
"ExistingPartition",
"Manual"
],
"type": "string",
"description": "The installation method to use."
}
},
"required": [
"$type"
],
"allOf": [
{
"if": {
"properties": {
"$type": {
"const": "CleanEfi"
}
}
},
"then": {
"$ref": "#/definitions/CleanEfiOptions"
}
},
{
"if": {
"properties": {
"$type": {
"const": "CleanBios"
}
}
},
"then": {
"$ref": "#/definitions/CleanBiosOptions"
}
},
{
"if": {
"properties": {
"$type": {
"const": "ExistingPartition"
}
}
},
"then": {
"$ref": "#/definitions/ExistingPartitionOptions"
}
},
{
"if": {
"properties": {
"$type": {
"const": "Manual"
}
}
},
"then": {
"$ref": "#/definitions/ManualInstallOptions"
}
}
]
}
]
},
"JoinDomain": {
"description": "Options for joining a domain, or null to not join a domain.",
"oneOf": [
{
"type": "null"
},
{
"properties": {
"$type": {
"enum": [
"Credential",
"Provisioning"
],
"type": "string",
"description": "The type of domain join options to use."
}
},
"required": [
"$type"
],
"allOf": [
{
"if": {
"properties": {
"$type": {
"const": "Credential"
}
}
},
"then": {
"$ref": "#/definitions/DomainOptions"
}
},
{
"if": {
"properties": {
"$type": {
"const": "Provisioning"
}
}
},
"then": {
"$ref": "#/definitions/ProvisionedDomainOptions"
}
}
]
}
]
},
"ComputerName": {
"type": [
"null",
"string"
],
"description": "The computer name of the system, or null to let Windows generate one."
},
"EnableDefender": {
"type": "boolean",
"description": "Indicates whether Windows Defender is enabled after installation. The default value is true."
},
"EnableCloud": {
"type": "boolean",
"description": "Indicates whether cloud consumer features are enabled after installation. The default value is true. This may have no effect depending on the Windows version and edition being installed."
},
"EnableRemoteDesktop": {
"type": "boolean",
"description": "Indicates whether remote desktop accepts incoming connections after installation. The default value is false."
},
"EnableServerManager": {
"type": "boolean",
"description": "Indicates whether server manager will be launched on logon on Windows Server. The default value is true. This has no effect on non-Server editions of Windows."
},
"LocalAccounts": {
"type": [
"null",
"array"
],
"description": "A list of local accounts to create.",
"items": {
"$ref": "#/definitions/LocalCredential"
}
},
"AutoLogon": {
"description": "Options for logging on automatically, or null to not log on automatically.",
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/definitions/AutoLogonOptions"
}
]
},
"AdministratorPassword": {
"type": [
"null",
"string"
],
"description": "The password for the built-in local Administrator account, or null to leave the account disabled. Setting this to an empty string will enable the account without a password."
},
"DisplayResolution": {
"description": "The display resolution, in the format 'width,height' (e.g. '1920,1080'), or null to let Windows determine the default resolution.",
"type": [
"null",
"string"
],
"pattern": "^\\d+,\\d+$"
},
"Language": {
"type": "string",
"description": "The language used for the UI and culture settings. The default value is 'en-US'."
},
"ProductKey": {
"type": [
"null",
"string"
],
"description": "The product key used to determine the edition to install, and to activate Windows. This can be null when using a preinstalled image, or when installing an edition that does not require a product key, such as a volume licensed edition."
},
"ProcessorArchitecture": {
"type": "string",
"description": "The processor architecture of the Windows version being installed. Valid values include 'amd64', 'x86', and 'arm64'. The default value is 'amd64'."
},
"TimeZone": {
"type": "string",
"description": "The system time zone. Use 'tzutil /l' in a command prompt to list possible time zones. The default value is 'Pacific Standard Time'."
},
"FirstLogonCommands": {
"type": [
"null",
"array"
],
"description": "A list of commands to run during first log-on. These are executed on first log-on before the scripts in FirstLogonScripts.",
"items": {
"type": "string"
}
},
"FirstLogonScripts": {
"type": [
"null",
"array"
],
"description": "A list of PowerShell scripts to run during first log-on. These are executed on first log-on after the commands in FirstLogonCommands.",
"items": {
"type": "string"
}
}
},
"definitions": {
"InstallOptionsBase": {
"type": "object",
"description": "Common options for all installation method.",
"x-abstract": true,
"properties": {
"OptionalFeatures": {
"description": "Optional features to install, or null to not install any.",
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/definitions/OptionalFeatures"
}
]
},
"JoinDomainOffline": {
"type": "boolean",
"description": "Indicates whether the domain join should be performed during the offlineServicing pass. The default value is false. This has no effect if JoinDomain is null. Setting this to true is only supported when using provisioning to join the domain."
}
}
},
"TargetedInstallOptionsBase": {
"allOf": [
{
"$ref": "#/definitions/InstallOptionsBase"
},
{
"type": "object",
"description": "Common options for all installation methods that target a specific disk and partition.",
"x-abstract": true,
"properties": {
"DiskId": {
"type": "integer",
"description": "The zero-based index of the disk to which Windows will be installed.",
"format": "int32",
"minimum": 0
},
"ImageIndex": {
"type": "integer",
"description": "The index of the image in the WIM file to install. Use this for Windows editions not installed using a product key, such as those that use volume licensing. Use the PowerShell 'Get-WindowsImage' command to list all images in a .wim or .esd file.",
"format": "int32",
"minimum": 0
}
}
}
]
},
"CleanOptionsBase": {
"allOf": [
{
"$ref": "#/definitions/TargetedInstallOptionsBase"
},
{
"type": "object",
"description": "Common options for installation methods that perform a clean installation on a specific disk and partition.",
"x-abstract": true,
"properties": {
"Partitions": {
"type": [
"null",
"array"
],
"description": "A list of partitions to create, or null to use the default partition layout for the installation type.",
"items": {
"$ref": "#/definitions/Partition"
}
},
"TargetPartitionId": {
"type": [
"integer",
"null"
],
"description": "The one-based index of the partition to install to, or null to install to the first regular data partition.",
"format": "int32",
"minimum": 1
}
}
}
]
},
"CleanEfiOptions": {
"allOf": [
{
"$ref": "#/definitions/CleanOptionsBase"
},
{
"type": "object",
"description": "Provides options for a clean installation on UEFI-based systems.",
"properties": {
"$type": {
"type": "string",
"description": "The installation method to use.",
"const": "CleanEfi"
}
}
}
]
},
"CleanBiosOptions": {
"allOf": [
{
"$ref": "#/definitions/CleanOptionsBase"
},
{
"type": "object",
"description": "Provides options for a clean installation on BIOS-based systems.",
"properties": {
"$type": {
"type": "string",
"description": "The installation method to use.",
"const": "CleanBios"
}
}
}
]
},
"ExistingPartitionOptions": {
"allOf": [
{
"$ref": "#/definitions/TargetedInstallOptionsBase"
},
{
"type": "object",
"description": "Provides options for installing to an existing partition.",
"required": [
"TargetPartitionId"
],
"properties": {
"$type": {
"type": "string",
"description": "The installation method to use.",
"const": "ExistingPartition"
},
"TargetPartitionId": {
"type": "integer",
"description": "The one-based index of the partition to install to.",
"format": "int32",
"minimum": 1
}
}
}
]
},
"ManualInstallOptions": {
"allOf": [
{
"$ref": "#/definitions/InstallOptionsBase"
},
{
"type": "object",
"description": "Provides options for an installation where the disk and partition to install to must be manually selected by the user.",
"properties": {
"$type": {
"type": "string",
"description": "The installation method to use.",
"const": "Manual"
}
}
}
]
},
"OptionalFeatures": {
"type": "object",
"description": "Provides options for installing optional features.",
"required": [
"WindowsVersion"
],
"additionalProperties": false,
"properties": {
"WindowsVersion": {
"description": "The Windows version being installed. If this value does not match the actual version of Windows being installed, installation will fail.",
"type": "string",
"pattern": "^\\d+\\.\\d+.\\d+.\\d+$"
},
"Features": {
"type": "array",
"description": "A list of optional features to install.",
"items": {
"type": "string"
}
}
}
},
"Partition": {
"type": "object",
"description": "Specifies a partition to be created when using the CleanBiosOptions or CleanEfiOptions class.",
"additionalProperties": false,
"properties": {
"Type": {
"description": "The type of the partition. The default value is 'Normal'.",
"enum": [
"Normal",
"System",
"Msr",
"Utility"
]
},
"Label": {
"type": [
"null",
"string"
],
"description": "The label of the partition."
},
"Size": {
"description": "The size of the partition, which can be a value like '100MB', or null to fill the remaining space. Only the last partition may have a null size.",
"type": ["string", "null"]
},
"FileSystem": {
"type": [
"null",
"string"
],
"description": "The file system to format the partition with, or null to use the default file system for the partition type."
}
}
},
"DomainOptionsBase": {
"type": "object",
"description": "Common options for joining a domain.",
"x-abstract": true,
"properties": {
"DomainAccounts": {
"oneOf": [
{
"type": "null"
},
{
"type": "array",
"description": "A list of domain accounts that should be added to a local group.",
"items": {
"$ref": "#/definitions/DomainUserGroup"
}
}
]
}
}
},
"DomainOptions": {
"allOf": [
{
"$ref": "#/definitions/DomainOptionsBase"
},
{
"type": "object",
"description": "Provides options for joining a domain using credentials.",
"required": [
"$type",
"Domain",
"Credential"
],
"properties": {
"$type": {
"type": "string",
"description": "The type of domain join options to use.",
"const": "Credential"
},
"Domain": {
"type": "string",
"description": "The name of the domain to join."
},
"Credential": {
"description": "The credentials of a domain account that has permission to join the domain.",
"$ref": "#/definitions/DomainCredential"
},
"OUPath": {
"type": [
"null",
"string"
],
"description": "The path of the Organizational Unit that the computer account should be added to, or null to use the domain default."
}
}
}
]
},
"ProvisionedDomainOptions": {
"allOf": [
{
"$ref": "#/definitions/DomainOptionsBase"
},
{
"type": "object",
"description": "Provides options for joining a domain using provisioned account data.",
"required": [
"$type",
"AccountData"
],
"additionalProperties": false,
"properties": {
"$type": {
"type": "string",
"description": "The type of domain join options to use.",
"const": "Provisioning"
},
"AccountData": {
"type": "string",
"description": "The account data used to join the domain. This is a base64-encoded string returned by the djoin.exe command."
}
}
}
]
},
"DomainCredential": {
"type": "object",
"description": "Represents a credential for a domain or local user.",
"additionalProperties": false,
"required": [
"UserAccount",
"Password"
],
"properties": {
"UserAccount": {
"type": "string",
"description": "The domain or local user account, in the format 'domain\\user' or 'user'."
},
"Password": {
"type": "string",
"description": "The password for the account."
}
}
},
"DomainUserGroup": {
"type": "object",
"description": "Represents a domain user and the local group to which they should be added.",
"additionalProperties": false,
"required": [
"DomainUser"
],
"properties": {
"DomainUser": {
"type": "string",
"description": "The domain user that is being added to a group, in the format 'domain\\user' or 'user'. If no domain is specified, the user is assumed to be a member of the domain being joined."
},
"Group": {
"type": "string",
"description": "The group to which the user will be added. The default value is 'Administrators'."
}
}
},
"LocalCredential": {
"type": "object",
"description": "Provides credentials for a local user account.",
"additionalProperties": false,
"required": [
"UserName",
"Password"
],
"properties": {
"UserName": {
"type": "string",
"description": "The user name of the account."
},
"Password": {
"type": "string",
"description": "The password of the account."
},
"Group": {
"type": "string",
"description": "The group to which the user will be added. The default value is 'Administrators'."
}
}
},
"AutoLogonOptions": {
"type": "object",
"description": "Provides options for logging on automatically.",
"additionalProperties": false,
"required": [
"Credential"
],
"properties": {
"Credential": {
"description": "The credentials used to log on automatically.",
"$ref": "#/definitions/DomainCredential"
},
"Count": {
"type": "integer",
"description": "The number of times automatic log-on will be used. The default value is 1.",
"format": "int32",
"minimum": 1
}
}
}
}
}