-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsysprep.html
More file actions
1590 lines (1532 loc) · 73.6 KB
/
Copy pathsysprep.html
File metadata and controls
1590 lines (1532 loc) · 73.6 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
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50,6 L87,27 L87,73 L50,94 L13,73 L13,27 Z' fill='%231c2340'/%3E%3Crect x='21' y='46' width='58' height='9' rx='4.5' fill='%234f7cff'/%3E%3Ccircle cx='26' cy='24' r='4.5' fill='%234f7cff'/%3E%3Ccircle cx='74' cy='76' r='4.5' fill='%234f7cff'/%3E%3C/svg%3E">
<title>Hatch — Windows Sysprep / autounattend.xml Generator</title>
<meta name="description" content="Generate autounattend.xml for fully automated, unattended Windows 10, 11, and Server installation. Configure disk partitioning, accounts, domain join, OOBE, privacy, and post-setup commands. Free, runs entirely in your browser.">
<meta name="keywords" content="autounattend.xml generator, windows sysprep, unattended windows install, windows 11 autounattend, windows 10 sysprep, WDS, answer file generator">
<link rel="canonical" href="https://bootsha.net/hatch/sysprep.html">
<meta property="og:title" content="Hatch — Windows Sysprep / autounattend.xml Generator">
<meta property="og:description" content="Generate autounattend.xml for fully automated Windows installation. Supports Windows 10, 11, and Server 2016–2025. Free, runs entirely in your browser.">
<meta property="og:url" content="https://bootsha.net/hatch/sysprep.html">
<meta property="og:image" content="https://bootsha.net/hatch/og-image.png">
<meta property="og:type" content="website">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Hatch — Windows Sysprep / autounattend.xml Generator">
<meta name="twitter:description" content="Generate autounattend.xml for fully automated Windows installation. Free, runs entirely in your browser.">
<meta name="twitter:image" content="https://bootsha.net/hatch/og-image.png">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "SoftwareApplication",
"name": "Hatch Windows Sysprep Generator",
"url": "https://bootsha.net/hatch/sysprep.html",
"applicationCategory": "DeveloperApplication",
"operatingSystem": "Any (runs in browser)",
"description": "Generate autounattend.xml for fully automated, unattended Windows 10, 11, and Server installation — disk partitioning, accounts, domain join, OOBE, and post-setup commands.",
"offers": { "@type": "Offer", "price": "0", "priceCurrency": "USD" },
"isPartOf": { "@type": "WebSite", "name": "Hatch", "url": "https://bootsha.net/hatch/" }
}
</script>
<style>
:root {
--bg: #0d1015;
--surface: #151920;
--surface2: #12151c;
--accent: #4f7cff;
--accent-hover: #3d68f0;
--text: #e6e9ef;
--text-muted: #8b93a3;
--border: #262c38;
--success: #22c55e;
--warning: #ff8c00;
--error: #ef4444;
--radius: 10px;
--shadow: 0 2px 8px rgba(0,0,0,0.25);
--shadow-lg: 0 6px 20px rgba(0,0,0,0.35);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
background: var(--bg);
color: var(--text);
min-height: 100vh;
line-height: 1.5;
}
header {
background: var(--surface2);
border-bottom: 1px solid var(--border);
padding: 16px 24px;
display: flex;
align-items: center;
gap: 12px;
position: sticky;
top: 0;
z-index: 100;
}
header svg { flex-shrink: 0; }
header h1 { font-size: 1.2rem; font-weight: 600; }
header p { font-size: 0.8rem; color: var(--text-muted); }
.privacy-badge {
margin-left: auto;
background: #0a3020;
border: 1px solid #107c10;
color: #4caf50;
padding: 4px 10px;
border-radius: 20px;
font-size: 0.75rem;
white-space: nowrap;
}
.home-link {
display: inline-flex;
align-items: center;
gap: 6px;
color: var(--text-muted);
text-decoration: none;
font-size: 0.8rem;
padding: 5px 10px;
border: 1px solid var(--border);
border-radius: var(--radius);
white-space: nowrap;
transition: color 0.2s, border-color 0.2s;
}
.home-link:hover { color: var(--text); border-color: var(--accent); }
.hatch-wordmark { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #4f7cff; margin-bottom: 1px; }
header svg.logo-egg { flex-shrink: 0; }
.container {
max-width: 900px;
margin: 0 auto;
padding: 24px 16px 80px;
}
.progress-bar {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 30px;
height: 8px;
margin-bottom: 24px;
overflow: hidden;
}
.progress-bar-fill {
height: 100%;
background: var(--accent);
border-radius: 30px;
transition: width 0.3s ease;
}
.step-indicator {
display: flex;
gap: 6px;
flex-wrap: wrap;
margin-bottom: 20px;
}
.step-pill {
padding: 4px 10px;
border-radius: 20px;
font-size: 0.72rem;
cursor: pointer;
border: 1px solid var(--border);
background: var(--surface);
color: var(--text-muted);
transition: all 0.2s;
}
.step-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 2px 10px rgba(79,124,255,0.4); }
.step-pill.done { background: #0a3020; border-color: #107c10; color: #4caf50; }
.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 24px;
margin-bottom: 16px;
box-shadow: var(--shadow);
}
.card h2 {
font-size: 1rem;
font-weight: 600;
margin-bottom: 4px;
display: flex;
align-items: center;
gap: 8px;
}
.card .subtitle {
font-size: 0.82rem;
color: var(--text-muted);
margin-bottom: 20px;
}
.form-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
label {
font-size: 0.82rem;
font-weight: 500;
color: var(--text-muted);
display: flex;
align-items: center;
gap: 6px;
}
label .required { color: var(--error); }
label .hint {
font-weight: 400;
font-size: 0.75rem;
color: var(--text-muted);
margin-left: auto;
}
input[type="text"], input[type="password"], input[type="number"], select, textarea {
background: var(--bg);
border: 1px solid var(--border);
border-radius: var(--radius);
color: var(--text);
padding: 9px 12px;
font-size: 0.88rem;
font-family: inherit;
width: 100%;
transition: border-color 0.2s;
outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,124,255,0.15); }
select option { background: #1a1a2e; }
textarea { resize: vertical; min-height: 80px; }
.toggle-row {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 0;
border-bottom: 1px solid var(--border);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-label { font-size: 0.88rem; }
.toggle-desc { font-size: 0.76rem; color: var(--text-muted); margin-top: 2px; }
.toggle {
position: relative;
width: 44px;
height: 24px;
flex-shrink: 0;
margin-left: 12px;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.slider {
position: absolute;
cursor: pointer;
top: 0; left: 0; right: 0; bottom: 0;
background: var(--border);
border-radius: 24px;
transition: 0.2s;
}
.slider:before {
content: '';
position: absolute;
height: 18px; width: 18px;
left: 3px; bottom: 3px;
background: #fff;
border-radius: 50%;
transition: 0.2s;
}
input:checked + .slider { background: var(--accent); }
input:checked + .slider:before { transform: translateX(20px); }
.tag-input-container {
background: var(--bg);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 6px 8px;
display: flex;
flex-wrap: wrap;
gap: 6px;
cursor: text;
min-height: 42px;
align-items: center;
transition: border-color 0.2s;
}
.tag-input-container:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,124,255,0.15); }
.tag {
background: var(--surface2);
border: 1px solid var(--accent);
border-radius: 4px;
padding: 2px 8px;
font-size: 0.8rem;
display: flex;
align-items: center;
gap: 6px;
}
.tag-remove { cursor: pointer; color: var(--text-muted); font-size: 1rem; line-height: 1; }
.tag-remove:hover { color: var(--error); }
.tag-input {
border: none;
background: transparent;
color: var(--text);
font-size: 0.88rem;
outline: none;
flex: 1;
min-width: 120px;
padding: 2px 4px;
}
.btn {
padding: 10px 20px;
border-radius: var(--radius);
border: 1px solid transparent;
font-size: 0.88rem;
font-weight: 500;
cursor: pointer;
transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
display: inline-flex;
align-items: center;
gap: 8px;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(79,124,255,0.35); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(79,124,255,0.45); }
.btn-secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #0e6b0e; }
.btn-lg { padding: 13px 28px; font-size: 0.95rem; }
.nav-buttons {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 24px;
gap: 12px;
flex-wrap: wrap;
}
@media (max-width: 600px) {
.nav-buttons { flex-direction: column; align-items: stretch; }
.nav-buttons .btn { width: 100%; justify-content: center; }
}
.section-hidden { display: none; }
.xml-output {
background: #0d1117;
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px;
font-family: 'Cascadia Code', 'Consolas', 'Courier New', monospace;
font-size: 0.8rem;
line-height: 1.6;
white-space: pre;
overflow-x: auto;
max-height: 500px;
overflow-y: auto;
color: #e6edf3;
tab-size: 2;
}
.info-box {
background: rgba(79,124,255,0.08);
border: 1px solid rgba(79,124,255,0.3);
border-radius: var(--radius);
padding: 12px 16px;
font-size: 0.82rem;
color: #9db4ff;
margin-bottom: 16px;
display: flex;
gap: 10px;
}
.warn-box {
background: rgba(255,140,0,0.08);
border: 1px solid rgba(255,140,0,0.3);
border-radius: var(--radius);
padding: 12px 16px;
font-size: 0.82rem;
color: #ffb347;
margin-bottom: 16px;
display: flex;
gap: 10px;
}
.output-actions {
display: flex;
gap: 12px;
flex-wrap: wrap;
margin-top: 16px;
}
.section-title {
font-size: 0.7rem;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--text-muted);
font-weight: 600;
margin-bottom: 12px;
padding-bottom: 8px;
border-bottom: 1px solid var(--border);
}
.disk-partition-builder { display: flex; flex-direction: column; gap: 10px; }
.partition-row {
background: var(--bg);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 12px;
display: grid;
grid-template-columns: auto 1fr 1fr 1fr auto;
gap: 10px;
align-items: center;
transition: border-color 0.2s;
}
.partition-row:hover { border-color: rgba(79,124,255,0.35); }
.partition-type-badge {
font-size: 0.72rem;
padding: 2px 8px;
border-radius: 12px;
text-transform: uppercase;
font-weight: 600;
}
.badge-system { background: rgba(255,140,0,0.15); color: #ff8c00; border: 1px solid rgba(255,140,0,0.3); }
.badge-primary { background: rgba(79,124,255,0.15); color: var(--accent); border: 1px solid rgba(79,124,255,0.3); }
.badge-data { background: rgba(16,124,16,0.15); color: #107c10; border: 1px solid rgba(16,124,16,0.3); }
.badge-recovery { background: rgba(197,15,31,0.15); color: #c50f1f; border: 1px solid rgba(197,15,31,0.3); }
.commands-list { display: flex; flex-direction: column; gap: 8px; }
.command-row {
display: grid;
grid-template-columns: 40px 1fr auto;
gap: 8px;
align-items: center;
background: var(--bg);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 8px 12px;
transition: border-color 0.2s;
}
.command-row:hover { border-color: rgba(79,124,255,0.35); }
.command-order { font-size: 0.75rem; color: var(--text-muted); text-align: center; }
.copy-feedback {
position: fixed;
bottom: 24px;
right: 24px;
background: #107c10;
color: #fff;
padding: 10px 20px;
border-radius: var(--radius);
font-size: 0.88rem;
opacity: 0;
transition: opacity 0.3s;
pointer-events: none;
z-index: 1000;
}
.copy-feedback.show { opacity: 1; }
.review-section { margin-bottom: 22px; }
.review-section:last-child { margin-bottom: 0; }
.review-section-title { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 600; margin-bottom: 10px; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.review-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
.review-item-key { font-size: 0.7rem; color: var(--text-muted); }
.review-item-val { font-size: 0.86rem; margin-top: 3px; word-break: break-all; font-weight: 500; }
@media (max-width: 600px) {
.form-grid { grid-template-columns: 1fr; }
.partition-row { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
}
</style>
</head>
<body>
<header>
<svg class="logo-egg" width="40" height="40" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
<path d="M50,6 L87,27 L87,73 L50,94 L13,73 L13,27 Z" fill="#1c2340" stroke="#3d3d62" stroke-width="1.5"/>
<rect x="21" y="46" width="58" height="9" rx="4.5" fill="#4f7cff"/>
<circle cx="26" cy="24" r="4.5" fill="#4f7cff"/>
<circle cx="74" cy="76" r="4.5" fill="#4f7cff"/>
</svg>
<div>
<div class="hatch-wordmark">Hatch</div>
<h1>Windows Sysprep Generator</h1>
<p>Generate autounattend.xml for automated Windows installation</p>
</div>
<a href="index.html" class="home-link">← Home</a>
<div class="privacy-badge">🔒 100% Local — No Data Transmitted</div>
</header>
<div class="container">
<div class="progress-bar"><div class="progress-bar-fill" id="progressFill" style="width:0%"></div></div>
<div class="step-indicator" id="stepIndicator"></div>
<!-- STEP 1: Windows Edition -->
<div class="step-section" id="step-0">
<div class="card">
<h2>Windows Edition & Architecture</h2>
<p class="subtitle">Select the Windows version and edition you are deploying.</p>
<div class="form-grid">
<div class="form-group">
<label>Windows Version <span class="required">*</span></label>
<select id="winVersion" onchange="onWinVersionChange()">
<option value="win11">Windows 11</option>
<option value="win10">Windows 10</option>
<option value="ws2025">Windows Server 2025</option>
<option value="ws2022">Windows Server 2022</option>
<option value="ws2019">Windows Server 2019</option>
<option value="ws2016">Windows Server 2016</option>
</select>
</div>
<div class="form-group">
<label>Edition <span class="required">*</span></label>
<select id="winEdition"></select>
</div>
<div class="form-group">
<label>Architecture <span class="required">*</span></label>
<select id="winArch">
<option value="amd64">x64 (AMD64) — Recommended</option>
<option value="x86">x86 (32-bit)</option>
<option value="arm64">ARM64</option>
</select>
</div>
<div class="form-group">
<label>Firmware Type <span class="required">*</span></label>
<select id="firmwareType">
<option value="uefi">UEFI (GPT) — Modern systems</option>
<option value="bios">Legacy BIOS (MBR) — Older systems</option>
</select>
</div>
<div class="form-group">
<label>Product Key <span class="hint">Optional — use KMS/MAK key or leave blank</span></label>
<input type="text" id="productKey" placeholder="XXXXX-XXXXX-XXXXX-XXXXX-XXXXX" maxlength="29" oninput="formatProductKey(this)">
</div>
<div class="form-group">
<label>Key Activation Type</label>
<select id="activationType">
<option value="none">None / Enter later</option>
<option value="kms">KMS (Volume Licensing)</option>
<option value="mak">MAK (Multiple Activation Key)</option>
<option value="retail">Retail / OEM</option>
</select>
</div>
</div>
</div>
</div>
<!-- STEP 2: Language & Regional -->
<div class="step-section section-hidden" id="step-1">
<div class="card">
<h2>Language & Regional Settings</h2>
<p class="subtitle">Configure locale, keyboard layout, and time zone.</p>
<div class="form-grid">
<div class="form-group">
<label>UI Language <span class="required">*</span></label>
<select id="uiLanguage">
<option value="en-US">English (United States)</option>
<option value="en-GB">English (United Kingdom)</option>
<option value="en-AU">English (Australia)</option>
<option value="en-CA">English (Canada)</option>
<option value="de-DE">German (Germany)</option>
<option value="fr-FR">French (France)</option>
<option value="fr-CA">French (Canada)</option>
<option value="es-ES">Spanish (Spain)</option>
<option value="es-MX">Spanish (Mexico)</option>
<option value="it-IT">Italian (Italy)</option>
<option value="pt-BR">Portuguese (Brazil)</option>
<option value="pt-PT">Portuguese (Portugal)</option>
<option value="nl-NL">Dutch (Netherlands)</option>
<option value="pl-PL">Polish (Poland)</option>
<option value="ru-RU">Russian (Russia)</option>
<option value="zh-CN">Chinese Simplified (China)</option>
<option value="zh-TW">Chinese Traditional (Taiwan)</option>
<option value="ja-JP">Japanese (Japan)</option>
<option value="ko-KR">Korean (Korea)</option>
<option value="ar-SA">Arabic (Saudi Arabia)</option>
<option value="tr-TR">Turkish (Turkey)</option>
<option value="sv-SE">Swedish (Sweden)</option>
<option value="no-NO">Norwegian (Norway)</option>
<option value="da-DK">Danish (Denmark)</option>
<option value="fi-FI">Finnish (Finland)</option>
</select>
</div>
<div class="form-group">
<label>System Locale (Non-Unicode)</label>
<select id="systemLocale">
<option value="en-US">en-US</option>
<option value="en-GB">en-GB</option>
<option value="de-DE">de-DE</option>
<option value="fr-FR">fr-FR</option>
<option value="es-ES">es-ES</option>
<option value="ja-JP">ja-JP</option>
<option value="zh-CN">zh-CN</option>
<option value="ar-SA">ar-SA</option>
<option value="ru-RU">ru-RU</option>
</select>
</div>
<div class="form-group">
<label>Keyboard Layout / Input Method</label>
<select id="keyboardLayout">
<option value="0409:00000409">English (US)</option>
<option value="0809:00000809">English (UK)</option>
<option value="0c09:00000c09">English (Australian)</option>
<option value="0407:00000407">German (Germany)</option>
<option value="040c:0000040c">French (France)</option>
<option value="0c0c:00000c0c">French (Canada)</option>
<option value="0c0a:0000040a">Spanish (Spain)</option>
<option value="0410:00000410">Italian (Italy)</option>
<option value="0416:00000416">Portuguese (Brazil)</option>
<option value="0415:00000415">Polish (Poland)</option>
<option value="0419:00000419">Russian (Russia)</option>
<option value="0804:00000804">Chinese Simplified</option>
<option value="0411:00000411">Japanese</option>
<option value="0412:00000412">Korean</option>
<option value="041d:0000041d">Swedish (Sweden)</option>
<option value="0414:00000414">Norwegian (Bokmål)</option>
<option value="0406:00000406">Danish (Denmark)</option>
<option value="040b:0000040b">Finnish (Finland)</option>
<option value="041f:0000041f">Turkish (Turkey)</option>
</select>
</div>
<div class="form-group">
<label>Time Zone <span class="required">*</span></label>
<select id="timeZone">
<option value="UTC">UTC</option>
<option value="GMT Standard Time">London (GMT)</option>
<option value="Eastern Standard Time">Eastern US (EST/EDT)</option>
<option value="Central Standard Time">Central US (CST/CDT)</option>
<option value="Mountain Standard Time">Mountain US (MST/MDT)</option>
<option value="Pacific Standard Time">Pacific US (PST/PDT)</option>
<option value="Alaskan Standard Time">Alaska</option>
<option value="Hawaiian Standard Time">Hawaii</option>
<option value="Atlantic Standard Time">Atlantic (AST/ADT)</option>
<option value="Canada Central Standard Time">Canada Central</option>
<option value="SA Eastern Standard Time">São Paulo (BRT)</option>
<option value="W. Europe Standard Time">Amsterdam, Berlin, Paris, Rome</option>
<option value="Central Europe Standard Time">Prague, Budapest, Warsaw</option>
<option value="Eastern Europe Standard Time">Bucharest, Helsinki</option>
<option value="FLE Standard Time">Helsinki, Kiev, Riga, Tallinn</option>
<option value="GTB Standard Time">Athens, Istanbul</option>
<option value="Russian Standard Time">Moscow, St. Petersburg</option>
<option value="Arab Standard Time">Kuwait, Riyadh (AST)</option>
<option value="Arabian Standard Time">Abu Dhabi, Muscat</option>
<option value="Iran Standard Time">Tehran (IRST)</option>
<option value="Pakistan Standard Time">Islamabad, Karachi</option>
<option value="India Standard Time">Chennai, Mumbai, New Delhi</option>
<option value="Bangladesh Standard Time">Dhaka (BST)</option>
<option value="SE Asia Standard Time">Bangkok, Hanoi, Jakarta</option>
<option value="China Standard Time">Beijing, Chongqing, Hong Kong</option>
<option value="Singapore Standard Time">Kuala Lumpur, Singapore</option>
<option value="Tokyo Standard Time">Osaka, Sapporo, Tokyo</option>
<option value="Korea Standard Time">Seoul (KST)</option>
<option value="AUS Eastern Standard Time">Canberra, Melbourne, Sydney</option>
<option value="New Zealand Standard Time">Auckland, Wellington</option>
</select>
</div>
</div>
</div>
</div>
<!-- STEP 3: Disk & Partitioning -->
<div class="step-section section-hidden" id="step-2">
<div class="card">
<h2>Disk & Partitioning</h2>
<p class="subtitle">Configure disk selection and partition layout.</p>
<div class="warn-box">⚠️ The generated XML will wipe the selected disk. Double-check disk numbers in your environment before deploying.</div>
<div class="form-grid">
<div class="form-group">
<label>Target Disk Number <span class="required">*</span></label>
<input type="number" id="diskNumber" value="0" min="0" max="99" placeholder="0">
</div>
<div class="form-group">
<label>Disk Layout</label>
<select id="diskLayout" onchange="onDiskLayoutChange()">
<option value="recommended">Recommended (EFI/Recovery/Windows)</option>
<option value="simple">Simple (System + Windows only)</option>
<option value="custom">Custom</option>
</select>
</div>
<div class="form-group">
<label>Windows Partition Size <span class="hint">0 = use all remaining space</span></label>
<input type="number" id="winPartSize" value="0" min="0" placeholder="MB (0 = remaining)">
</div>
<div class="form-group">
<label>Windows Drive Letter</label>
<select id="winDriveLetter">
<option value="C">C:</option>
<option value="D">D:</option>
<option value="E">E:</option>
<option value="W">W:</option>
</select>
</div>
</div>
<div id="customPartitionArea" class="section-hidden" style="margin-top:16px">
<div class="section-title">Custom Partition Layout</div>
<div class="info-box">ℹ️ Define partitions in order. The last partition with size 0 will consume all remaining space. Windows OS partition must be NTFS type.</div>
<div class="disk-partition-builder" id="partitionList"></div>
<button class="btn btn-secondary" style="margin-top:10px" onclick="addPartition()">+ Add Partition</button>
</div>
</div>
</div>
<!-- STEP 4: Administrator Account -->
<div class="step-section section-hidden" id="step-3">
<div class="card">
<h2>Administrator & User Accounts</h2>
<p class="subtitle">Configure the built-in administrator and initial user accounts.</p>
<div class="form-grid">
<div class="form-group">
<label>Built-in Administrator Account</label>
<select id="adminAccountMode" onchange="onAdminModeChange()">
<option value="disable">Disabled (use local user — recommended)</option>
<option value="enable">Enabled with password</option>
<option value="autologon">Enabled + Auto-Logon</option>
</select>
</div>
<div class="form-group" id="adminPasswordGroup">
<label>Administrator Password</label>
<input type="password" id="adminPassword" placeholder="Leave blank for empty password" autocomplete="new-password">
</div>
</div>
<div style="margin-top: 20px;">
<div class="section-title">Local User Accounts</div>
<div id="localUserList" class="commands-list"></div>
<button class="btn btn-secondary" style="margin-top:10px" onclick="addLocalUser()">+ Add Local User</button>
</div>
<div style="margin-top: 20px;">
<div class="section-title">Auto-Logon Settings</div>
<div class="form-grid">
<div class="form-group">
<label>Auto-Logon Username <span class="hint">Leave blank to disable</span></label>
<input type="text" id="autoLogonUser" placeholder="Username for auto-logon">
</div>
<div class="form-group">
<label>Auto-Logon Password</label>
<input type="password" id="autoLogonPassword" placeholder="Password" autocomplete="new-password">
</div>
<div class="form-group">
<label>Auto-Logon Count <span class="hint">How many times to auto-logon</span></label>
<input type="number" id="autoLogonCount" value="1" min="1" max="100">
</div>
</div>
</div>
</div>
</div>
<!-- STEP 5: Computer & Network -->
<div class="step-section section-hidden" id="step-4">
<div class="card">
<h2>Computer Name & Network</h2>
<p class="subtitle">Configure computer name and workgroup or domain settings.</p>
<div class="form-grid">
<div class="form-group">
<label>Computer Name <span class="hint">* = random name</span></label>
<input type="text" id="computerName" value="*" placeholder="* or hostname" maxlength="15">
</div>
<div class="form-group">
<label>Network Configuration</label>
<select id="networkType" onchange="onNetworkTypeChange()">
<option value="workgroup">Workgroup</option>
<option value="domain">Join Domain</option>
</select>
</div>
<div class="form-group" id="workgroupGroup">
<label>Workgroup Name</label>
<input type="text" id="workgroupName" value="WORKGROUP" maxlength="15">
</div>
<div class="form-group section-hidden" id="domainGroup">
<label>Domain Name (FQDN)</label>
<input type="text" id="domainName" placeholder="corp.example.com">
</div>
<div class="form-group section-hidden" id="domainUserGroup">
<label>Domain Join Username</label>
<input type="text" id="domainUser" placeholder="domain\administrator">
</div>
<div class="form-group section-hidden" id="domainPassGroup">
<label>Domain Join Password</label>
<input type="password" id="domainPassword" autocomplete="new-password">
</div>
<div class="form-group section-hidden" id="domainOUGroup">
<label>Organizational Unit (OU) <span class="hint">Optional</span></label>
<input type="text" id="domainOU" placeholder="OU=Computers,DC=corp,DC=example,DC=com">
</div>
</div>
</div>
</div>
<!-- STEP 6: OOBE & Privacy -->
<div class="step-section section-hidden" id="step-5">
<div class="card">
<h2>OOBE & Setup Options</h2>
<p class="subtitle">Out-of-box experience and first-run setup behavior.</p>
<div class="toggle-row">
<div>
<div class="toggle-label">Skip OOBE (Out-of-Box Experience)</div>
<div class="toggle-desc">Suppress the Windows welcome/setup wizard entirely</div>
</div>
<label class="toggle"><input type="checkbox" id="skipOOBE" checked><span class="slider"></span></label>
</div>
<div class="toggle-row">
<div>
<div class="toggle-label">Hide EULA page</div>
<div class="toggle-desc">Automatically accept the End User License Agreement</div>
</div>
<label class="toggle"><input type="checkbox" id="hideEULA" checked><span class="slider"></span></label>
</div>
<div class="toggle-row">
<div>
<div class="toggle-label">Hide OEM registration page</div>
<div class="toggle-desc">Skip the OEM registration/customization screen</div>
</div>
<label class="toggle"><input type="checkbox" id="hideOEMReg" checked><span class="slider"></span></label>
</div>
<div class="toggle-row">
<div>
<div class="toggle-label">Skip network setup in OOBE</div>
<div class="toggle-desc">Allow setup to proceed without a network connection</div>
</div>
<label class="toggle"><input type="checkbox" id="skipNetworkOOBE" checked><span class="slider"></span></label>
</div>
<div class="toggle-row">
<div>
<div class="toggle-label">Skip Microsoft Account prompt</div>
<div class="toggle-desc">Force local account creation, bypass Microsoft Account requirement</div>
</div>
<label class="toggle"><input type="checkbox" id="skipMSAccount" checked><span class="slider"></span></label>
</div>
<div class="toggle-row">
<div>
<div class="toggle-label">Disable Windows Defender SmartScreen during setup</div>
<div class="toggle-desc">Useful for enterprise environments with their own security tools</div>
</div>
<label class="toggle"><input type="checkbox" id="disableSmartScreen"><span class="slider"></span></label>
</div>
<div class="toggle-row">
<div>
<div class="toggle-label">Protect your PC (Windows Security)</div>
<div class="toggle-desc">Show the "Protect your PC" screen during OOBE</div>
</div>
<label class="toggle"><input type="checkbox" id="protectPC"><span class="slider"></span></label>
</div>
</div>
<div class="card">
<h2>Privacy & Telemetry</h2>
<p class="subtitle">Control data collection and privacy settings.</p>
<div class="toggle-row">
<div>
<div class="toggle-label">Disable diagnostic data (telemetry)</div>
<div class="toggle-desc">Set diagnostics to Security level (minimum)</div>
</div>
<label class="toggle"><input type="checkbox" id="disableTelemetry" checked><span class="slider"></span></label>
</div>
<div class="toggle-row">
<div>
<div class="toggle-label">Disable advertising ID</div>
<div class="toggle-desc">Prevent apps from using advertising ID for personalization</div>
</div>
<label class="toggle"><input type="checkbox" id="disableAdID" checked><span class="slider"></span></label>
</div>
<div class="toggle-row">
<div>
<div class="toggle-label">Disable Cortana</div>
<div class="toggle-desc">Disable Cortana assistant</div>
</div>
<label class="toggle"><input type="checkbox" id="disableCortana" checked><span class="slider"></span></label>
</div>
<div class="toggle-row">
<div>
<div class="toggle-label">Disable OneDrive auto-start</div>
<div class="toggle-desc">Prevent OneDrive from starting automatically</div>
</div>
<label class="toggle"><input type="checkbox" id="disableOneDrive"><span class="slider"></span></label>
</div>
</div>
</div>
<!-- STEP 7: First Run Commands -->
<div class="step-section section-hidden" id="step-6">
<div class="card">
<h2>First-Run Commands</h2>
<p class="subtitle">Commands to run automatically after Windows setup completes.</p>
<div class="info-box">ℹ️ Specialize commands run before user logon (as SYSTEM). First-logon commands run on first user logon. Use absolute paths. Order matters.</div>
<div style="margin-bottom: 20px;">
<div class="section-title">Specialize Commands (run as SYSTEM before logon)</div>
<div class="commands-list" id="specializeCommandList"></div>
<button class="btn btn-secondary" style="margin-top:10px" onclick="addCommand('specialize')">+ Add Command</button>
</div>
<div>
<div class="section-title">First Logon Commands (run on first user logon)</div>
<div class="commands-list" id="firstLogonCommandList"></div>
<button class="btn btn-secondary" style="margin-top:10px" onclick="addCommand('firstlogon')">+ Add Command</button>
</div>
</div>
<div class="card">
<h2>Common Quick-Add Commands</h2>
<p class="subtitle">Click to add commonly used setup commands.</p>
<div style="display:flex; flex-wrap:wrap; gap:8px;">
<button class="btn btn-secondary" onclick="quickAdd('cmd /c powershell -NoProfile -ExecutionPolicy Bypass -Command "Set-ExecutionPolicy RemoteSigned -Force"', 'specialize')">Enable PS Scripts</button>
<button class="btn btn-secondary" onclick="quickAdd('cmd /c netsh advfirewall set allprofiles state off', 'specialize')">Disable Firewall</button>
<button class="btn btn-secondary" onclick="quickAdd('cmd /c powershell -NoProfile -Command "Enable-PSRemoting -Force"', 'specialize')">Enable WinRM</button>
<button class="btn btn-secondary" onclick="quickAdd('cmd /c wuauclt /updatenow', 'firstlogon')">Run Windows Update</button>
<button class="btn btn-secondary" onclick="quickAdd('cmd /c powershell -NoProfile -Command "Disable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol -NoRestart"', 'specialize')">Disable SMBv1</button>
<button class="btn btn-secondary" onclick="quickAdd('cmd /c reg add "HKLM\\System\\CurrentControlSet\\Control\\Remote Assistance" /v fAllowToGetHelp /t REG_DWORD /d 0 /f', 'specialize')">Disable Remote Assist</button>
</div>
</div>
</div>
<!-- STEP 8: Advanced Options -->
<div class="step-section section-hidden" id="step-7">
<div class="card">
<h2>Advanced Options</h2>
<p class="subtitle">Additional configuration for enterprise deployments.</p>
<div class="form-grid">
<div class="form-group">
<label>Organization Name</label>
<input type="text" id="orgName" placeholder="Acme Corporation">
</div>
<div class="form-group">
<label>Owner Name</label>
<input type="text" id="ownerName" placeholder="IT Department">
</div>
<div class="form-group">
<label>Image Install Source <span class="hint">For WIM/ESD files</span></label>
<input type="text" id="imageInstallSource" placeholder="Leave blank for default">
</div>
<div class="form-group">
<label>WDS (Windows Deployment Services)</label>
<select id="wdsEnabled">
<option value="false">Not using WDS</option>
<option value="true">Using WDS</option>
</select>
</div>
</div>
<div style="margin-top:16px">
<div class="toggle-row">
<div>
<div class="toggle-label">Enable RDP (Remote Desktop)</div>
<div class="toggle-desc">Allow remote desktop connections after setup</div>
</div>
<label class="toggle"><input type="checkbox" id="enableRDP"><span class="slider"></span></label>
</div>
<div class="toggle-row">
<div>
<div class="toggle-label">Enable .NET Framework 3.5</div>
<div class="toggle-desc">Install legacy .NET Framework (required by some apps)</div>
</div>
<label class="toggle"><input type="checkbox" id="enableDotNet35"><span class="slider"></span></label>
</div>
<div class="toggle-row">
<div>
<div class="toggle-label">Disable UAC (User Account Control)</div>
<div class="toggle-desc">Not recommended for most deployments</div>
</div>
<label class="toggle"><input type="checkbox" id="disableUAC"><span class="slider"></span></label>
</div>
<div class="toggle-row">
<div>
<div class="toggle-label">Show file extensions in Explorer</div>
<div class="toggle-desc">Unhide known file extensions in Windows Explorer</div>
</div>
<label class="toggle"><input type="checkbox" id="showExtensions" checked><span class="slider"></span></label>
</div>
<div class="toggle-row">
<div>
<div class="toggle-label">Show hidden files in Explorer</div>
<div class="toggle-desc">Display hidden files and folders in Explorer</div>
</div>
<label class="toggle"><input type="checkbox" id="showHidden"><span class="slider"></span></label>
</div>
<div class="toggle-row">
<div>
<div class="toggle-label">Disable Hibernation</div>
<div class="toggle-desc">Disable hiberfil.sys to reclaim disk space</div>
</div>
<label class="toggle"><input type="checkbox" id="disableHibernation"><span class="slider"></span></label>
</div>
<div class="toggle-row">
<div>
<div class="toggle-label">Set High Performance power plan</div>
<div class="toggle-desc">Apply High Performance power scheme</div>
</div>
<label class="toggle"><input type="checkbox" id="highPerformance"><span class="slider"></span></label>
</div>
</div>
<div style="margin-top:16px">
<div class="section-title">Driver Paths</div>
<div class="info-box">ℹ️ Enter UNC or local paths to driver folders that setup should scan. These must be accessible during Windows PE.</div>
<div class="tag-input-container" onclick="this.querySelector('input').focus()">
<div id="driverTags"></div>
<input class="tag-input" id="driverTagInput" placeholder="e.g. X:\Drivers\NIC — press Enter to add" onkeydown="addDriverTag(event)">
</div>
</div>
</div>
</div>
<!-- STEP 9: Review & Generate -->
<div class="step-section section-hidden" id="step-8">
<div class="card">
<h2>Review & Generate XML</h2>
<p class="subtitle">Review your configuration and generate the autounattend.xml file.</p>
<div id="reviewSummary"></div>
</div>
<div class="card" id="xmlOutputCard" style="display:none">
<h2>Generated autounattend.xml</h2>
<p class="subtitle">Copy this content into a file named <code>autounattend.xml</code> and place it in the root of your installation media.</p>
<pre class="xml-output" id="xmlOutput"></pre>
<div class="output-actions">
<button class="btn btn-primary btn-lg" onclick="downloadXML()">⬇ Download autounattend.xml</button>
<button class="btn btn-secondary" onclick="copyXML()">📋 Copy to Clipboard</button>
</div>
</div>
<div class="nav-buttons">
<button class="btn btn-secondary btn-lg" onclick="prevStep()">← Back</button>
<button class="btn btn-primary btn-lg" onclick="generateXML()">⚡ Generate XML</button>
</div>
</div>
<!-- Nav buttons (all steps except last) -->
<div id="navButtons" class="nav-buttons">
<button class="btn btn-secondary" onclick="prevStep()" id="prevBtn" style="visibility:hidden">← Back</button>
<button class="btn btn-primary" onclick="nextStep()" id="nextBtn">Next →</button>
</div>
</div>
<div class="copy-feedback" id="copyFeedback">Copied to clipboard!</div>
<script>
const STEPS = [
'Edition', 'Language', 'Disk', 'Accounts', 'Network',
'OOBE & Privacy', 'Commands', 'Advanced', 'Generate'
];
let currentStep = 0;
let localUsers = [];
let specializeCommands = [];
let firstLogonCommands = [];
let driverPaths = [];
let customPartitions = [
{ type: 'EFI', size: 260, fs: 'FAT32', label: 'System' },
{ type: 'MSR', size: 16, fs: '', label: 'MSR' },
{ type: 'Windows', size: 0, fs: 'NTFS', label: 'Windows' },
{ type: 'Recovery', size: 500, fs: 'NTFS', label: 'Recovery' }
];
const EDITIONS = {
win11: [
{ value: 'Windows 11 Home', label: 'Home' },
{ value: 'Windows 11 Pro', label: 'Pro' },
{ value: 'Windows 11 Pro Education', label: 'Pro Education' },
{ value: 'Windows 11 Education', label: 'Education' },
{ value: 'Windows 11 Enterprise', label: 'Enterprise' },
{ value: 'Windows 11 Enterprise LTSC 2024', label: 'Enterprise LTSC 2024' },