-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.xml
1896 lines (914 loc) · 474 KB
/
search.xml
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
<?xml version="1.0" encoding="utf-8"?>
<search>
<entry>
<title>Hyper-V 安装 macOS</title>
<link href="/zh-CN/tutorial/VM/Hyper-V/vmmacOS-hv/"/>
<url>/zh-CN/tutorial/VM/Hyper-V/vmmacOS-hv/</url>
<content type="html"><![CDATA[<h2 id="其它文章"><a href="#其它文章" class="headerlink" title="其它文章"></a>其它文章</h2><p>VMware Workstation:<a href="/zh-CN/tutorial/VM/VMware/vmmacOS-ws/" title="Workstation 安装 macOS">Workstation 安装 macOS</a><br>VirtualBox:<a href="/zh-CN/tutorial/VM/VirtualBox/vmmacOS-vb/" title="VirtualBox 安装 macOS">VirtualBox 安装 macOS</a></p><p>⚠ 施工 ⚠</p>]]></content>
<categories>
<category> 教程 </category>
<category> macOS </category>
<category> 虚拟机 </category>
<category> Hyper-V </category>
</categories>
<tags>
<tag> macOS </tag>
<tag> Hyper-V </tag>
</tags>
</entry>
<entry>
<title>为你的电脑关闭 Device/Credential Guard</title>
<link href="/zh-CN/tutorial/Windows/disable-Device-Credential-Guard/"/>
<url>/zh-CN/tutorial/Windows/disable-Device-Credential-Guard/</url>
<content type="html"><![CDATA[<p>自 Windows 11 24H2 起,Microsoft 为所有全新安装和升级的 Windows 11 默认开启了 Device/Credential Guard,这可能会影响 VMware Workstation 及其它虚拟机在内的虚拟化产品。但是 Microsoft 提供了一个 <code>Device Guard and Credential Guard hardware readiness tool</code> 来关闭 Device/Credential Guard</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/webAssets@main/Pics/disable-Device-Credential-Guard/warning.png"><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/webAssets@main/Pics/disable-Device-Credential-Guard/notice.png"></p><p>从 <a href="https://www.microsoft.com/en-us/download/details.aspx?id=53337">Microsoft 下载中心</a>下载 <code>Device Guard and Credential Guard hardware readiness tool</code>,并解压至空白文件夹</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/webAssets@main/Pics/disable-Device-Credential-Guard/unzip.png"></p><p>接着,右键开始菜单,并选择 <code>终端管理员</code>(Windows 11)或<code>Windows PowerShell(管理员)</code>(Windows 10)</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/webAssets@main/Pics/disable-Device-Credential-Guard/startmenu.png"></p><p>需要确保终端运行的 Shell 为 <code>PowerShell</code></p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/webAssets@main/Pics/disable-Device-Credential-Guard/run-as-pwsh.png"></p><p>打开解压的文件夹,点击上方的<code>地址栏</code>,并右键选择<code>复制</code></p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/webAssets@main/Pics/disable-Device-Credential-Guard/copy-as-path.png"></p><p>随后,先在终端或 PowerShell 中输入 <code>cd</code>,按下空格后粘贴复制到剪切板的路径,并按下<kbd>回车</kbd></p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/webAssets@main/Pics/disable-Device-Credential-Guard/paste-path.png"></p><p>切换目录后再输入以下代码并按下<kbd>回车</kbd></p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">.\DG_Readiness_Tool_v3.<span class="number">6</span>.ps1 <span class="literal">-Disable</span></span><br></pre></td></tr></table></figure><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/webAssets@main/Pics/disable-Device-Credential-Guard/run.png"></p><p>完成后关闭终端或 PowerShell,并保存所有打开的文件后,重启电脑</p><p>重启后 Windows 会进入 <code>Credential Guard Opt-out Tool</code>,此时按下 <kbd>Windows 徽标键</kbd>或 <kbd>F3</kbd> 后再按下<kbd>回车</kbd>即可继续</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/webAssets@main/Pics/disable-Device-Credential-Guard/Credential-Guard-Opt-out-Tool.png"></p><p>完成后电脑会再次重启,进入 Windows 后即可看到 Device/Credential Guard 已关闭</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/webAssets@main/Pics/disable-Device-Credential-Guard/disabled.png"></p>]]></content>
<categories>
<category> 教程 </category>
<category> Windows </category>
</categories>
<tags>
<tag> Windows </tag>
</tags>
</entry>
<entry>
<title>在 NUC8i5BEH 安装黑苹果与 Windows</title>
<link href="/zh-CN/tutorial/macOS/install-macOS-and-Windows-on-NUC8/"/>
<url>/zh-CN/tutorial/macOS/install-macOS-and-Windows-on-NUC8/</url>
<content type="html"><![CDATA[<h2 id="硬件"><a href="#硬件" class="headerlink" title="硬件"></a>硬件</h2><ul><li>Intel NUC8i5BEH</li><li>SK hynix BC501 500 GB<a href="https://heipg.cn/tutorial/diy-hackintosh-2020.html">(海力士 SK Hynix PC601/PC611/PC711/BC501:主要见于联想和戴尔笔记本,部分批次无法安装)</a></li><li>Kingston KHX2666C15S4/8G * 2</li><li>BCM94360CS2(SD 卡通道硬改)</li></ul><h2 id="使用情况"><a href="#使用情况" class="headerlink" title="使用情况"></a>使用情况</h2><p>不太全,我只讲了我目前用的,未提到的(比如连接显示器)则未尝试<br>正常:</p><ul><li>前后所有 USB 口</li><li>后置 ThunderBolt 3 传输文件</li><li>HDMI 输出图像(物理 1920 x 1080)</li><li>RJ45 网口</li><li>iCloud、App Store </li><li>Wi-Fi、蓝牙</li><li>自动休眠</li><li>睡眠唤醒</li><li>无线鼠标在 BIOS、OpenCore 引导界面使用</li><li>AirDrop</li></ul><p>不正常:</p><ul><li>系统 OTA 更新(已知关闭安全启动引起的问题)</li><li>从 Windows 输出源切换到 macOS 时,有几率雪花屏,重新切换就正常</li><li>开机时不插入 HDMI 无法进入 OpenCore 引导界面等</li></ul><h2 id="材料(两种安装方式二选一)"><a href="#材料(两种安装方式二选一)" class="headerlink" title="材料(两种安装方式二选一)"></a>材料(两种安装方式二选一)</h2><p>你可以直接从 <a href="https://gbcs6-my.sharepoint.com/:f:/g/personal/gucats_gbcs6_onmicrosoft_com/EkkZgNLKf51IgYBJPKySMfoBboWi7Wbb-y8Ld7X5oYu3nQ?e=fqpKS7">OneDrive</a> 下载懒人包(不附带镜像,且工具版本不一定最新)</p><details><summary>EFI 支持的 macOS 版本</summary><p>macOS Mojave >>> 10.14<br>macOS Catalina >>> 10.15<br>macOS Big Sur >>> 11.0<br>macOS Monterey >>> 12.0<br>macOS Ventura >>> 13.0<br>macOS Sonoma >>> 14.0</p></details><h3 id="在线安装"><a href="#在线安装" class="headerlink" title="在线安装"></a>在线安装</h3><p><a href="https://github.com/Jiangmenghao/NUC8i5BEH">EFI</a>(如果你正在尝试安装 macOS Sonoma,请使用 <a href="https://github.com/Jiangmenghao/NUC8i5BEH/tree/sonoma-only">sonoma-only</a> 分支的 EFI)<br>如果你正在尝试安装 macOS 14.5 + 的版本,请使用新版的 <a href="https://heipg.lanzoue.com/inr482456lgf"><code>IOSkywalkFamily.kext</code> 和 <code>IO80211FamilyLegacy.kext</code>(密码:he9c)</a>,删除 <code>EFI</code> > <code>OC</code> > <code>Kexts</code> 下对应文件后再复制<sup><a href="#ref2">[2]</a></sup><br>Windows 镜像文件<br>EasyUEFI<br>PE(<a href="https://www.wepe.com.cn/">微 PE</a> 或 <a href="https://firpe.cn/page-247">FirPE</a> 都可以)<br><a href="https://github.com/acidanthera/OpenCorePkg/releases">OpenCorePkg</a><br><a href="https://www.python.org/">Python</a><br><a href="https://github.com/benbaker76/Hackintool/releases">Hackintool</a><br><a href="https://github.com/dortania/OpenCore-Legacy-Patcher/releases">OpenCore Legacy Patcher</a>(如果要安装在 macOS 14.3 + 或者 macOS 15.0 Beta 请使用 <a href="https://github.com/dortania/OpenCore-Legacy-Patcher/actions">Nightly 构建</a>,随意点击一个构建后在底部点击下载 <code>OpenCore-Patcher.pkg</code>)<br><a href="https://github.com/ic005k/OCAuxiliaryTools/releases">OCAuxiliaryTools</a></p><h3 id="离线安装"><a href="#离线安装" class="headerlink" title="离线安装"></a>离线安装</h3><p><a href="https://github.com/Jiangmenghao/NUC8i5BEH">EFI</a>(如果你正在尝试安装 macOS Sonoma,请使用 <a href="https://github.com/Jiangmenghao/NUC8i5BEH/tree/sonoma-only">sonoma-only</a> 分支的 EFI)<br>如果你正在尝试安装 macOS 14.5 + 的版本,请使用新版的 <a href="https://heipg.lanzoue.com/inr482456lgf"><code>IOSkywalkFamily.kext</code> 和 <code>IO80211FamilyLegacy.kext</code>(密码:he9c)</a>,删除 <code>EFI</code> > <code>OC</code> > <code>Kexts</code> 下对应文件后再复制<sup><a href="#ref2">[2]</a></sup><br>Windows 镜像文件<br>EasyUEFI<br>PE(<a href="https://www.wepe.com.cn/">微 PE</a> 或 <a href="https://firpe.cn/page-247">FirPE</a> 都可以)<br>macOS 镜像文件<br><a href="https://github.com/balena-io/etcher/releases">balenaEtcher</a><br><a href="https://github.com/benbaker76/Hackintool/releases">Hackintool</a><br><a href="https://github.com/dortania/OpenCore-Legacy-Patcher/releases">OpenCore Legacy Patcher</a>(如果要安装在 macOS 14.3 + 或者 macOS 15.0 Beta 请使用 <a href="https://github.com/dortania/OpenCore-Legacy-Patcher/actions">Nightly 构建</a>,随意点击一个构建后在底部点击下载 <code>OpenCore-Patcher.pkg</code>)<br><a href="https://github.com/ic005k/OCAuxiliaryTools/releases">OCAuxiliaryTools</a></p><h2 id="设置-BIOS"><a href="#设置-BIOS" class="headerlink" title="设置 BIOS"></a>设置 BIOS</h2><p>Boot 类:<br>Boot Priority > Legacy Boot Priority > Legacy Boot: <code>关闭</code><br>Boot Configuration:</p><ul><li>UEFI Boot > Fast Boot: <code>关闭</code></li><li>UEFI Boot > Boot USB Devices First: <code>开启</code></li><li>UEFI Boot > Boot Network Devices Last: <code>开启</code></li><li>Boot Devices > Network Boot: <code>Disable</code></li></ul><p>Boot > Secure Boot > Secure Boot: <code>关闭</code><br>其它类:<br>Security > Security Features > Inter VT for directed I/VO (VT-d): <code>关闭</code><br>Power > Secondary Power Settings > Wake on LAN from S4/S5: <code>Stay Off</code><br>使用白苹果拆机网卡必做:<br>Devices > Onboard Device:</p><ul><li>WLAN: <code>关闭</code></li><li>Bluetooth: <code>关闭</code></li><li>SD Card: <code>Read/Write</code></li></ul><h2 id="准备工作"><a href="#准备工作" class="headerlink" title="准备工作"></a>准备工作</h2><h3 id="在线安装-macOS"><a href="#在线安装-macOS" class="headerlink" title="在线安装 macOS"></a>在线安装 macOS</h3><h4 id="创建恢复镜像"><a href="#创建恢复镜像" class="headerlink" title="创建恢复镜像"></a>创建恢复镜像</h4><p>打开 OpenCorePkg 压缩包,并解压,然后在 <code>\Utilities\macrecovery</code> 下按住 Shift 不放并单击右键,选择<code>在此处打开 PowerShell 窗口</code>(安装终端的 Windows 可以直接右键选择<code>在终端中打开</code>)<br>随后,使用以下任一命令下载 MacRecovery 镜像</p><figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br></pre></td><td class="code"><pre><span class="line">Mojave</span><br><span class="line">python macrecovery.py -b Mac-7BA5B2DFE22DDD8C -m 00000000000KXPG00 download</span><br><span class="line"></span><br><span class="line">Catalina</span><br><span class="line">python macrecovery.py -b Mac-CFF7D910A743CAAF -m 00000000000PHCD00 download</span><br><span class="line">python macrecovery.py -b Mac-00BE6ED71E35EB86 -m <span class="number">00000000000000000</span> download</span><br><span class="line"></span><br><span class="line">Big Sur</span><br><span class="line">python macrecovery.py -b Mac-2BD1B31983FE1663 -m <span class="number">00000000000000000</span> download</span><br><span class="line"></span><br><span class="line">Monterey</span><br><span class="line">python macrecovery.py -b Mac-E43C1C25D4880AD6 -m <span class="number">00000000000000000</span> download</span><br><span class="line"></span><br><span class="line">Ventura</span><br><span class="line">python macrecovery.py -b Mac-B4831CEBD52A0C4C -m <span class="number">00000000000000000</span> download</span><br><span class="line"></span><br><span class="line">Diagnostics</span><br><span class="line">python macrecovery.py -b Mac-7BA5B2D9E42DDD94 -m <span class="number">00000000000000000</span> -diag download</span><br><span class="line">python macrecovery.py -b Mac-7BA5B2D9E42DDD94 -m 00000000000JG3600 -diag download</span><br><span class="line">python macrecovery.py -b Mac-7BA5B2D9E42DDD94 <real MLB> -diag</span><br><span class="line"></span><br><span class="line">Default version</span><br><span class="line">python macrecovery.py -b Mac-7BA5B2D9E42DDD94 -m 00000000000JG3600 download</span><br><span class="line">(oldest)</span><br><span class="line">python macrecovery.py -b Mac-7BA5B2D9E42DDD94 -m <real MLB> -os default download</span><br><span class="line">(newer)</span><br><span class="line"></span><br><span class="line">Latest version</span><br><span class="line">python macrecovery.py -b Mac-7BA5B2D9E42DDD94 -m <span class="number">00000000000000000</span> -os latest download</span><br><span class="line">python macrecovery.py -b Mac-7BA5B2D9E42DDD94 -m <real MLB> -os latest download</span><br><span class="line"></span><br><span class="line">更多下载可参考 GitHub:https://github.com/acidanthera/OpenCorePkg/blob/master/Utilities/macrecovery/recovery_urls.txt</span><br></pre></td></tr></table></figure><p>下载好的镜像在 <code>com.apple.recovery.boot</code> 文件夹下,名为 <code>BaseSystem.dmg</code></p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/webAssets@main/Pics/install-macOS-and-Windows-on-NUC8/BaseSystem.png" alt="BaseSystem.dmg"></p><p>准备一个容量大于 4 GB 的 U 盘,并格式化为 FAT32(如果你的总容量大于 32 GB,可以使用别的工具格式化为 FAT32)<br>亦或者是将某个分区分出 4 GB 后再将其格式化为 FAT32,其它不变<br>然后,将 <code>com.apple.recovery.boot</code> 文件夹与 <code>EFI</code> 文件夹复制到 U 盘根目录,结构目录如下:</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">com.apple.recovery.boot</span><br><span class="line">├── BaseSystem.chunklist</span><br><span class="line">├── BaseSystem.dmg</span><br><span class="line">EFI</span><br><span class="line">├── BOOT</span><br><span class="line">├── OC</span><br><span class="line">├── readme.txt</span><br></pre></td></tr></table></figure><p>完成后,将 U 盘插入到 NUC8i5BEH,并开始安装 macOS</p><h3 id="离线安装-macOS"><a href="#离线安装-macOS" class="headerlink" title="离线安装 macOS"></a>离线安装 macOS</h3><p>打开 <code>balenaEtcher</code>,并分别选择你的 DMG 与 U 盘,然后点击 <code>Flash!</code> 之后开始写入到 U 盘</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/webAssets@main/Pics/install-macOS-and-Windows-on-NUC8/balenaEtcher.png" alt="balenaEtcher"></p><h2 id="安装-macOS"><a href="#安装-macOS" class="headerlink" title="安装 macOS"></a>安装 macOS</h2><p>将 U 盘插入到 NUC8i5BEH,按下电源键并立即持续点按 <kbd>F10</kbd>,进入 BIOS 启动菜单,选择 UEFI 开头的 U 盘,按下回车并立即按下 <kbd>ESC</kbd>,出现 OpenCore 引导菜单后,按<kbd>空格</kbd>,出现隐藏引导项 <code>Install macOS</code> 或者黄色 macOS 的偏好设置图标,选中它并回车进入(也可能叫其它名称,比如使用在线安装且是未命名的 U 盘会显示为 <code>NO NAME (DMG)</code>,使用离线安装的会显示为 <code>Install macOS xxx</code>)</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/webAssets@main/Pics/install-macOS-and-Windows-on-NUC8/OpenCoreBoot.png" alt="OpenCoreBoot"></p><p>进入 Recovery 模式后,出现 Apple Logo 进度条页面,进入 Recovery 界面</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/webAssets@main/Pics/install-macOS-and-Windows-on-NUC8/loading.png" alt="加载中"></p><h3 id="抹掉磁盘"><a href="#抹掉磁盘" class="headerlink" title="抹掉磁盘"></a>抹掉磁盘</h3><p>选择<code>磁盘工具</code>,并点击继续</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/webAssets@main/Pics/install-macOS-and-Windows-on-NUC8/disk-utility.png" alt="磁盘工具"></p><p>在侧栏选择你要安装的磁盘,然后从<code>磁盘工具</code>顶部点击<code>抹掉</code>,名称随意,格式选择 <code>APFS</code>(如果有分区类型请选择 <code>GUID</code>),最后点击<code>抹掉</code>即可</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/webAssets@main/Pics/install-macOS-and-Windows-on-NUC8/erase.png" alt="抹掉磁盘"></p><h3 id="开始安装"><a href="#开始安装" class="headerlink" title="开始安装"></a>开始安装</h3><p>退出<code>磁盘工具</code>,选择<code>安装 macOS</code>,并点击继续</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/webAssets@main/Pics/install-macOS-and-Windows-on-NUC8/install-macOS.png" alt="开始安装"></p><p>一直下一步,直到选择磁盘这一步,选择好你要安装的分区,然后点击<code>继续</code></p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/webAssets@main/Pics/install-macOS-and-Windows-on-NUC8/select-disk.png" alt="选择磁盘"></p><p>等待约半个小时,macOS 安装器会自动安装 macOS 并重启,随后再等待半个小时</p><h3 id="部署"><a href="#部署" class="headerlink" title="部署"></a>部署</h3><p>该步骤没什么特别之处,继续即可<br><strong>请注意:再次过程中不要登录到 iCloud 或 Apple Account/Apple ID 等有关 Apple 的任何服务</strong></p><h2 id="完善"><a href="#完善" class="headerlink" title="完善"></a>完善</h2><h3 id="迁移-EFI"><a href="#迁移-EFI" class="headerlink" title="迁移 EFI"></a>迁移 EFI</h3><p>安装并打开 <code>Hackintool</code>(<a href="/zh-CN/tutorial/macOS/macOSswit/" title="如果提示“无法打开"xxx",因为无法验证开发者”,请查看解决方案">如果提示“无法打开"xxx",因为无法验证开发者”,请查看解决方案</a>)<br>随后,点击<code>磁盘</code>,然后点击你安装 macOS 磁盘后面的倒三角,输入密码后即可挂载 EFI 分区</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/webAssets@main/Pics/install-macOS-and-Windows-on-NUC8/mount-EFI.png" alt="挂载 EFI"></p><p>从<code>访达</code>中访问挂载的 EFI 分区(可能名为 <code>Untitled</code>),并将根目录下的 EFI 文件夹<strong>删除</strong>(如果有需要可以备份)<br>随后,将自己的 EFI 文件夹拷贝进去</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/webAssets@main/Pics/install-macOS-and-Windows-on-NUC8/EFI.png" alt="EFI"></p><h3 id="洗白-注入三码"><a href="#洗白-注入三码" class="headerlink" title="洗白/注入三码"></a>洗白/注入三码</h3><p>安装 <code>OCAuxiliaryTools</code>(<a href="/zh-CN/tutorial/macOS/macOSswit/" title="如果提示“无法打开"xxx",因为无法验证开发者”,请查看解决方案">如果提示“无法打开"xxx",因为无法验证开发者”,请查看解决方案</a>),你还可以使用别的编辑器<br>点开 <code>EFI</code> > <code>OC</code> > <code>config.plist</code>(如果安装了 OCAuxiliaryTools 会默认使用该软件打开)<br>如果安装 macOS 与 Windows 双系统或许需要将 <code>config.plist</code> 改名 <code>config.plist.bak</code>,然后将 <code>config-双系统.plist</code> 改名 <code>config.plist</code>(或许吧,没有试过,如果原来的 <code>config.plist</code> 能用就别动)</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/webAssets@main/Pics/install-macOS-and-Windows-on-NUC8/config.plist.png" alt="config.plist"></p><p>点开 <code>Pl</code> > <code>Generic 通用</code>,同时在 <code>Hackintool</code> 也点开 <code>系统</code> > <code>系列号生成器</code> > <code>刷新</code>(确保设备型号为 <code>Macmini8,1</code>,按下刷新按钮选择你觉得满意的序列号)<br>然后在<a href="https://checkcoverage.apple.com/">查看设备的保障信息 - Apple 支持</a>中输入<code>序列号</code>并验证,如果查询不到则代表可用<br>最后按照如下对应的顺序填入三码</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">序列号 >>> SystemSerialNumber</span><br><span class="line">主板序列号 >>> MLB</span><br><span class="line">SmUUID >>> SystemUUID</span><br></pre></td></tr></table></figure><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/webAssets@main/Pics/install-macOS-and-Windows-on-NUC8/UUID.png" alt="注入三码"></p><details><summary>关于注入三码</summary><p>有一种传奇的说法是,如果你的 Apple Account 登录过的 Apple 设备过少,则 Apple Account 容易被拉黑<br>这就是为什么有人序列号乱填都能用而有的人精心挑选的三码还是被拉黑</p></details><p>注入三码,保存并重启后,即可使用 Apple 服务(如果你不急可以所有操作后再作登录)</p><h3 id="修复睡眠"><a href="#修复睡眠" class="headerlink" title="修复睡眠"></a>修复睡眠</h3><p>在 <code>Hackintool</code> 点击 <code>电源</code>,接着点击下方的<code>修复深度睡眠预留空间</code>,完成后圈出的部分会从红色变为绿色<br>如果发现变回红色了,重新点击<code>修复深度睡眠预留空间</code>即可</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/webAssets@main/Pics/install-macOS-and-Windows-on-NUC8/repair-sleep.png" alt="修复睡眠"></p><h3 id="修补无线网卡"><a href="#修补无线网卡" class="headerlink" title="修补无线网卡"></a>修补无线网卡</h3><p><strong>完成以上所有操作后,请保存 <code>config.plist</code>,并重启 macOS</strong></p><p><strong>修补前请注意 BIOS 设置是否为:<code>Devices</code> > <code>Onboard Device</code> > <code>SD Card</code>: <code>Read/Write</code>,如果不是请修改为这样的,否则会把 SD 卡通道禁用了</strong><br>安装并打开 <code>OpenCore Legacy Patcher</code>(<a href="/zh-CN/tutorial/macOS/macOSswit/" title="如果提示“无法打开"xxx",因为无法验证开发者”,请查看解决方案">如果提示“无法打开"xxx",因为无法验证开发者”,请查看解决方案</a>)<br>点击 <code>Post-Install Root Patch</code>,等待查找可用的修补</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/webAssets@main/Pics/install-macOS-and-Windows-on-NUC8/OCLP.png" alt="Post-Install Root Patch"></p><p>找到可用的修补之后,点击 <code>Start Root Patch</code>(如果没有亮起可能需要检查 **BIOS 设置是否为:<code>Devices</code> > <code>Onboard Device</code> > <code>SD Card</code>: <code>Read/Write</code>**,或者未插紧,或网卡损坏)</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/webAssets@main/Pics/install-macOS-and-Windows-on-NUC8/patch-wireless.png" alt="修补 Wi-Fi"></p><p>完成后点击 <code>Reboot</code> 来重启</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/webAssets@main/Pics/install-macOS-and-Windows-on-NUC8/OCLP-reboot.png" alt="重启"></p><p>重启后即可看到 Wi-Fi 正常使用<br>按住 <kbd>Option (⌥)</kbd>,相当于 Windows 键盘的 <kbd>Alt</kbd>(左),再点击顶部菜单栏的 <code>Wi-Fi</code> 即可看到详细信息(<code>国家/地区</code>因为使用了 <code>-brcmfxbeta brcmfx-country=#a</code>(macOS 14.0 +) 或 <code>brcmfx-country=#a</code>(macOS 13.0 -) 参数导致无法显示,为正常现象)</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/webAssets@main/Pics/install-macOS-and-Windows-on-NUC8/Wi-Fi.png" alt="Wi-Fi"></p><h2 id="安装-Windows"><a href="#安装-Windows" class="headerlink" title="安装 Windows"></a>安装 Windows</h2><p>施工中.jpg</p><h2 id="参考文献"><a href="#参考文献" class="headerlink" title="参考文献"></a>参考文献</h2><ol><li><a name = "ref1" href="https://www.cnblogs.com/yunzimo/p/17766264.html">NUC 双系统安装详细教程 - 云子墨 - 博客园</a></li><li><a name = "ref2" href="https://heipg.cn/tutorial/patch-brcm-wireless-card-macos-sonoma.html">修复 macOS Sonoma 更新后博通无线网卡无法使用的临时解决方法 - 黑苹果星球</a></li></ol>]]></content>
<categories>
<category> 教程 </category>
<category> macOS </category>
<category> Windows </category>
</categories>
<tags>
<tag> Windows </tag>
<tag> macOS </tag>
</tags>
</entry>
<entry>
<title>macOS 虚拟机机型模拟</title>
<link href="/zh-CN/tutorial/VM/VMware/macOSVMModelEmulation/"/>
<url>/zh-CN/tutorial/VM/VMware/macOSVMModelEmulation/</url>
<content type="html"><![CDATA[<p>部分该工具需要在 macOS 下进行,你可以先安装一个 macOS 10.13.6 或其它版本的 macOS 以运行<br>在填入前,请先在<a href="https://checkcoverage.apple.com/">查看设备的保障信息</a> 中查找是否能正确识别出 <code>序列号</code>的值<br>如果可以,请刷新生成的码,如果无法查询,则可以正常使用</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/macOSVMModelEmulation/macOSVMModelEmulation1.png"></p><p>添加模拟前应关闭 VMware Workstation,<strong>然后,将 vmx 文件内所有包含 <code>board-id.reflectHost = "TRUE"</code>, <code>hw.model.reflectHost = "TRUE"</code>, <code>serialNumber.reflectHost = "TRUE"</code> 之类的文本删掉,否则会出错</strong></p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/macOSVMModelEmulation/macOSVMModelEmulation2.png"></p><p>附:Mac 机型大全<br><a href="https://support.apple.com/zh-cn/103257">MacBook</a><br><a href="https://support.apple.com/zh-cn/102869">MacBook Air</a><br><a href="https://support.apple.com/zh-cn/HT201300">MacBook Pro</a><br><a href="https://support.apple.com/zh-cn/108054">iMac(Pro)</a><br><a href="https://support.apple.com/zh-cn/102887">Mac Pro</a><br><a href="https://support.apple.com/zh-cn/102852">Mac Mini</a><br><a href="https://support.apple.com/zh-cn/102231">Mac Studio</a></p><h2 id="Hackintool"><a href="#Hackintool" class="headerlink" title="Hackintool"></a>Hackintool</h2><p>从 <a href="https://github.com/benbaker76/Hackintool/releases">GitHub</a> 或 <a href="https://gbcs6-my.sharepoint.com/:f:/g/personal/gucats_gbcs6_onmicrosoft_com/EhZnBTaY1qlIlxKwPO3ekmYBU8klFLaQcC5TeEedSatNXg?e=fu8JoY">OneDrive(不一定最新)</a> 中下载 Hackintool<br>双击 .zip 文件后会自动解压出 Hackintool.app,双击运行即可</p><p>打开后点击“系统” >>> “序列号生成器”,然后在“设备”里选择你想要模拟的机型</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/macOSVMModelEmulation/macOSVMModelEmulation-Hackintool1.png"></p><p>模板如下:</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">board-id.reflectHost = "FALSE"</span><br><span class="line">board-id = "Mac-<值>"</span><br><span class="line">hw.model.reflectHost = "FALSE"</span><br><span class="line">hw.model = "<值>"</span><br><span class="line">serialNumber.reflectHost = "FALSE"</span><br><span class="line">serialNumber = "<值>"</span><br><span class="line">smbios.reflectHost = "FALSE"</span><br><span class="line">uuid.action = "keep"</span><br><span class="line">smc.version = "0"</span><br></pre></td></tr></table></figure><p>其中,“<值>” 是需要修改的地方(包括括号)<br>而在 Hackintool 中对应的值如下:</p><figure class="highlight text"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">序列号 >>> board-id</span><br><span class="line">主板序列号 >>> serialNumber</span><br><span class="line">型号标识符 >>> hw.model</span><br></pre></td></tr></table></figure><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/macOSVMModelEmulation/macOSVMModelEmulation-Hackintool2.png"></p><p>例如:我的序列号为 <code>W86368Z7U9B</code>,主板序列号为 <code>W863502J9V3GV</code>,型号标识符为 <code>MacBook1,1</code><br>则我的代码应该为</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">board-id.reflectHost = "FALSE"</span><br><span class="line">board-id = "Mac-W86368Z7U9B"</span><br><span class="line">hw.model.reflectHost = "FALSE"</span><br><span class="line">hw.model = "MacBook1,1"</span><br><span class="line">serialNumber.reflectHost = "FALSE"</span><br><span class="line">serialNumber = "W863502J9V3GV"</span><br><span class="line">smbios.reflectHost = "FALSE"</span><br><span class="line">uuid.action = "keep"</span><br><span class="line">smc.version = "0"</span><br></pre></td></tr></table></figure><p>填入前应先在官网校验,若成功,请点击右下角的刷新按钮以获取新的码</p><h2 id="OpenCore-Configurator"><a href="#OpenCore-Configurator" class="headerlink" title="OpenCore Configurator"></a>OpenCore Configurator</h2><p>从 <a href="https://mackie100projects.altervista.org/category/opencore-configurator-changelog">mackie100 projects</a> 或 <a href="https://gbcs6-my.sharepoint.com/:f:/g/personal/gucats_gbcs6_onmicrosoft_com/EhZnBTaY1qlIlxKwPO3ekmYBU8klFLaQcC5TeEedSatNXg?e=fu8JoY">OneDrive(不一定最新)</a> 中下载 OpenCore Configurator<br>并将 OpenCore Configurator.app 复制到 <code>/Applications</code>(应用程序文件夹)内</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/macOSVMModelEmulation/macOSVMModelEmulation3.png"></p><p>打开 OpenCore Configurator 后在 Finder 点击 OpenCore Configurator >> 偏好设置…<br>将语言改为中文,网络资源地址改为 GITEE 或 CSDN(如果你访问 GitHub 很快可以不用改地址)</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/macOSVMModelEmulation/macOSVMModelEmulation-OCC1.png"></p><p>点开“PlatformInfo-机型平台设置”,随后在下面选择你要模拟的机型</p><p>模板如下:</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">board-id.reflectHost = "FALSE"</span><br><span class="line">board-id = "Mac-<值>"</span><br><span class="line">hw.model.reflectHost = "FALSE"</span><br><span class="line">hw.model = "<值>"</span><br><span class="line">serialNumber.reflectHost = "FALSE"</span><br><span class="line">serialNumber = "<值>"</span><br><span class="line">smbios.reflectHost = "FALSE"</span><br><span class="line">uuid.action = "keep"</span><br><span class="line">smc.version = "0"</span><br></pre></td></tr></table></figure><p>其中,“<值>” 是需要修改的地方(包括括号)<br>而在 OpenCore Configurator 中对应的值如下:</p><figure class="highlight text"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">产品名称 >>> hw.model</span><br><span class="line">System 的 Serial Number >>> board-id</span><br><span class="line">Board 的 Serial Number >>> serialNumber</span><br></pre></td></tr></table></figure><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/macOSVMModelEmulation/macOSVMModelEmulation-OCC2.png"></p><p>例如:我的产品名称为 <code>MacBook1,1</code>,System 的 Serial Number 为 <code>W8650AYRU9B</code>,Board 的 Serial Number 为 <code>W864905H1V3GW</code><br>则我的代码应该为</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">board-id.reflectHost = "FALSE"</span><br><span class="line">board-id = "Mac-W8650AYRU9B"</span><br><span class="line">hw.model.reflectHost = "FALSE"</span><br><span class="line">hw.model = "MacBook1,1"</span><br><span class="line">serialNumber.reflectHost = "FALSE"</span><br><span class="line">serialNumber = "W864905H1V3GW"</span><br><span class="line">smbios.reflectHost = "FALSE"</span><br><span class="line">uuid.action = "keep"</span><br><span class="line">smc.version = "0"</span><br></pre></td></tr></table></figure><p>填入前应先在官网校验,若成功,请点击下方的机型选择以重新获取数据</p><h2 id="Clover-Configurator"><a href="#Clover-Configurator" class="headerlink" title="Clover Configurator"></a>Clover Configurator</h2><p>从 <a href="https://mackie100projects.altervista.org/category/clover-configurator-changelog">mackie100 projects</a> 或 <a href="https://gbcs6-my.sharepoint.com/:f:/g/personal/gucats_gbcs6_onmicrosoft_com/EhZnBTaY1qlIlxKwPO3ekmYBU8klFLaQcC5TeEedSatNXg?e=fu8JoY">OneDrive(不一定最新)</a> 中下载 Clover Configurator</p><p>并将 Clover Configurator.app 复制到 <code>/Applications</code>(应用程序文件夹)内</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/macOSVMModelEmulation/macOSVMModelEmulation3.png"></p><p>打开 Clover Configurator 后在 Finder 点击 Clover Configurator >> 首选项…<br>将语言改为中文</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/macOSVMModelEmulation/macOSVMModelEmulation-CCG1.png"></p><p>点开“机型设置”,随后在旁边的机型选择选择你要模拟的机型</p><p>如果无法点开,请先关闭 Clover Configurator,然后使用任意代理软件连接后再尝试重新打开 Clover Configurator 以获取机型</p><p>模板如下:</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">board-id.reflectHost = "FALSE"</span><br><span class="line">board-id = "Mac-<值>"</span><br><span class="line">hw.model.reflectHost = "FALSE"</span><br><span class="line">hw.model = "<值>"</span><br><span class="line">serialNumber.reflectHost = "FALSE"</span><br><span class="line">serialNumber = "<值>"</span><br><span class="line">smbios.reflectHost = "FALSE"</span><br><span class="line">uuid.action = "keep"</span><br><span class="line">smc.version = "0"</span><br></pre></td></tr></table></figure><p>其中,“<值>” 是需要修改的地方(包括括号)<br>而在 OpenCore Configurator 中对应的值如下:</p><figure class="highlight text"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">Product Name >>> hw.model</span><br><span class="line">Board Serial Number >>> serialNumber</span><br><span class="line">System 的序列号 >>> board-id</span><br></pre></td></tr></table></figure><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/macOSVMModelEmulation/macOSVMModelEmulation-CCG2.png"></p><p>例如:我的 Product Name 为 <code>MacBook1,1</code>,Board Serial Number 为 <code>W8627014WV3GJ</code>,System 的序列号为 <code>W8628RZTU9B</code><br>则我的代码应该为</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">board-id.reflectHost = "FALSE"</span><br><span class="line">board-id = "Mac-W8628RZTU9B"</span><br><span class="line">hw.model.reflectHost = "FALSE"</span><br><span class="line">hw.model = "MacBook1,1"</span><br><span class="line">serialNumber.reflectHost = "FALSE"</span><br><span class="line">serialNumber = "W8627014WV3GJ"</span><br><span class="line">smbios.reflectHost = "FALSE"</span><br><span class="line">uuid.action = "keep"</span><br><span class="line">smc.version = "0"</span><br></pre></td></tr></table></figure><p>填入前应先在官网校验,若成功,请点击 System 下面序列号的“生成新的”的按钮以获取新机型</p>]]></content>
<categories>
<category> 教程 </category>
<category> macOS </category>
<category> 虚拟机 </category>
<category> VMware </category>
<category> Workstation </category>
</categories>
<tags>
<tag> VMware Workstation </tag>
<tag> macOS </tag>
</tags>
</entry>
<entry>
<title>Install Microsoft Store To Windows</title>
<link href="/en/tutorial/Windows/msstore/"/>
<url>/en/tutorial/Windows/msstore/</url>
<content type="html"><![CDATA[<h2 id="Repository-On-GitHub"><a href="#Repository-On-GitHub" class="headerlink" title="Repository On GitHub"></a>Repository On GitHub</h2><p><a href="https://github.com/Goo-aw233/Add-Microsoft-Store">Add-Microsoft-Store</a></p><h2 id="Usage"><a href="#Usage" class="headerlink" title="Usage"></a>Usage</h2><p>Select the latest version from <a href="https://github.com/Goo-aw233/Add-Microsoft-Store/releases">Releases</a>.</p><p><img data-src="https://github.com/Goo-aw233/Add-Microsoft-Store/blob/main/Assets/Releases.png?raw=true" alt="Releases"></p><details><summary>The following are the names corresponding to all versions of the application package.</summary><p>x64:</p><p>Microsoft_Store_1_x64</p><blockquote><p>For Windows 10 Version 1709 x64 and higher, recommended for Windows 10 Version 1709 x64 - Windows 10 Version 1909 x64.</p></blockquote><p>Microsoft_Store_1_without_Installer_x64</p><blockquote><p>For Windows 10 Version 1709 x64 and higher, recommended for Windows 10 Version 1709 x64 - Windows 10 Version 1909 x64, AppInstaller not included.</p></blockquote><p>Microsoft_Store_2_x64</p><blockquote><p>For Windows 10 Version 2004 x64 and higher, recommended for Windows 10 Version 2004 x64 - Windows 10 Version 22H2 x64.</p></blockquote><p>Microsoft_Store_2_without_Installer_x64</p><blockquote><p>For Windows 10 Version 2004 x64 and higher, recommended for Windows 10 Version 2004 x64 - Windows 10 Version 22H2 x64, AppInstaller not included.</p></blockquote><p>Microsoft_Store_3_x64</p><blockquote><p>For Windows 11 Version 21H2 x64 and higher.</p></blockquote><p>Microsoft_Store_3_without_Installer_x64</p><blockquote><p>For Windows 11 Version 21H2 x64 and higher, AppInstaller not included.</p></blockquote><hr><p>x86:</p><p>Microsoft_Store_1_x86</p><blockquote><p>For Windows 10 Version 1709 x86 and higher, recommended for Windows 10 Version 1709 x86 - Windows 10 Version 1909 x86.</p></blockquote><p>Microsoft_Store_1_without_Installer_x86</p><blockquote><p>For Windows 10 Version 1709 x86 and higher, recommended for Windows 10 Version 1709 x86 - Windows 10 Version 1909 x86, AppInstaller not included.</p></blockquote><p>Microsoft_Store_2_x86</p><blockquote><p>For Windows 10 Version 2004 x86 and higher, recommended for Windows 10 Version 2004 x86 - Windows 10 Version 22H2 x86.</p></blockquote><p>Microsoft_Store_2_without_Installer_x86</p><blockquote><p>For Windows 10 Version 2004 x86 and higher, recommended for Windows 10 Version 2004 x86 - Windows 10 Version 22H2 x86, AppInstaller not included.</p></blockquote><hr><p>ARM:</p><p>Microsoft_Store_1_ARM</p><blockquote><p>For Windows 10 Version 1709 ARM32 and higher.</p></blockquote><p>Microsoft_Store_1_without_Installer_ARM</p><blockquote><p>For Windows 10 Version 1709 ARM32 and higher, AppInstaller not included.</p></blockquote><hr><p>ARM64:</p><p>Microsoft_Store_2_3_ARM64</p><blockquote><p>For Windows 10 Version 1709 ARM64 and higher.</p></blockquote><p>Microsoft_Store_2_3_without_Installer_ARM64</p><blockquote><p>For Windows 10 Version 1709 ARM64 and higher, AppInstaller not included.</p></blockquote></details><p>Download a package that best suits your system version and unzip it into a blank folder.</p><p>Afterwards, turn on <a href="ms-settings:developers">Developer Mode</a> in Windows Settings.</p><details><summary>How to turn on Developer Mode.</summary><p>For Windows 10: Windows Settings > Update & Security > For developers</p><p><img data-src="https://github.com/Goo-aw233/Add-Microsoft-Store/blob/main/Assets/DeveloperModeWIN10.png?raw=true" alt="Windows 10"></p><p>For Windows 11: Windows Settings > System > For developers (or Windows Settings > Privacy & security > For developers)</p><p><img data-src="https://github.com/Goo-aw233/Add-Microsoft-Store/blob/main/Assets/DeveloperModeWIN11.png?raw=true" alt="Windows 11"></p></details><p>Finally, after double-clicking <code>Runme.bat</code>, agreeing to the UAC and selecting the language and components to be installed, the installation can begin.</p><p><img data-src="https://github.com/Goo-aw233/Add-Microsoft-Store/blob/main/Assets/Runme.png?raw=true" alt="Runme"></p><h2 id="Download"><a href="#Download" class="headerlink" title="Download"></a>Download</h2><p><a href="https://github.com/Goo-aw233/Add-Microsoft-Store/releases">GitHub Releases</a> | <a href="https://gbcs6-my.sharepoint.com/:f:/g/personal/gucats_gbcs6_onmicrosoft_com/Eqlmdjx_hIpHqmxSLqmLjxoBdtfHYQ6qqe45GHF6TSB0OA">OneDrive</a></p><h2 id="File-Hash-Value"><a href="#File-Hash-Value" class="headerlink" title="File Hash Value"></a>File Hash Value</h2><p><a href="https://github.com/Goo-aw233/Add-Microsoft-Store/blob/main/Hash.txt">Hash</a></p><h2 id="Q-amp-A"><a href="#Q-amp-A" class="headerlink" title="Q&A"></a>Q&A</h2><h3 id="When-Will-Windows-10-Version-1507-Windows-10-1703-Be-Supported"><a href="#When-Will-Windows-10-Version-1507-Windows-10-1703-Be-Supported" class="headerlink" title="When Will Windows 10 Version 1507 - Windows 10 1703 Be Supported?"></a>When Will Windows 10 Version 1507 - Windows 10 1703 Be Supported?</h3><p>In Windows 10 Version 1507 - Windows 10 1709, Microsoft Store is no longer available and cannot be opened, so it is not supported for this version.</p><p>However, I’m trying to extract the corresponding Microsoft Store and AppInstaller packages from the corresponding Windows version.</p><h2 id="View-Application-Package-Information"><a href="#View-Application-Package-Information" class="headerlink" title="View Application Package Information"></a>View Application Package Information</h2><p><a href="https://github.com/Goo-aw233/Add-Microsoft-Store/blob/main/Packages.txt">Packages</a></p><h2 id="Old-Repository"><a href="#Old-Repository" class="headerlink" title="Old Repository"></a>Old Repository</h2><p><a href="https://github.com/Goo-aw233/Windows_Microsoft_Store">Old repository Link</a></p><p>The old repository has been migrated and is no longer updated and archived. Documents from the old repository have been moved to <a href="https://github.com/Goo-aw233/Add-Microsoft-Store/releases">GitHub Releases</a>.</p><h2 id="Roadmap"><a href="#Roadmap" class="headerlink" title="Roadmap"></a>Roadmap</h2><h4 id="v3-2-0"><a href="#v3-2-0" class="headerlink" title="v3.2.0"></a>v3.2.0</h4><ul><li><input disabled="" type="checkbox"> Support for all versions and all architectures in one package.</li></ul><h3 id="Recently-Completed"><a href="#Recently-Completed" class="headerlink" title="Recently Completed"></a>Recently Completed</h3><h4 id="v3-1-1"><a href="#v3-1-1" class="headerlink" title="v3.1.1"></a>v3.1.1</h4><ul><li><input checked="" disabled="" type="checkbox"> Added online Microsoft Store installation.</li><li><input checked="" disabled="" type="checkbox"> Supports the option to install for the current user or all users.</li><li><input checked="" disabled="" type="checkbox"> Fixed language display issue.</li></ul><details><summary>Completed Earlier</summary><h4 id="v3-1-0"><a href="#v3-1-0" class="headerlink" title="v3.1.0"></a>v3.1.0</h4><ul><li><input checked="" disabled="" type="checkbox"> ARM64 and ARM32 will be supported.</li></ul></details>]]></content>
<categories>
<category> tutorial </category>
<category> Windows </category>
</categories>
<tags>
<tag> Windows </tag>
<tag> Software </tag>
</tags>
</entry>
<entry>
<title>更新 IPCC 文件</title>
<link href="/zh-CN/tutorial/iOS/updateIPCC/"/>
<url>/zh-CN/tutorial/iOS/updateIPCC/</url>
<content type="html"><![CDATA[<h2 id="下载固件"><a href="#下载固件" class="headerlink" title="下载固件"></a>下载固件</h2><p>从爱思助手或 <a href="https://ipsw.me/">IPSW Downloads</a> 下载对应设备的系统固件</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/updateIPCC/updateIPCC1.png" alt="固件下载"></p><h2 id="提取文件"><a href="#提取文件" class="headerlink" title="提取文件"></a>提取文件</h2><p>使用 <a href="https://7-zip.org/">7-Zip</a> 或其它压缩软件打开下载好的 <code>ipsw</code> 固件,并按照大小排序,然后打开最大的 <code>DMG</code> 文件</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/updateIPCC/updateIPCC2.png" alt="提取 DMG"></p><p>然后打开以下目录:<code>\System\Library\Carrier Bundles\iPhone</code><br>在此目录下寻找你需要的 IPCC 文件夹</p><blockquote><p>中国电信:<br>ChinaTelecom_hk.bundle - 中国电信 香港<br>ChinaTelecom_USIM_cn.bundle - 中国电信 大陆<br>ChinaTelecom_USIM_mo.bundle - 中国电信 澳门</p><p>中国移动:<br>CMCC_CMI.bundle - 中国移动国际<br>CMCC_cn.bundle - 中国移动 大陆<br>CMCC_hk.bundle - 中国移动 香港<br>CMCC_HKBN_hk.bundle - 香港宽频</p><p>中国联通:<br>Unicom_hk.bundle - 中国联通 香港<br>Unicom_cn.bundle - 中国联通 大陆</p></blockquote><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/updateIPCC/updateIPCC3.png" alt="提取 IPCC"></p><p>找到之后将其解压到某个空白文件夹内</p><h2 id="制作-IPCC"><a href="#制作-IPCC" class="headerlink" title="制作 IPCC"></a>制作 IPCC</h2><p>在解压好的文件夹内新建一个名叫 <code>Payload</code> 的文件夹,并将需要的 <code>.bundle</code> 文件夹放进去</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/updateIPCC/updateIPCC4.png" alt="Payload"></p><details><summary>你也可以把全部带有 `.bundle` 的文件夹放进去</summary><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/updateIPCC/updateIPCC4-1.png" alt="Payload"></p></details><p>然后返回上一层目录,将 Payload 文件夹制作成格式为 <code>zip</code> 的压缩包</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/updateIPCC/updateIPCC5.png" alt="制成 Zip 压缩包"></p><p>接着,将 <code>.zip</code> 的后缀名改为 <code>.ipcc</code>,并确保此文件内的目录是先 <code> Payload</code> 再到 <code>.bundle</code> 文件夹</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/updateIPCC/updateIPCC6.png" alt="重命名"></p><h2 id="更新-IPCC"><a href="#更新-IPCC" class="headerlink" title="更新 IPCC"></a>更新 IPCC</h2><p>在爱思助手的“常用工具”里打开“更新 IPCC 文件”,然后点击“选择本地 IPCC”(左右都一样的效果)</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/updateIPCC/updateIPCC7.png" alt="选择本地 IPCC"></p><p>选择刚刚制作好的 <code>Payload.ipcc</code> 文件</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/updateIPCC/updateIPCC8.png" alt="选择 IPCC 文件"></p><p>最后再点击“立即更新”即可</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/updateIPCC/updateIPCC9.png" alt="立即更新"></p><p>点击“检查更新”,然后就能看到“当前 IPCC 版本”那行左右两边的版本都更新了</p><p>最后,重复<a href="#%E5%88%B6%E4%BD%9C-IPCC">制作 IPCC</a> 的步骤,将剩下的 <code>.bundle</code> 文件夹制成 Payload.ipcc 文件再更新即可</p>]]></content>
<categories>
<category> 教程 </category>
<category> iOS </category>
</categories>
</entry>
<entry>
<title>从 OTA 包中提取 boot</title>
<link href="/zh-CN/tutorial/Android/OTAExtractionBoot/"/>
<url>/zh-CN/tutorial/Android/OTAExtractionBoot/</url>
<content type="html"><![CDATA[<p>有时,Pixel 出厂镜像还没 OTA 更新的快,但是 Magisk 又需要 boot.img 来修补<br>这时候我们就可以 <del>直接用旧的修补过的 boot.img 来用</del> 从 OTA 包中提取出我们要用到的 boot.img 了<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/OTAExtractionBoot/OTAExtractionBoot1.png" alt="镜像下载"></p><h2 id="提取-boot-img"><a href="#提取-boot-img" class="headerlink" title="提取 boot.img"></a>提取 boot.img</h2><p>从 <a href="https://gbcs6-my.sharepoint.com/:f:/g/personal/gucats_gbcs6_onmicrosoft_com/EnMeBwe0BG5DrWpM4HgtGLYBYgUHlQdu9Ng0yI77q47t9w?e=NEQmhJ">OneDrive</a> 中下载 payload-dumper-go 并将其解压到空白文件夹(64 位系统用 payload-dumper-go-64,32 位系统用 payload-dumper-go-32,如果不知道你的 Windows 是多少位请直接用 payload-dumper-go-32)<br>然后解压 OTA 包里的 <code>payload.bin</code> 文件到同目录后运行 <code>Runme.bat</code></p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/OTAExtractionBoot/OTAExtractionBoot2.png" alt="运行"></p><p>然后在脚本里输入 <code>b</code> 后按下回车</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/OTAExtractionBoot/OTAExtractionBoot3.png" alt="提取"></p><p>完成后按任意键退出,脚本会打开提取出文件的文件夹</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/OTAExtractionBoot/OTAExtractionBoot4.png" alt="退出"></p>]]></content>
<categories>
<category> 教程 </category>
<category> Android </category>
</categories>
<tags>
<tag> Android </tag>
</tags>
</entry>
<entry>
<title>使用 DISM 挂载映像</title>
<link href="/zh-CN/tutorial/Windows/MountImage-DISM/"/>
<url>/zh-CN/tutorial/Windows/MountImage-DISM/</url>
<content type="html"><![CDATA[<h2 id="挂载映像"><a href="#挂载映像" class="headerlink" title="挂载映像"></a>挂载映像</h2><p>以管理员身份运行 CMD</p><p>查询映像内可用版本</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">DISM /Get-WimInfo /WimFile:<映像文件路径></span><br></pre></td></tr></table></figure><p>若我的映像文件路径在 <code>C:\Temp\offline</code>,文件名为 <code>install.wim</code>,则命令如下</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">DISM /Get-WimInfo /WimFile:C:\Temp\offline\install.wim</span><br></pre></td></tr></table></figure><p><img data-src="https://raw.githubusercontent.com/Goo-aw233/WebSiteResources/main/Pics/MountImage-DISM/MountImage-DISM1.png" alt="/Get-WimInfo"></p><p>使用 <code>/Mount-Image</code>挂载镜像</p><p>更多关于具体用法可以查看 <a href="https://bbs.pcbeta.com/viewthread-1196134-1-1.html">PCBeta</a></p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">DISM /Mount-Image /Imagefile:<映像文件路径> /Index:<映像索引编号> /MountDir:<挂载目录></span><br></pre></td></tr></table></figure><p>若我的映像文件路径在 <code>C:\Temp\offline</code>,文件名为 <code>install.wim</code>,映像索引编号为 <code>2</code>,挂载目录在 <code>C:\Temp\offline\mount</code>,则命令如下(<strong>请确保你没有打开挂载目录,且挂载目录为空</strong>)</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">DISM /Mount-Image /Imagefile:C:\Temp\offline\install.wim /Index:<span class="number">2</span> /MountDir:C:\Temp\offline\mount</span><br></pre></td></tr></table></figure><p><img data-src="https://raw.githubusercontent.com/Goo-aw233/WebSiteResources/main/Pics/MountImage-DISM/MountImage-DISM2.png" alt="/Mount-Image"></p><h2 id="提交对映像的更改"><a href="#提交对映像的更改" class="headerlink" title="提交对映像的更改"></a>提交对映像的更改</h2><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">DISM /Commit-Image /MountDir:<挂载目录></span><br></pre></td></tr></table></figure><p>提交对映像的更改时,可以使用 <code>/CheckIntegrity</code> 来检测和跟踪 <code>.wim</code> 文件损坏情况,应用或装载映像时,请再次使用 <code>/CheckIntegrity</code>,以便在检测到文件损坏时停止操作;但不能对虚拟硬盘 (VHD) 文件使用 <code>/CheckIntegrity</code> 命令</p><p>若我的挂载目录在 <code>C:\Temp\offline\mount</code>,则命令如下(<strong>请确保你没有打开挂载目录</strong>)</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">DISM /Commit-Image /MountDir:C:\Temp\offline\mount</span><br></pre></td></tr></table></figure><p><img data-src="https://raw.githubusercontent.com/Goo-aw233/WebSiteResources/main/Pics/MountImage-DISM/MountImage-DISM3.png" alt="/Commit-Image"></p><h2 id="卸载映像"><a href="#卸载映像" class="headerlink" title="卸载映像"></a>卸载映像</h2><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">DISM /Unmount-Image /MountDir:<挂载目录> {/Commit | /Discard}</span><br></pre></td></tr></table></figure><p><strong><code>/Commit</code> 与 <code>/Discard</code> 参数必须二选一,<code>/Commit</code> 为提交更改,<code>/Discard</code> 为放弃更改,已经提交过的更改不会被放弃</strong></p><p>若我的挂载目录在 <code>C:\Temp\offline\mount</code>,并提交更改,则命令如下(<strong>请确保你没有打开挂载目录</strong>)</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">DISM /Unmount-Image /MountDir:C:\Temp\offline\mount /Commit</span><br></pre></td></tr></table></figure><p><img data-src="https://raw.githubusercontent.com/Goo-aw233/WebSiteResources/main/Pics/MountImage-DISM/MountImage-DISM4.png" alt="/Unmount-Image"></p><details><summary>你还可以减少映像占用空间</summary><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">DISM /Image:<挂载目录> /Cleanup-Image /StartComponentCleanup /ResetBase </span><br></pre></td></tr></table></figure><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">DISM /Unmount-Image /MountDir:<挂载目录> /Commit</span><br></pre></td></tr></table></figure><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">DISM /Export-Image /SourceImageFile:<映像文件路径> /SourceIndex:<span class="number">1</span> /DestinationImageFile:<输出映像文件路径></span><br></pre></td></tr></table></figure></details><h2 id="疑难解答"><a href="#疑难解答" class="headerlink" title="疑难解答"></a>疑难解答</h2><p>如果本主题中的 DISM 命令失败,请尝试以下做法:</p><ol><li><p>确保使用随 Windows ADK 一起安装的 Windows 10/11 版 DISM</p></li><li><p>不要将映像装载到受保护的文件夹,例如 <code>User\Documents</code> 文件夹</p></li><li><p>如果 DISM 进程中断,请考虑暂时断开网络连接并禁用病毒防护</p></li><li><p>如果 DISM 进程中断,请考虑改为从 Windows 预安装环境 (WinPE) 运行命令</p></li></ol><h2 id="参考文献"><a href="#参考文献" class="headerlink" title="参考文献"></a>参考文献</h2><p><a href="https://learn.microsoft.com/windows-hardware/manufacture/desktop/mount-and-modify-a-windows-image-using-dism">Microsoft Learn - 使用 DISM 修改 Windows 映像</a></p>]]></content>
<categories>
<category> 教程 </category>
<category> Windows </category>
<category> DISM </category>
</categories>
<tags>
<tag> Windows </tag>
</tags>
</entry>
<entry>
<title>使用 DISM 管理 APPX 与 MSIX 包</title>
<link href="/zh-CN/tutorial/Windows/AppxManagement-DISM/"/>
<url>/zh-CN/tutorial/Windows/AppxManagement-DISM/</url>
<content type="html"><![CDATA[<h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><p>如果你的应用程序包名、或者文件路径中含有空格,请将空格改为连接符(-)或下划线(_)<br>Windows PE 4.0、Windows Server 2012 服务器核心安装选项或任何低于 Windows 8 和 Windows Server 2012 的 Windows 版本的 Windows 系统都不支持<br>如果仅有 <code>/Image:<系统盘盘符>:</code> 或 <code>/Online</code> 参数,则代表另一个参数不可用</p><a href="/zh-CN/tutorial/Windows/AppxManagement-PowerShell/" title="使用 PowerShell 管理 APPX 与 MSIX 包">使用 PowerShell 管理 APPX 与 MSIX 包</a><details><summary>关于参数</summary><p>[/<参数>] 是可选的参数;[/<参数 1> | /<参数 2>] 是两个参数二选一,例如<br> - [/Image:<系统盘盘符>: | /Online] 代表这两个参数只能二选一,如果我选项前面的参数则就是 <code>/Image:<系统盘盘符>:</code></p><p>{</参数>[</参数>] | </参数>[</参数>]} 代表花括号内参数二选一,中括号内参数可选</p></details><p>如果你是为挂载的映像添加,请将<code><系统盘盘符>:</code>替换为挂载路径,如 <code>C:\Temp\Mount</code>(Windows 等文件夹的上层目录)</p><p><code>/Image:</code> 参数仅允许在 PE 下使用,或对挂载的镜像使用;<code>/Online</code> 参数仅允许对当前正在运行的系统(联机映像)使用</p><h2 id="Get-Help"><a href="#Get-Help" class="headerlink" title="/Get-Help /?"></a>/Get-Help /?</h2><p>获取帮助<br>语法:</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Dism /Image:<系统盘盘符>: /Add-ProvisionedAppxPackage /?</span><br></pre></td></tr></table></figure><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Dism /Online /Get-ProvisionedAppxPackages /?</span><br></pre></td></tr></table></figure><p><img data-src="https://raw.githubusercontent.com/Goo-aw233/WebSiteResources/main/Pics/AppxManagement-DISM/AppxManagement-DISM1.png" alt="/Get-Help /?"></p><h2 id="Get-ProvisionedAppxPackages"><a href="#Get-ProvisionedAppxPackages" class="headerlink" title="/Get-ProvisionedAppxPackages"></a>/Get-ProvisionedAppxPackages</h2><p>获取映像中为每个用户安装的应用程序包的相关信息<br>语法:</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Dism /Image:<系统盘盘符>: /Get-ProvisionedAppxPackages</span><br></pre></td></tr></table></figure><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Dism /Online /Get-ProvisionedAppxPackages</span><br></pre></td></tr></table></figure><p><img data-src="https://raw.githubusercontent.com/Goo-aw233/WebSiteResources/main/Pics/AppxManagement-DISM/AppxManagement-DISM2.png" alt="/Get-ProvisionedAppxPackages"></p><h2 id="Add-ProvisionedAppxPackage"><a href="#Add-ProvisionedAppxPackage" class="headerlink" title="/Add-ProvisionedAppxPackage"></a>/Add-ProvisionedAppxPackage</h2><p>将一个或多个应用程序包添加到映像<br>若应用到未进入 OOBE 的系统或挂载的映像,每个现有的或新的用户配置文件都将注册该应用;如果将应用添加到联机映像,则在当前用户下次登录之前,将不会为此用户注册应用</p><p><font size=4 color=yellow>若你使用的是 <code>/Online</code> 参数,且进入系统后不联网,则需要使用 <code>/LicensePath</code> 参数来指定许可证,否则可能会无法打开应用程序;如果为 UUP 集成的,可以在 UUP 的 UUPs\Apps 文件夹下找到 License.xml(可能不通用于不同软件间)</font></p><p>语法:</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Dism /Add-ProvisionedAppxPackage {/FolderPath:<已解包的应用程序包路径> [/SkipLicense] | /PackagePath:<应用程序包路径> [/DependencyPackagePath:<应用程序包运行时路径>] [/LicensePath:<许可证路径> | /SkipLicense]}</span><br></pre></td></tr></table></figure><details><summary>其它参数及注解</summary><ol><li><code>/CustomDataPath:<自定义数据文件路径></code> 可跟在 <code>/FolderPath</code> 或 <code>/PackagePath</code> 的 <code>/SkipLicense</code> 或 <code>/LicensePath</code> 的参数后</li><li><code>[/Region:"<区域>"]</code> 可跟在 <code>/FolderPath</code> 或 <code>/PackagePath</code> 的命令最末尾处<ul><li>使用 /Region 指定必须在其中预配应用包( .appx 或 .appxbundle)的区域。 区域参数可以是:<br>· <code>All</code>,指示应为所有区域预配应用<br>· 以分号分隔的区域列表, 区域将采用 <a href="https://en.wikipedia.org/wiki/ISO_3166-1">ISO 3166-1 Alpha-2 或 ISO 3166-1 Alpha-3 代码</a>形式; 例如,可以将美国指定为“US”或“USA”(不区分大小写),如果未指定区域列表,则只有在将包固定到“开始”菜单布局时,才会对其进行预配</li></ul></li><li><code>/DependencyPackagePath:<应用程序包运行时路径></code> 只能跟在 <code>/PackagePath</code> 的参数后,指定该应用程序包需要的应用程序包运行时,所需运行时在应用程序包内的 <code>AppxManifest.xml</code> 中列出,参数可叠加</li><li><code>/LicensePath:<许可证路径></code> 可跟在 <code>/FolderPath</code> 或 <code>/PackagePath</code> 的参数后,所需的许可证应为 <code>.xml</code>,<code>/SkipLicense</code> 可跟在 <code>/FolderPath</code> 或 <code>/PackagePath</code> 的参数后,在其它方案中使用可能会损坏映像</li></ol></details><p>假如,我的系统盘盘符为 C,应用程序包放在 <code>D:\Appx</code> 下,应用程序包名为 <code>Microsoft.UI.Xaml.2.7_7.2208.15002.0_x64__8wekyb3d8bbwe.Appx</code>,没有许可证文件,则我的命令如下</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Dism /Image:C: /Add-ProvisionedAppxPackage /PackagePath:D:\Appx\Microsoft.UI.Xaml.<span class="number">2</span>.<span class="number">7</span>_7.<span class="number">2208</span>.<span class="number">15002</span>.<span class="number">0</span>_x64__8wekyb3d8bbwe.Appx /SkipLicense</span><br></pre></td></tr></table></figure><p>抑或是</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Dism /Online /Add-ProvisionedAppxPackage /PackagePath:D:\Appx\Microsoft.UI.Xaml.<span class="number">2</span>.<span class="number">7</span>_7.<span class="number">2208</span>.<span class="number">15002</span>.<span class="number">0</span>_x64__8wekyb3d8bbwe.Appx /SkipLicense</span><br></pre></td></tr></table></figure><p><img data-src="https://raw.githubusercontent.com/Goo-aw233/WebSiteResources/main/Pics/AppxManagement-DISM/AppxManagement-DISM3.png" alt="/Add-ProvisionedAppxPackage"></p><details><summary>其它示例</summary><p>完整示例:</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Dism /Add-ProvisionedAppxPackage /FolderPath:D:\Appx\UnpackedAppx /CustomDataPath:D:\Appx\CustomData\CustomData.xml /LicensePath:D:\Appx\License\License.xml /Region:"All"</span><br></pre></td></tr></table></figure><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Dism /Add-ProvisionedAppxPackage /PackagePath:D:\Appx\Appx.appx /DependencyPackagePath:D:\Appx\Runtime\Framework-<span class="number">1</span>.appx /DependencyPackagePath:D:\Appx\Runtime\Framework-<span class="number">2</span>.appx /SkipLicense /Region:"US;GB"</span><br></pre></td></tr></table></figure><p>/FolderPath: </p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Dism /Image:C: /Add-ProvisionedAppxPackage /FolderPath:D:\Appx\UnpackedAppx /CustomDataPath:D:\Appx\CustomData\CustomData.xml /LicensePath:D:\Appx\License\License.xml</span><br></pre></td></tr></table></figure><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Dism /Online /Add-ProvisionedAppxPackage /FolderPath:D:\Appx\UnpackedAppx /SkipLicense</span><br></pre></td></tr></table></figure><p>/PackagePath: </p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Dism /Image:C: /Add-ProvisionedAppxPackage /PackagePath:D:\Appx\Appx.appx /DependencyPackagePath:D:\Appx\Runtime\Framework-<span class="number">1</span>.appx /DependencyPackagePath:D:\Appx\Runtime\Framework-<span class="number">2</span>.appx /LicensePath:D:\Appx\License\License.xml</span><br></pre></td></tr></table></figure><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Dism /Image:C: /Add-ProvisionedAppxPackage /PackagePath:D:\Appx\Appx.appx /SkipLicense</span><br></pre></td></tr></table></figure><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Dism /Online /Add-ProvisionedAppxPackage /PackagePath:D:\Appx\Appx.appx /Region:"All" /SkipLicense</span><br></pre></td></tr></table></figure><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Dism /Online /Add-ProvisionedAppxPackage /PackagePath:D:\Appx\Appx.appx /LicensePath:D:\Appx\License\License.xml /Region:"US;GB"</span><br></pre></td></tr></table></figure></details><h2 id="Remove-ProvisionedAppxPackage"><a href="#Remove-ProvisionedAppxPackage" class="headerlink" title="/Remove-ProvisionedAppxPackage"></a>/Remove-ProvisionedAppxPackage</h2><p>从映像中删除应用程序包的预配,并不会注册到创建的新用户帐户<br>语法:</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">/Remove-ProvisionedAppxPackage /PackageName:<应用程序包全名称></span><br></pre></td></tr></table></figure><p>若我的应用程序包全名称为 <code>Microsoft.UI.Xaml.2.7_7.2208.15002.0_x64__8wekyb3d8bbewe</code>,则命令如下</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Dism /Image:C: /Remove-ProvisionedAppxPackage /PackageName:Microsoft.UI.Xaml.<span class="number">2</span>.<span class="number">7</span>_7.<span class="number">2208</span>.<span class="number">15002</span>.<span class="number">0</span>_x64__8wekyb3d8bbwe</span><br></pre></td></tr></table></figure><p>抑或是</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Dism /Online /Remove-ProvisionedAppxPackage /PackageName:Microsoft.UI.Xaml.<span class="number">2</span>.<span class="number">7</span>_7.<span class="number">2208</span>.<span class="number">15002</span>.<span class="number">0</span>_x64__8wekyb3d8bbwe</span><br></pre></td></tr></table></figure><p><img data-src="https://raw.githubusercontent.com/Goo-aw233/WebSiteResources/main/Pics/AppxManagement-DISM/AppxManagement-DISM4.png" alt="/Remove-ProvisionedAppxPackage"></p><blockquote><p>在 PowerShell 中使用 <a href="/zh-CN/tutorial/Windows/AppxManagement-PowerShell/" title="Remove-AppxPackage">Remove-AppxPackage</a> 为已注册应用程序包的每个用户删除应用程序,以便从映像中完全删除该应用程序<br>如果尚未将应用程序包注册到任何用户配置文件,则 <code>/Remove-ProvisionedAppxPackage</code> 选项将完全删除应用程序包,而非仅删除预配</p></blockquote><h2 id="疑难解答"><a href="#疑难解答" class="headerlink" title="疑难解答"></a>疑难解答</h2><p>如果遇到 <code>错误: 0xc1570118</code> 的报错,则可能是由于目标应用程序包已安装导致</p><p><img data-src="https://raw.githubusercontent.com/Goo-aw233/WebSiteResources/main/Pics/AppxManagement-DISM/AppxManagement-DISM5.png" alt="0xc1570118"></p><h2 id="参考文献"><a href="#参考文献" class="headerlink" title="参考文献"></a>参考文献</h2><ol><li><a name = "ref1" href="https://learn.microsoft.com/windows-hardware/manufacture/desktop/dism-app-package--appx-or-appxbundle--servicing-command-line-options">Microsoft Learn</a></li></ol>]]></content>
<categories>
<category> 教程 </category>
<category> Windows </category>
<category> DISM </category>
</categories>
<tags>
<tag> Windows </tag>
</tags>
</entry>
<entry>
<title>使用 PowerShell 管理 APPX 与 MSIX 包</title>
<link href="/zh-CN/tutorial/Windows/AppxManagement-PowerShell/"/>
<url>/zh-CN/tutorial/Windows/AppxManagement-PowerShell/</url>
<content type="html"><![CDATA[<h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><p>如果你的应用程序包名、或者文件路径中含有空格,请将空格改为连接符(-)或下划线(_)<br>执行命令时,请使用 <code>Windows PowerShell</code>,<a href="https://aka.ms/PSWindows">PowerShell 和 PowerShell Preview</a> 可能会报错,且需要以管理员身份运行 Windows PowerShell<br><img data-src="https://raw.githubusercontent.com/Goo-aw233/WebSiteResources/main/Pics/AppxManagement-PowerShell/AppxManagement-PowerShell1.png" alt="报错"><br>如果仅有 <code>/Image:<系统盘盘符>:</code> 或 <code>/Online</code> 参数,则代表另一个参数不可用</p><a href="/zh-CN/tutorial/Windows/AppxManagement-DISM/" title="使用 DISM 管理 APPX 与 MSIX 包">使用 DISM 管理 APPX 与 MSIX 包</a><h2 id="Add-AppxPackage"><a href="#Add-AppxPackage" class="headerlink" title="Add-AppxPackage"></a>Add-AppxPackage</h2><p>为<strong>当前用户</strong>安装应用程序包</p><p><font size=4 color=yellow>若你使用的是 <code>/Online</code> 参数,且进入系统后不联网,则需要使用 <code>/LicensePath</code> 参数来指定许可证,否则可能会无法打开应用程序;如果为 UUP 集成的,可以在 UUP 的 UUPs\Apps 文件夹下找到 License.xml(可能不通用于不同软件间)</font></p><p>语法:</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Add-AppxPackage</span> <应用程序包路径></span><br></pre></td></tr></table></figure><p>假如我的应用程序包在 <code>C:\Temp</code>(C 盘的 Temp 文件夹下),应用程序名及后缀为 <code>Test1.Msixbundle</code>,则我的命令如下:</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Add-AppxPackage</span> C:\Temp\Test1.Msixbundle</span><br></pre></td></tr></table></figure><p><img data-src="https://raw.githubusercontent.com/Goo-aw233/WebSiteResources/main/Pics/AppxManagement-PowerShell/AppxManagement-PowerShell2.png" alt="Add-AppxPackage"><br>Microsoft Store 与 App Installer 安装应用程序包时默认使用该命令</p><details><summary>如果该应用程序包需要依赖</summary><p>可以继续用 <code>Add-AppxPackage <应用程序包路径></code> 安装依赖<br>或者使用</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Add-AppxPackage</span> <应用程序包路径> <span class="literal">-DependencyPath</span> <应用程序依赖包路径></span><br></pre></td></tr></table></figure><p>假如我的应用程序包在 <code>C:\Temp</code>(C 盘的 Temp 文件夹下),应用程序名及后缀为 <code>Test1.Msixbundle</code>,依赖包名及后缀为 <code>TestRuntime1.Msixbundle</code>则我的命令如下:</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Add-AppxPackage</span> C:\Temp\Test1.Msixbundle <span class="literal">-DependencyPath</span> C:\Temp\TestRuntime1.Msixbundle</span><br></pre></td></tr></table></figure></details><h2 id="Add-AppxProvisionedPackage"><a href="#Add-AppxProvisionedPackage" class="headerlink" title="Add-AppxProvisionedPackage"></a>Add-AppxProvisionedPackage</h2><p>为<strong>计算机上所有用户</strong>安装应用程序包(即使后面新建用户)<sup><a href="#ref2">[2]</a></sup></p><p><font size=4 color=yellow>若你使用的是 <code>/Online</code> 参数,且进入系统后不联网,则需要使用 <code>/LicensePath</code> 参数来指定许可证,否则可能会无法打开应用程序;如果为 UUP 集成的,可以在 UUP 的 UUPs\Apps 文件夹下找到 License.xml(可能不通用于不同软件间)</font></p><p>语法:</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Add-AppxProvisionedPackage</span> <span class="literal">-Online</span> <span class="literal">-FolderPath</span> <应用程序包路径> <span class="literal">-SkipLicense</span></span><br></pre></td></tr></table></figure><p>-FolderPath 指向某个文件夹下所有文件,适用于批量安装</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Add-AppxProvisionedPackage</span> <span class="literal">-Online</span> <span class="literal">-PackagePath</span> <应用程序包路径> <span class="literal">-SkipLicense</span></span><br></pre></td></tr></table></figure><p>-PackagePath 指向某一个应用程序包文件,适用于单个安装</p><p>如果你有应用程序包证书,则可以把 -SkipLicense 参数去掉,添加 -LicensePath 参数,如:</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Add-AppxProvisionedPackage</span> <span class="literal">-Online</span> <span class="literal">-PackagePath</span>/<span class="literal">-FolderPath</span> <应用程序包路径> <span class="literal">-LicensePath</span> <证书文件路径></span><br></pre></td></tr></table></figure><p>假如我的应用程序包在 <code>C:\Temp</code>(C 盘的 Temp 文件夹下),应用程序名及后缀为 <code>Test2.Msixbundle</code>,且不需要证书(因为没有),则我的命令如下:</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Add-AppxProvisionedPackage</span> <span class="literal">-Online</span> <span class="literal">-PackagePath</span> C:\Temp\Test2.Msixbundle <span class="literal">-SkipLicense</span></span><br></pre></td></tr></table></figure><p><img data-src="https://raw.githubusercontent.com/Goo-aw233/WebSiteResources/main/Pics/AppxManagement-PowerShell/AppxManagement-PowerShell3.png" alt="Add-AppxProvisionedPackage"></p><h2 id="Get-AppxPackage"><a href="#Get-AppxPackage" class="headerlink" title="Get-AppxPackage"></a>Get-AppxPackage</h2><p>获取当前计算机上已安装的应用程序包(Appx(bundle) 与 Msix(bundle))<br>语法:</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Get-AppxPackage</span></span><br></pre></td></tr></table></figure><p>获取当前用户已安装的应用程序包</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Get-AppxPackage</span> <span class="literal">-AllUsers</span></span><br></pre></td></tr></table></figure><p>获取所有用户已安装的应用程序包</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Get-AppxPackage</span> <span class="literal">-Name</span> <应用程序包名> <span class="literal">-User</span> <域/计算机名称>\<用户名></span><br></pre></td></tr></table></figure><p>获取指定域下指定用户的指定包,<域/计算机名称><用户名>可替换为 SID</p><details><summary>不知道 SID 或计算机名称与用户名可用命令查询</summary><p>命令如下:</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">whoami /all</span><br></pre></td></tr></table></figure><p>输出如下:</p><p>PS C:\WINDOWS\system32> whoami /all</p><p>用户信息<br> —————-</p><p>用户名 SID<br>================= ==============================================<br>计算机名称\用户名 字符串</p></details><p>假如我的应用程序包名为 <code>Microsoft.NET.Native.Framework.1.3</code> 计算机名称、用户名为 <code>PCName/User</code>(或 SID 为 <code>S-1-1-45-141919810...</code>,则命令如下:</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Get-AppxPackage</span> <span class="literal">-Name</span> Microsoft.NET.Native.Framework.<span class="number">1.3</span> <span class="literal">-User</span> PCName\User</span><br></pre></td></tr></table></figure><p>(应用程序包名可先直接 <code>Get-AppxPackage</code> 得到 <code>Name</code>,<code>PackageFullName</code> 或 <code>PackageFamilyName</code> 后再执行命令)</p><p><img data-src="https://raw.githubusercontent.com/Goo-aw233/WebSiteResources/main/Pics/AppxManagement-PowerShell/AppxManagement-PowerShell4.png" alt="Get-AppxPackage"></p><p>如果你需要导出为列表,则命令如下</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Get-AppxPackage</span> >> C:\Temp\List.txt</span><br></pre></td></tr></table></figure><h2 id="Get-AppxPackageManifest"><a href="#Get-AppxPackageManifest" class="headerlink" title="Get-AppxPackageManifest"></a>Get-AppxPackageManifest</h2><p>获取某应用程序包的详细信息<br>语法:</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Get-AppxPackageManifest</span> <span class="literal">-Package</span> <应用程序包全名称></span><br></pre></td></tr></table></figure><p>应用程序包全名在 Get-AppxPackage 中可获取,值为 PackageFullName</p><p>假如我的应用程序包全名称为 <code>Microsoft.WindowsTerminalPreview_1.18.1462.0_x64__8wekyb3d8bbwe</code>,则命令如下:</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Get-AppxPackageManifest</span> <span class="literal">-Package</span> Microsoft.WindowsTerminalPreview_1.<span class="number">18.1462</span>.<span class="number">0</span>_x64__8wekyb3d8bbwe</span><br></pre></td></tr></table></figure><p><img data-src="https://raw.githubusercontent.com/Goo-aw233/WebSiteResources/main/Pics/AppxManagement-PowerShell/AppxManagement-PowerShell5.png" alt="Get-AppxPackageManifest"></p><h2 id="Remove-AppxPackage"><a href="#Remove-AppxPackage" class="headerlink" title="Remove-AppxPackage"></a>Remove-AppxPackage</h2><p>移除某个应用程序包<br>语法:</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Remove-AppxPackage</span> <应用程序包全名称></span><br></pre></td></tr></table></figure><p>应用程序包全名在 Get-AppxPackage 中可获取,值为 PackageFullName</p><p>假如我的应用程序包全名称为 <code>Microsoft.WindowsTerminalPreview_1.18.1462.0_x64__8wekyb3d8bbwe</code>,则命令如下:</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Remove-AppxPackage</span> Microsoft.WindowsTerminalPreview_1.<span class="number">18.1462</span>.<span class="number">0</span>_x64__8wekyb3d8bbwe</span><br></pre></td></tr></table></figure><p><img data-src="https://raw.githubusercontent.com/Goo-aw233/WebSiteResources/main/Pics/AppxManagement-PowerShell/AppxManagement-PowerShell6.png" alt="Remove-AppxPackage"></p><details><summary>使用通配符也可以</summary><p>使用 Get-AppxPackage 与通配符(*)结合管道符来卸载应用程序包</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Get-AppxPackage</span> *<应用程序包名>* | <span class="built_in">Remove-AppxPackage</span></span><br></pre></td></tr></table></figure><p>比如我需要卸载 XboxApp,则命令如下:</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Get-AppxPackage</span> *XboxApp* | <span class="built_in">Remove-AppxPackage</span></span><br></pre></td></tr></table></figure><p>如果需要卸载应用程序包,则命令如下</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Get-AppxPackage</span> * | <span class="built_in">Remove-AppxPackage</span></span><br></pre></td></tr></table></figure><p>之后就会一片报错,大部分应用程序包都会被卸载</p></details><p>但如果是某些系统级的会无法删除,如 Cortana 等</p><h2 id="Remove-AppxProvisionedPackage"><a href="#Remove-AppxProvisionedPackage" class="headerlink" title="Remove-AppxProvisionedPackage"></a>Remove-AppxProvisionedPackage</h2><p>为<strong>计算机上所有用户</strong>移除应用程序包的设置(后面新建用户不再安装此应用程序包,已安装此应用程序包的用户不受影响)<br>语法:(<strong>需要先提前执行 <code>Remove-AppxPackage</code> 命令再执行下面命令,否则会报错“<font color=red>Remove-AppxProvisionedPackage : 参数错误。</font>”</strong>)<sup><a href="#ref3">[3]</a></sup></p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Remove-AppxProvisionedPackage</span> <span class="literal">-Path</span> <系统盘盘符>: <span class="literal">-PackageName</span> <应用程序包全名称></span><br></pre></td></tr></table></figure><p>假如我的应用程序包全名称为 <code>Microsoft.WindowsTerminalPreview_1.18.1462.0_x64__8wekyb3d8bbwe</code>,则命令如下:</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Remove-AppxProvisionedPackage</span> <span class="literal">-Path</span> C: <span class="literal">-PackageName</span> Microsoft.WindowsTerminalPreview_1.<span class="number">18.1462</span>.<span class="number">0</span>_x64__8wekyb3d8bbwe</span><br></pre></td></tr></table></figure><p><img data-src="https://raw.githubusercontent.com/Goo-aw233/WebSiteResources/main/Pics/AppxManagement-PowerShell/AppxManagement-PowerShell7.png" alt="Remove-AppxProvisionedPackage"></p><p>(该图例已过时)</p><h2 id="参考文献"><a href="#参考文献" class="headerlink" title="参考文献"></a>参考文献</h2><ol><li><p><a name = "ref1" href="https://learn.microsoft.com/windows/msix/desktop/powershell-msix-cmdlets">Microsoft Learn</a></p></li><li><p><a name = "ref2" href="https://learn.microsoft.com/powershell/module/dism/add-appxprovisionedpackage">Microsoft Learn - Remove-AppxProvisionedPackage</a></p></li><li><p><a name = "ref3" href="https://learn.microsoft.com/powershell/module/dism/remove-appxprovisionedpackage">Microsoft Learn - Remove-AppxProvisionedPackage</a></p></li></ol>]]></content>
<categories>
<category> 教程 </category>
<category> Windows </category>
<category> PowerShell </category>
</categories>
<tags>
<tag> Windows </tag>
</tags>
</entry>
<entry>
<title>Pixel 5 刷机与 Root</title>
<link href="/zh-CN/tutorial/Android/Pixel5FlashAndRoot/"/>
<url>/zh-CN/tutorial/Android/Pixel5FlashAndRoot/</url>
<content type="html"><![CDATA[<h2 id="开篇提醒"><a href="#开篇提醒" class="headerlink" title="开篇提醒"></a>开篇提醒</h2><p><strong>如果你没有 Root 请记得退出你的 Google 账户,若有重要数据,请备份</strong></p><h2 id="下载安装固件、驱动与-ADB"><a href="#下载安装固件、驱动与-ADB" class="headerlink" title="下载安装固件、驱动与 ADB"></a>下载安装固件、驱动与 ADB</h2><p><a href="https://developers.google.cn/android/images?hl=zh-cn#redfin">从 Google Play service 下载固件</a> | <a href="https://dl.google.com/android/repository/usb_driver_r13-windows.zip?hl=zh-cn">usb_driver</a> | <a href="https://dl.google.com/android/repository/platform-tools-latest-windows.zip?hl=zh-cn">ADB 工具(Android SDK Platform-Tools)</a></p><p>在 developers.google 下载好你需要的系统固件,点击 <code>Link</code> 并下载</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pixel5FlashAndRoot/Pixel5FlashAndRoot1.png"></p><p>将 usb_driver 解压后右键 <code>android_winusb.inf</code> 并选择“安装(I)”</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pixel5FlashAndRoot/Pixel5FlashAndRoot2.png"></p><p>同时将 <code>platform-tools</code>解压到空白文件夹,并确保路径内没有空格,然后再将下载好的固件解压到 platform-tools 所在目录</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pixel5FlashAndRoot/Pixel5FlashAndRoot3.png"></p><p>打开 <code>platform-tools</code> 文件夹,在地址栏复制右键,以管理员身份运行 CMD,并输入如下命令:</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">cd</span> <platform-tools 所在路径></span><br><span class="line"><盘符>:</span><br></pre></td></tr></table></figure><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pixel5FlashAndRoot/Pixel5FlashAndRoot4.png"></p><h2 id="解锁-BootLoader-与调试模式"><a href="#解锁-BootLoader-与调试模式" class="headerlink" title="解锁 BootLoader 与调试模式"></a>解锁 BootLoader 与调试模式</h2><h3 id="解锁-Bootloader"><a href="#解锁-Bootloader" class="headerlink" title="解锁 Bootloader"></a>解锁 Bootloader</h3><p><strong>解除 Bootloader 会导致设备数据清空,请先备份资料</strong><br>在“设置” – “关于手机”里,连续点几次<code>版本号</code>来打开开发者模式</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pixel5FlashAndRoot/Pixel5FlashAndRoot5.png"></p><p>然后在“系统” – “开发者选项”中找到名为<code> OEM 解锁</code>的选项,并将它开启</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pixel5FlashAndRoot/Pixel5FlashAndRoot6.png"></p><p>或者使用 ADB 命令解锁</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">fastboot flashing unlock</span><br></pre></td></tr></table></figure><p>然后通过音量键选择选项,电源键确认解锁<br>完成后输入</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">fastboot reboot</span><br></pre></td></tr></table></figure><p>即可重启</p><h2 id="开启-USB-调试"><a href="#开启-USB-调试" class="headerlink" title="开启 USB 调试"></a>开启 USB 调试</h2><p>在“系统” – “开发者选项”中找到名为 <code>USB 调试</code>的选项,并将它开启</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pixel5FlashAndRoot/Pixel5FlashAndRoot7.png"></p><h2 id="刷机"><a href="#刷机" class="headerlink" title="刷机"></a>刷机</h2><p>在 CMD 中输入命令,进入到 Bootloader 界面</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">adb reboot bootloader</span><br></pre></td></tr></table></figure><h3 id="双清"><a href="#双清" class="headerlink" title="双清"></a>双清</h3><p>进入到 Bootloader 后使用音量键切换到 <code>Recovery Mode</code>,然后按下电源键,这样就会进入到倒地的 Android 界面并显示“no command” 的界面</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pixel5FlashAndRoot/Pixel5FlashAndRoot8.png"></p><p>接着长按开机键,接着按下音量上键即可进入 Recovery</p><p>进入 Recovery 后用音量下键选择到 <code>Wipe data/factory reset</code>,并按下电源键</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pixel5FlashAndRoot/Pixel5FlashAndRoot9.png"></p><p>接着用音量下键选择到 <code>Factory data reset</code>,并按下电源键</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pixel5FlashAndRoot/Pixel5FlashAndRoot10.png"></p><p>接着就会清理 data 与 factory 的数据,完成后用音量下键选择到 <code>Reboot to bootloader</code>,并按下电源键</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pixel5FlashAndRoot/Pixel5FlashAndRoot11.png"></p><h3 id="刷入固件"><a href="#刷入固件" class="headerlink" title="刷入固件"></a>刷入固件</h3><p>在 <code>platform-tools</code> 文件夹中找到 <code>flash-all.bat</code>,并双击打开,等待刷机</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pixel5FlashAndRoot/Pixel5FlashAndRoot12.png"></p><p>刷机完成后按下任意键即可退出</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pixel5FlashAndRoot/Pixel5FlashAndRoot13.png"></p><h2 id="Root"><a href="#Root" class="headerlink" title="Root"></a>Root</h2><p>从 GitHub 下载 <a href="https://raw.githubusercontent.com/topjohnwu/magisk-files/canary/app-release.apk">Magisk Canary</a> 并安装<br>并从 <code>platform-tools</code> 文件夹中找到 <code>image.xxx.zip</code>,解压出里面的 <code>boot.img</code>,并复制到设备里的 <code>Download</code> 文件夹内</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pixel5FlashAndRoot/Pixel5FlashAndRoot14.png"></p><p>在设备上打开 <code>Magisk</code>,选择<code>安装</code> – <code>选择并修补一个文件</code>,然后在下载文件夹找到 <code>boot.img</code> 文件,并选择<code>开始</code></p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pixel5FlashAndRoot/Pixel5FlashAndRoot15.png"></p><p>完成后将修补好的 <code>magisk_patched-xxx.img</code> 复制到 <code>platform-tools</code> 文件夹<br>复制完成后右键 <code>magisk_patched-xxx.img</code> 并选择 <code>复制路径</code>,在 CMD 中输入命令</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">adb reboot bootloader</span><br><span class="line">fastboot boot <magisk_patched-xxx.img 所在路径></span><br></pre></td></tr></table></figure><p>然后就会修补镜像到 Android,至此 Root 就成功了</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pixel5FlashAndRoot/Pixel5FlashAndRoot16.png"></p><p>完成后再次打开 <code>Magisk</code>,选择<code>安装</code> – <code>直接按照(推荐)</code> – <code>开始</code>,完成后点击<code>重启</code></p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pixel5FlashAndRoot/Pixel5FlashAndRoot17.png"></p><h2 id="升级系统"><a href="#升级系统" class="headerlink" title="升级系统"></a>升级系统</h2><p>与上面差不多,只需要<a href="https://developers.google.cn/android/images?hl=zh-cn#redfin">从 Google Play service 下载固件</a>,然后将编辑 <code>flash-all.bat</code>,并将里面的 <code>-w </code>给删除并保存即可</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pixel5FlashAndRoot/Pixel5FlashAndRoot18.png"></p><p>然后再按照上面的 Root 方法重新将设备 Root 即可</p><p>如果你愿意走 OTA 可以另寻他法</p>]]></content>
<categories>
<category> 教程 </category>
<category> Android </category>
</categories>
<tags>
<tag> Android </tag>
</tags>
</entry>
<entry>
<title>在不兼容的平台升级 Windows 11</title>
<link href="/zh-CN/tutorial/Windows/Win11setupbypass/"/>
<url>/zh-CN/tutorial/Windows/Win11setupbypass/</url>
<content type="html"><![CDATA[<h2 id="注册表法"><a href="#注册表法" class="headerlink" title="注册表法"></a>注册表法</h2><p>新建一个文本文档,并在里面输入以下内容</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">Windows Registry Editor Version 5.00</span><br><span class="line"></span><br><span class="line">[HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig]</span><br><span class="line">"BypassTPMCheck"=dword:00000001</span><br><span class="line">"BypassSecureBootCheck"=dword:00000001</span><br><span class="line">"BypassRAMCheck"=dword:00000001</span><br><span class="line">"BypassStorageCheck"=dword:00000001</span><br><span class="line">"BypassCPUCheck"=dword:00000001</span><br><span class="line">"AllowUpgradesWithUnsupportedTPMOrCPU"=dword:00000001</span><br></pre></td></tr></table></figure><p>完成后保存,并将后缀改为 .reg 并打开导入到注册表<br><del>然后你会发现没什么效果</del></p><h2 id="替换-appraiserres-dll-法"><a href="#替换-appraiserres-dll-法" class="headerlink" title="替换 appraiserres.dll 法"></a>替换 appraiserres.dll 法</h2><p>从 <a href="https://gbcs6-my.sharepoint.com/:f:/g/personal/gucats_gbcs6_onmicrosoft_com/EriFxw9WRC5Ki0VH_JHqODUB-KjkerPDJy7aq30V7_WBNQ?e=22ply3">OneDrive</a> 下载适合你版本的 appraiserres.dll,并把文件名中的 <code>_arm64</code> 或 <code>_x64</code> 字样删除<br>然后双击挂载镜像到 Explorer,选择 <code>setup.exe</code> 并运行<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win11setupbypass/Win11setupbypass1.png" alt="setup.exe"><br>打开后点击“更改安装程序下载更新的方式”<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win11setupbypass/Win11setupbypass2.png" alt="更改安装程序下载更新的方式"><br>选择“不是现在”,并取消复选“我希望帮助改进安装(I)”,然后下一步<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win11setupbypass/Win11setupbypass3.png" alt="取消复选"><br>在出现“这台电脑昂起不满足 Windows 11 系统要求”时,打开目录 <code>C:\$WINDOWS.~BT\Sources</code>,并将 <code>appraiserres.dll</code> 替换进去<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win11setupbypass/Win11setupbypass4.png" alt="替换文件"><br>完成后在安装程序点击“上一步(B)”,然后再点击“下一步(N)”,然后就能正常安装了<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win11setupbypass/Win11setupbypass5.png" alt="安装"></p><h2 id="软件法"><a href="#软件法" class="headerlink" title="软件法"></a>软件法</h2><p>从 <a href="https://github.com/coofcookie/Windows11Upgrade/releases">GitHub</a> 或 <a href="">OneDrive</a> 下载 <code>Windows11Upgrade_EN.zip</code> 并解压到空白文件夹,运行 <code>Windows11Upgrade.exe</code><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win11setupbypass/Win11setupbypass6.png" alt="Windows11Upgrade.exe"><br>在软件内,如果你 <strong>已经拥有 ISO</strong> 请选择 <code>Select Windows 11 ISO file</code>,如果 <strong>没有 ISO</strong>,请选择 <code>Download Windows 11 ISO file</code>(这里不介绍 <code>Download Windows 11 ISO file</code> 的方法,需要下载 ISO 可以直接看<a href="/zh-CN/tutorial/Windows/UUP/" title="使用 UUP 构建 Windows 镜像">使用 UUP 构建 Windows 镜像</a>)<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win11setupbypass/Win11setupbypass7.png" alt="选择镜像"><br>在这里选择你要升级的方式,并点击 <code>Install system</code><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win11setupbypass/Win11setupbypass8.png" alt="升级方式"></p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">Upgrade --- 升级 Windows 并保留所有数据及应用程序</span><br><span class="line">Data Only --- 升级 Windows 并保留所有数据,但卸载应用程序</span><br><span class="line">Clean install --- 清除系统盘所有数据并删除应用程序</span><br></pre></td></tr></table></figure><p>等待约 45min 左右即可完成自动升级<br><del>然后你会突然发现,用不了</del></p><h2 id="PE-法"><a href="#PE-法" class="headerlink" title="PE 法"></a>PE 法</h2><p>这是最有效的方法,没有之一(<br>直接使用 <a href="https://www.wepe.com.cn/">微 PE</a> | <a href="https://firpe.cn/">FirPE</a> 等 PE,然后参考<a href="/zh-CN/tutorial/Windows/reinstallOS/" title="给电脑重装 Windows">给电脑重装 Windows</a> 即可</p><h2 id="后记"><a href="#后记" class="headerlink" title="后记"></a>后记</h2><p>请严格牢记以下几点</p><ol><li>请不要抱怨升级 Windows 11 后带来的卡顿及 BUG,这是在你的设备不符合要求的情况下强制升级所带来的问题,Microsoft 没有义务服务该类问题</li><li>遇到问题请妥善使用<a href="feedback-hub:">反馈中心</a>来反馈问题</li><li>在不符合要求的设备上安装可能会导致你的计算机被锁,请斟酌利弊</li></ol>]]></content>
<categories>
<category> 教程 </category>
<category> Windows </category>
</categories>
<tags>
<tag> Windows </tag>
</tags>
</entry>
<entry>
<title>自定义 UUP 安装映像</title>
<link href="/zh-CN/tutorial/Windows/customuup/"/>
<url>/zh-CN/tutorial/Windows/customuup/</url>
<content type="html"><![CDATA[<p>从 <a href="https://uupdump.net/">UUP dump</a> 或 <a href="https://www.uupdump.cn/">UUP dump 中文站</a> 下载一个创建包并解压</p><h2 id="编辑转换选项"><a href="#编辑转换选项" class="headerlink" title="编辑转换选项"></a>编辑转换选项</h2><p>找到名为 <code>ConvertConfig.ini</code> 的文件并编辑</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/customuup/customuup1.png" alt="ConvertConfig.ini"></p><p>其中,带有 * 的是不推荐取消的,带有 ! 的是不推荐启用的,1 为启用,0 为禁用</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/customuup/customuup2.png" alt="配置详情"></p><hr><p>AppsLevel 的分类如下:<sup id="预制规则" class="reference"><a href="https://bbs.pcbeta.com/viewthread-1935082-1-1.html">[1]</a></sup></p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">0:添加所有 Apps</span><br><span class="line">1:只集成 Microsoft Store 与 Windows 安全中心</span><br><span class="line">2:在 1 的基础之上集成照片、相机、记事本、画图</span><br><span class="line">3:在 2 的基础之上集成终端、APP 安装程序、小组件</span><br><span class="line">4:在 3 的基础之上集成媒体组件,如媒体播放器、电影与电视、解码器(如来自制造商的 HEVC 解码器、VP9 等)、手机连接</span><br></pre></td></tr></table></figure><p>vAutoEditions 可选择并对应版本如下:</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">CoreSingleLanguage,ProfessionalWorkstation,ProfessionalEducation,Education,Enterprise,ServerRdsh,IoTEnterprise</span><br><span class="line">家庭单语言版、专业工作站版、专业教育版、教育版、企业版、企业多会话版、物联网企业版</span><br><span class="line"></span><br><span class="line">如果留空则只集成你选择的版本(家庭版、家庭中文版(简体中文独有)、专业版或协同版)</span><br></pre></td></tr></table></figure><hr><p>完成后点击保存,并运行 <code>uup_download_windows.cmd</code><br>等到开始下载系统文件的时候找到并编辑名为 <code>CustomAppsList.txt</code> 的文件,并将你不想要的 App 前面添加上 <code>#</code><br>例如我想移除 Windows 安全中心,就在 <code>Microsoft.SecHealthUI_8wekyb3d8bbwe</code> 的前面添加 <code># </code></p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/customuup/customuup3.png" alt="CustomAppsList.txt"></p><p>完成后保存即可,然后等待脚本下载并转换</p><hr><p>Microsoft Defender 防病毒 <strong>并没有被移除</strong>,该系统组件 <strong>依旧会正常运行</strong>,移除的 Windows 安全中心这个外壳<br>就好比手机拆掉了背板等外壳,但依旧能正常运行</p><hr><h2 id="效果展示"><a href="#效果展示" class="headerlink" title="效果展示"></a>效果展示</h2><p>启用的如下:</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">AutoStart AddUpdates Cleanup ResetBase NetFx3 StartVirtual wim2swm LCUwinre UpdtBootFiles ForceDism SkipEdge AutoExit CustomList vAutoStart vwim2swm</span><br></pre></td></tr></table></figure><p>集成的 Appx 如下:</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">Microsoft.WindowsStore_8wekyb3d8bbwe --- 微软商店</span><br><span class="line">Microsoft.StorePurchaseApp_8wekyb3d8bbwe --- 微软商店组件</span><br><span class="line">Microsoft.VCLibs.140.00_8wekyb3d8bbwe --- VCLibs 运行库</span><br><span class="line">Microsoft.WindowsTerminal_8wekyb3d8bbwe --- 终端</span><br><span class="line">Microsoft.DesktopAppInstaller_8wekyb3d8bbwe --- Appx 安装器</span><br><span class="line">MicrosoftCorporationII.QuickAssist_8wekyb3d8bbwe --- 快速助手</span><br></pre></td></tr></table></figure><p>由于正式版的小版本间依靠增量更新,所以转换速度上远不如预览版镜像速度快</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/customuup/customuup4.png" alt="效果"></p>]]></content>
<categories>
<category> 教程 </category>
<category> Windows </category>
</categories>
<tags>
<tag> Windows </tag>
</tags>
</entry>
<entry>
<title>自定义微 PE 组件</title>
<link href="/zh-CN/tutorial/Windows/DIY_WePE_features/"/>
<url>/zh-CN/tutorial/Windows/DIY_WePE_features/</url>
<content type="html"><![CDATA[<h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><p>虽说是写着给微 PE 用,但其它的 PE 也是大同小异<br>像 FirPE 这种能加插件的直接从 Edgeless Hub 或者自己做插件后自己加载就好</p><h3 id="准备工具"><a href="#准备工具" class="headerlink" title="准备工具"></a>准备工具</h3><p><a href="https://github.com/Chuyu-Team/Dism-Multi-language/releases">Dism++</a><br>UltraISO(资源列表内有)<br><a href="https://www.7-zip.org/">7-Zip</a>(或者其它的压缩软件也可以)<br><a href="https://www.wepe.com.cn/">微 PE</a></p><h2 id="释放映像"><a href="#释放映像" class="headerlink" title="释放映像"></a>释放映像</h2><p>使用 UltraISO 打开 PE 镜像文件,在 <code>WEPE</code> 文件夹下找到名为 <code>WEPE64.wim(或者是 WEPE32.wim)</code> 的文件,提取到空白文件夹<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DIY_WePE_features/DIY_WePE_features1.png" alt="WEPE64.wim"><br>打开 Dism++,点击“文件(F)” - “挂载映像 Ctrl+Shift+N”<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DIY_WePE_features/DIY_WePE_features2.png" alt="功能选择"><br>在第一个框选择 <code>WEPE64.wim(或者是 WEPE32.wim)</code> 文件,第二个框选择需要挂载到的目录(请选择空白文件夹,最好只有英文与阿拉伯数字),一般情况下目标映像可以不用改动<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DIY_WePE_features/DIY_WePE_features3.png" alt="挂载映像"><br>挂载完后就可以在挂载目录下看到文件了<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DIY_WePE_features/DIY_WePE_features4.png" alt="挂载目录"></p><h2 id="修改映像"><a href="#修改映像" class="headerlink" title="修改映像"></a>修改映像</h2><h3 id="添加软件"><a href="#添加软件" class="headerlink" title="添加软件"></a>添加软件</h3><p>打开 <code>Program Files</code> 文件夹,在里面新建文件夹并重命名,将你需要的软件放进去(最好是能直接运行的免安装版,<font size=5 color=red>名称不要有空格,名称不要有空格,名称不要有空格</font>)<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DIY_WePE_features/DIY_WePE_features5.png" alt="存放软件"><br>完成后找到 <code>Program Files</code> 文件夹最下面的 <code>PETools.ini</code> 文件并打开<br>找到 <code>//创建桌面快捷方式</code> 这一行,在下面新建一行,然后输入代码</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">LINK <span class="variable">%Desktop%</span>\<快捷方式名称>,<span class="variable">%ProgramFiles%</span>\软件目录\主程序名</span><br></pre></td></tr></table></figure><p>假如我要放入的程序叫 <code>AIDA64</code>,软件目录在 <code>AIDA64</code>,主程序名为 <code>aida64.exe</code>,则代码应为</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">LINK <span class="variable">%Desktop%</span>\AIDA64,<span class="variable">%ProgramFiles%</span>\AIDA64\aida64.exe</span><br></pre></td></tr></table></figure><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DIY_WePE_features/DIY_WePE_features6.png" alt="桌面快捷方式"></p><hr><p>找到 <code>//创建开始菜单所有程序快捷方式</code> 这一行,在下面随便找个你想要的位置新建一行,然后输入代码</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">LINK <span class="variable">%Programs%</span>\<需要放置快捷方式的文件夹>\<快捷方式名称>,<span class="variable">%ProgramFiles%</span>\软件目录\主程序名</span><br></pre></td></tr></table></figure><p>与上面相同,假如我「需要放置快捷方式的文件夹叫 <code>硬件检测</code>」(这个部分可以去除),放入的程序叫 <code>AIDA64</code>,软件目录在 <code>AIDA64</code>,主程序名为 <code>aida64.exe</code>,则代码应为</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">LINK <span class="variable">%Programs%</span>\硬件检测\AIDA64,<span class="variable">%ProgramFiles%</span>\AIDA64\aida64.exe</span><br></pre></td></tr></table></figure><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DIY_WePE_features/DIY_WePE_features7.png" alt="开始菜单快捷方式"></p><p>完成后保存文件</p><hr><h3 id="添加驱动"><a href="#添加驱动" class="headerlink" title="添加驱动"></a>添加驱动</h3><p>在 Dism++ 侧栏中点击“驱动管理”,然后点击右下角“添加驱动”,并选择驱动所在文件夹(一般选择 ini 文件的所在目录或上层目录就行)<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DIY_WePE_features/DIY_WePE_features8.png" alt="添加驱动"></p><h3 id="其它改动"><a href="#其它改动" class="headerlink" title="其它改动"></a>其它改动</h3><p>其它改动就和正常 Windows 没什么不同,自行摸索摸索就好</p><h2 id="保存映像"><a href="#保存映像" class="headerlink" title="保存映像"></a>保存映像</h2><p>先退出所有正在打开<strong>关于 PE 的文件夹</strong><br>点击“文件(F)” - “保存映像 Ctrl+S”<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DIY_WePE_features/DIY_WePE_features9.png" alt="保存映像"><br>然后选择“直接保存”<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DIY_WePE_features/DIY_WePE_features10.png" alt="直接保存"><br>完成后按下键盘上的 <kbd>Delete</kbd> 键即可卸载镜像</p><p>使用 7-Zip 等压缩软件打开 <code>WEPE64.wim</code>,并删除名为 <code>[DELETED]</code> 的文件夹(如果提示无法访问或只读这类报错,可以再对映像进行一些些修改再试试,还不行就算了,反正又不大()<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DIY_WePE_features/DIY_WePE_features11.png" alt="删除 [DELETED]"><br>用 UltraISO 打开到 PE 的镜像,将 <code>WEPE64.wim</code> 替换进去,然后点击保存即可<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DIY_WePE_features/DIY_WePE_features12.png" alt="删除 [DELETED]"></p><h2 id="结尾"><a href="#结尾" class="headerlink" title="结尾"></a>结尾</h2><p>完成后可以在虚拟机试试,或者直接在电脑看看效果<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DIY_WePE_features/DIY_WePE_features13.png" alt="效果"></p><h2 id="附录"><a href="#附录" class="headerlink" title="附录"></a>附录</h2><h3 id="相对路径"><a href="#相对路径" class="headerlink" title="相对路径"></a>相对路径</h3><p>上文中出现的 <code>%Programs%</code>、<code>%Desktop%</code> 都属于相对路径,这么写是为了适应变化,不用为绝对路径找不到文件而烦恼<br>相对路径如下表</p><figure class="highlight txt"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">%Programs% >>> C:\Program Files</span><br><span class="line">%Desktop% >>> C:\Users\<用户名>\Desktop(此相对路径只有 PECMD 才有)</span><br><span class="line">%SystemRoot% = %WinDir% >>> C:\Windows</span><br><span class="line">%SystemDrive% >>> C:\</span><br><span class="line">%AppData% >>> C:\Users\<用户名>\AppData\Roaming</span><br><span class="line">%LocalAppData% >>> C:\Users\<用户名>\AppData\Local</span><br><span class="line">%Temp% = %Tmp% >>> C:\Users\<用户名>\AppData\Local\Temp</span><br></pre></td></tr></table></figure>]]></content>
<categories>
<category> 教程 </category>
<category> Windows </category>
</categories>
<tags>
<tag> Windows </tag>
</tags>
</entry>
<entry>
<title>解锁完整 Apple 功能</title>
<link href="/zh-CN/tutorial/iOS/Unlock_full_Apple_features/"/>
<url>/zh-CN/tutorial/iOS/Unlock_full_Apple_features/</url>
<content type="html"><![CDATA[<p>iRingo 的 GitHub 仓库地址:<a href="https://github.com/VirgilClyne/iRingo">https://github.com/VirgilClyne/iRingo</a><br>可使用的代理软件(仅在非中国大陆地区提供)<br><a href="https://apps.apple.com/us/app/loon/id1373567447">Loon</a> | <a href="https://apps.apple.com/us/app/quantumult-x/id1443988620">Quantumult X</a> | <a href="https://apps.apple.com/us/app/shadowrocket/id932747118">Shadowrocket</a> | <a href="https://apps.apple.com/us/app/surge-5/id1442620678">Surge</a> | <a href="https://apps.apple.com/us/app/stash-rule-based-proxy/id1596063349">Stash</a><br><strong>iOS 16/iPadOS 16 有概率不成功</strong></p><p>更详细的说明请访问:<a href="https://github.com/VirgilClyne/iRingo/wiki">iRingo Wiki</a> 或看视频<br>| <a href="https://www.youtube.com/c/HellCell">作者主页:Hell Cell</a> | <a href="https://www.youtube.com/channel/UChfq00yeRrW4pB3idAypPVw">作者主页:Time</a> |<br>| :—: | :—: |<br>| <a href="https://www.youtube.com/watch?v=zNWVT08Hju0" title="iRingo 教程 01:给你的苹果前所未有的 Siri 与搜索体验"><img data-src="https://res.cloudinary.com/marcomontalbano/image/upload/v1656898276/video_to_markdown/images/youtube--zNWVT08Hju0-c05b58ac6eb4c4700831b2b3070cd403.jpg" alt="iRingo 教程 01:给你的苹果前所未有的 Siri 与搜索体验"></a> | <a href="https://www.youtube.com/watch?v=G-RH7icI9Wc" title="iRingo Siri 建议,天气激活"><img data-src="https://res.cloudinary.com/marcomontalbano/image/upload/v1656898353/video_to_markdown/images/youtube--G-RH7icI9Wc-c05b58ac6eb4c4700831b2b3070cd403.jpg" alt="iRingo Siri 建议,天气激活"></a> |</p><h2 id="首次使用"><a href="#首次使用" class="headerlink" title="首次使用"></a>首次使用</h2><p>访问 <a href="https://github.com/VirgilClyne/iRingo/wiki/%F0%9F%A7%B0-BoxJs">BoxJs/iRingo</a>,在“BoxJs 安装链接”选择你目前正在使用的代理软件,点击“🆕点击一键安装”之后的链接进行模块安装<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Unlock_full_Apple_features/Unlock_full_Apple_features1.png" alt="安装 BoxJs"><br>最后就可以看到在代理软件里已经安装好的模块了<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Unlock_full_Apple_features/Unlock_full_Apple_features2.png" alt="BoxJs 模块"><br>再次回到刚刚的页面,在“订阅链接”里点击方法一下面的按钮订阅链接<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Unlock_full_Apple_features/Unlock_full_Apple_features3.png" alt="BoxJs 订阅链接"><br>跳转之后就代表订阅成功<br><strong>此时的页面请不要先关闭</strong><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Unlock_full_Apple_features/Unlock_full_Apple_features4.png" alt="BoxJs 订阅成功"></p><h2 id="启用功能"><a href="#启用功能" class="headerlink" title="启用功能"></a>启用功能</h2><h3 id="安装模块"><a href="#安装模块" class="headerlink" title="安装模块"></a>安装模块</h3><p>在“快速导航”中选择你需要解锁的功能,并点击“安装链接”<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Unlock_full_Apple_features/Unlock_full_Apple_features5.png" alt="安装功能模块"><br>以 Siri 与搜索为例,选择你目前正在使用的软件,点击“🆕点击一键安装”之后的链接进行订阅<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Unlock_full_Apple_features/Unlock_full_Apple_features6.png" alt="订阅功能模块"><br>完成后,相对应的模块/插件会出现<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Unlock_full_Apple_features/Unlock_full_Apple_features7.png" alt="模块订阅成功"><br>订阅完成后,回到“BoxJs 订阅成功”的页面,点击下方的“应用”,并展开“iRingo”的项目,选择你需要修改的模块<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Unlock_full_Apple_features/Unlock_full_Apple_features8.png" alt="选择模块修改"><br>在里面修改你需要的配置,然后确保<strong>总功能开关</strong>已经开启<br>(对于不同的国家/地区,所提供的功能会有所不同)<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Unlock_full_Apple_features/Unlock_full_Apple_features9.png" alt="修改模块功能"><br>完成后滑到页面最下方,点击“保存”、“克隆”、“应用”(需要按顺序点击才会出现“应用”按钮)<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Unlock_full_Apple_features/Unlock_full_Apple_features10.png" alt="保存模块修改"><br>回到代理软件,将代理模式改为“全局代理”或“代理”<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Unlock_full_Apple_features/Unlock_full_Apple_features11.png" alt="代理模式"><br>然后,在模块中,重新获取一次模块更新(其它软件是否需要不是很懂)<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Unlock_full_Apple_features/Unlock_full_Apple_features12.png" alt="更新模块"><br>如果你是用的是 Loon 等代理,则需要开启“脚本”、“复写”、和“MitM”<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Unlock_full_Apple_features/Unlock_full_Apple_features13.png" alt="必要功能"></p><h3 id="激活模块"><a href="#激活模块" class="headerlink" title="激活模块"></a>激活模块</h3><ul><li>在代理软件中启用模块/插件和代理功能</li><li>将你的设备开启飞行模式,并保持联网以触发<code>基于网络的地区检测</code>(未装有 SIM 卡的 iOS/iPadOS/macOS 设备,可省略该步骤)<ul><li>仅无线局域网/有线网络可触发`基于网络的地区检测`</li></ul></li><li>重新开关<code>定位服务</code>,然后重新打开<code>地图</code>应用等待几十秒,再打开 Spotlight 之类你所配置好的功能,即可看到已经成功实现了<br>(你可以在任意浏览器中访问 <a href="https://gspe1-ssl.ls.apple.com/pep/gcc">https://gspe1-ssl.ls.apple.com/pep/gcc</a>,里面所出现的代码则是你当前的地区)<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Unlock_full_Apple_features/Unlock_full_Apple_features14.png" alt="搜索赛程"><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Unlock_full_Apple_features/Unlock_full_Apple_features15.png" alt="NBA 赛程"><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Unlock_full_Apple_features/Unlock_full_Apple_features16.png" alt="在 App Store 搜索"></li></ul>]]></content>
<categories>
<category> 教程 </category>
<category> iOS </category>
</categories>
</entry>
<entry>
<title>降级 Windows</title>
<link href="/zh-CN/tutorial/Windows/Downgrade_Windows/"/>
<url>/zh-CN/tutorial/Windows/Downgrade_Windows/</url>
<content type="html"><![CDATA[<p>替换 <code>setuphost.exe</code> 之前,Setup 无法正常保留文件降级系统<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Downgrade_Windows/Downgrade_Windows1.png" alt="无法保留文件"></p><p>使用 UltraISO(“网站”——“资源列表”),将新版本镜像内 <code>sources</code> 文件夹下的 <code>setuphost.exe</code> 文件,替换到旧版本镜像,并保存<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Downgrade_Windows/Downgrade_Windows2.png" alt="替换文件"></p><p>不知道镜像从哪下请看 <a href="/zh-CN/tutorial/Windows/UUP/" title="使用 UUP 构建 Windows 镜像">使用 UUP 构建 Windows 镜像</a></p><hr><p><strong>如果无法保存</strong><br>(没有截图,凑合看吧()<br>将旧版本镜像内所有内容解压,点击 UltraISO 上方“启动”——“保存引导文件…”,随意存放到一个位置<br><br>将新版本镜像内 <code>sources</code> 文件夹下的 <code>setuphost.exe</code> 文件复制出来替换<br><br>用 UltraISO 新建镜像,将旧版本镜像内所有文件复制进去,点击 UltraISO 上方“启动”——“加载引导文件…”,并选择刚刚保存的引导文件,最后点击保存即可</p><hr><p>替换完成后就可以保留文件降级 Windows 了<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Downgrade_Windows/Downgrade_Windows3.png" alt="准备就绪"><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Downgrade_Windows/Downgrade_Windows4.png" alt="安装 1"><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Downgrade_Windows/Downgrade_Windows5.png" alt="安装 2"></p><p>最后就可以正常使用(可能会出现一些奇奇怪怪的 Bug)<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Downgrade_Windows/Downgrade_Windows6.png" alt="效果"></p>]]></content>
<categories>
<category> 教程 </category>
<category> Windows </category>
</categories>
<tags>
<tag> Windows </tag>
</tags>
</entry>
<entry>
<title>UEFI 使用 DISM 命令安装系统</title>
<link href="/zh-CN/tutorial/Windows/DISM_instOS_UEFI/"/>
<url>/zh-CN/tutorial/Windows/DISM_instOS_UEFI/</url>
<content type="html"><![CDATA[<p><strong>如果你使用的是 BIOS(Legacy) 启动请看上一篇文章<a href="/zh-CN/tutorial/Windows/DISM_instOS_BIOS/" title="《BIOS 使用 DISM 命令安装系统》">《BIOS 使用 DISM 命令安装系统》</a></strong></p><h2 id="操作磁盘"><a href="#操作磁盘" class="headerlink" title="操作磁盘"></a>操作磁盘</h2><p>在 CMD 中输入如下命令</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">DiskPart</span><br><span class="line">List Disk</span><br></pre></td></tr></table></figure><p>在列表中会展现出计算机上所有已安装的磁盘<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DISM_instOS_UEFI/DISM_instOS_UEFI1.png" alt="磁盘列表"><br>确定好需要格式化的磁盘,输入命令</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">Select Disk <磁盘编号></span><br><span class="line"></span><br><span class="line"># 如果你需要选择磁盘 <span class="number">0</span> 则命令如下</span><br><span class="line"></span><br><span class="line">Select Disk <span class="number">0</span></span><br></pre></td></tr></table></figure><h3 id="删除磁盘"><a href="#删除磁盘" class="headerlink" title="删除磁盘"></a>删除磁盘</h3><h4 id="如果你的磁盘上有其它分区"><a href="#如果你的磁盘上有其它分区" class="headerlink" title="如果你的磁盘上有其它分区"></a>如果你的磁盘上有其它分区</h4><p>列出磁盘内的分区</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">List Partition</span><br></pre></td></tr></table></figure><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DISM_instOS_UEFI/DISM_instOS_UEFI2.png" alt="分区列表"></p><p>选择你需要进行操作并删除的分区<br>依照以下命令可以多次执行</p><blockquote><q>若要删除动态卷,请始终改为 使用 Delete Volume 命令。</q></blockquote><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">Select Partition <分区编号></span><br><span class="line">Delete Partition</span><br><span class="line"></span><br><span class="line"># 如果你需要选择分区 <span class="number">3</span> 并删除,则命令如下</span><br><span class="line"></span><br><span class="line">Select Partition <span class="number">3</span></span><br><span class="line">Delete Partition</span><br></pre></td></tr></table></figure><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DISM_instOS_UEFI/DISM_instOS_UEFI3.png" alt="操作分区"></p><blockquote>若要删除受保护的磁盘(如类型为“系统”与“保留”),则需要在 `Delete Partition` 命令后添加 `Override` 参数<br>如果需要一次性将磁盘上所有分区删除,请使用 `Clean` 命令,然后再用 `Convert GPT` 将磁盘转换为 GPT</br></blockquote><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DISM_instOS_UEFI/DISM_instOS_UEFI4.png" alt="参数"></p><p>最后再次使用 <code>List Partition</code> 即可看到<q>这个磁盘上没有显示的分区。</q></p><hr><h4 id="如果你的磁盘上没有其它分区"><a href="#如果你的磁盘上没有其它分区" class="headerlink" title="如果你的磁盘上没有其它分区"></a>如果你的磁盘上没有其它分区</h4><p>如果磁盘是空白的请继续往下看<a href="#%E5%88%9B%E5%BB%BA%E5%88%86%E5%8C%BA">创建分区</a></p><hr><h3 id="创建分区"><a href="#创建分区" class="headerlink" title="创建分区"></a>创建分区</h3><h4 id="创建-MSR、ESP-分区"><a href="#创建-MSR、ESP-分区" class="headerlink" title="创建 MSR、ESP 分区"></a>创建 MSR、ESP 分区</h4><p>使用命令创建 MSR(保留分区)与 ESP(EFI)分区</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">Create Partition EFI Size=<span class="number">300</span></span><br><span class="line">Create Partition MSR Size=<span class="number">128</span></span><br></pre></td></tr></table></figure><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DISM_instOS_UEFI/DISM_instOS_UEFI5.png" alt="创建MSR、ESP 分区"></p><h4 id="创建主要分区"><a href="#创建主要分区" class="headerlink" title="创建主要分区"></a>创建主要分区</h4><p>使用命令创建主分区</p><blockquote>主要分区,在 GPT(GUID) 磁盘上至多创建 128 个</blockquote><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">Create Partition Primary Size=<分区大小></span><br><span class="line"></span><br><span class="line"># 分区大小以 MiB 为单位,<span class="number">1</span>GiB=<span class="number">1024</span>MiB(微软常常会省略中间的“i”不写)</span><br><span class="line"># 若我需要创建一个大小为 <span class="number">50</span>GiB 的主要分区作为系统盘,<span class="number">9</span>GiB 的另一个主分区装东西,则命令如下</span><br><span class="line"></span><br><span class="line">Create Partition Primary Size=<span class="number">51200</span></span><br><span class="line">Create Partition Primary Size=<span class="number">9216</span></span><br></pre></td></tr></table></figure><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DISM_instOS_UEFI/DISM_instOS_UEFI6.png" alt="创建主要分区"></p><blockquote>如果将 <q>Size=<分区大小></q> 这个参数去掉,则会默认将所有可用的空间创建为一个分区</blockquote><h3 id="格式化磁盘"><a href="#格式化磁盘" class="headerlink" title="格式化磁盘"></a>格式化磁盘</h3><p>使用以下命令格式化磁盘<br>主要分区:</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line">List Partition</span><br><span class="line">Select Partition <分区编号></span><br><span class="line"><span class="built_in">Format</span> <span class="built_in">fs</span>=NTFS Quick</span><br><span class="line">Assign Letter=<盘符></span><br><span class="line"></span><br><span class="line"># 若我需要格式化第 <span class="number">3</span> 个分区,文件系统为 NTFS 并快速格式化,盘符为 C,则命令如下</span><br><span class="line"># 可多次重复命令直至需要的所有分区被创建</span><br><span class="line"></span><br><span class="line">List Partition</span><br><span class="line">Select Partition <span class="number">3</span></span><br><span class="line"><span class="built_in">Format</span> <span class="built_in">fs</span>=NTFS Quick</span><br><span class="line">Assign Letter=C</span><br></pre></td></tr></table></figure><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DISM_instOS_UEFI/DISM_instOS_UEFI7.png" alt="格式化主要分区"></p><p>EFI 分区:</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line">List Partition</span><br><span class="line">Select Partition <分区编号></span><br><span class="line"><span class="built_in">Format</span> <span class="built_in">fs</span>=FAT32 Quick <span class="built_in">Label</span>=System</span><br><span class="line">Assign Letter=Z</span><br><span class="line"></span><br><span class="line"># 若我 EFI 分区是第 <span class="number">1</span> 个,需要将 EFI 分区格式化为 FAT32,盘符为 Z,则命令如下</span><br><span class="line"></span><br><span class="line">List Partition</span><br><span class="line">Select Partition <span class="number">1</span></span><br><span class="line"><span class="built_in">Format</span> <span class="built_in">fs</span>=FAT32 Quick <span class="built_in">Label</span>=System</span><br><span class="line">Assign Letter=Z</span><br></pre></td></tr></table></figure><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DISM_instOS_UEFI/DISM_instOS_UEFI8.png" alt="格式化 EFI 分区"></p><p>完成后使用命令查看所有卷</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">List <span class="built_in">Vol</span></span><br></pre></td></tr></table></figure><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DISM_instOS_UEFI/DISM_instOS_UEFI9.png" alt="所有卷"></p><p>完成以后退出 DiskPart 即可</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">Exit</span></span><br></pre></td></tr></table></figure><h2 id="安装系统"><a href="#安装系统" class="headerlink" title="安装系统"></a>安装系统</h2><p>输入命令来查看 WIM/ESD 映像内可用的系统版本</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">DISM.exe /Get-WimInfo /WimFile:<WIM/ESD 存放路径></span><br><span class="line"></span><br><span class="line"># 假如我存放在 E 盘下的 Sources 文件夹并命名为 install.wim,则命令如下</span><br><span class="line"></span><br><span class="line">DISM.exe /Get-WimInfo /WimFile:E:\Sources\install.wim</span><br></pre></td></tr></table></figure><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DISM_instOS_UEFI/DISM_instOS_UEFI10.png" alt="查看可用系统"></p><p>然后,再将映像部署到本地磁盘</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">DISM.exe /Apply-Image /ImageFile:<WIM/ESD 存放路径> /Index:<映像内第几个版本> /ApplyDir:<安装的盘符>:\</span><br><span class="line"></span><br><span class="line"># 假如我存放在 E 盘下的 Sources 文件夹并命名为 install.wim,需要安装第一个版本,并安装在 C 盘,则命令如下</span><br><span class="line"></span><br><span class="line">DISM.exe /Apply-Image /ImageFile:E:\Sources\install.wim /Index:<span class="number">1</span> /ApplyDir:C:\</span><br></pre></td></tr></table></figure><p>等待一会,DISM 将开始部署映像<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DISM_instOS_UEFI/DISM_instOS_UEFI11.png" alt="安装系统"><br>几分钟后系统就安装完成了<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DISM_instOS_UEFI/DISM_instOS_UEFI12.png" alt="结束安装"></p><hr><p>如果在 <安装的盘符>:\ 的后方加入 /WIMBoot 参数,则可以启用 WIMBoot 模式(仅限 SSD)<sup><a href="#参考文献">[1]</a></sup></p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">DISM /Apply-Image /ImageFile:D:\wimboot.wim /ApplyDir:E: /Index:<span class="number">1</span> /WIMBoot</span><br></pre></td></tr></table></figure><p><img data-src="https://webdoc.lenovo.com.cn/lenovowsi/new_cskb/uploadfile/20150713135738001.jpg" alt="如何使用 WIMBoot 方式安装 Win10 系统-联想知识库"></p><hr><h2 id="修复引导"><a href="#修复引导" class="headerlink" title="修复引导"></a>修复引导</h2><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">BCDBoot <系统盘盘符>:\Windows /s <EFI 分区盘符>: /f ALL</span><br><span class="line"></span><br><span class="line"># 若系统盘盘符为 C,EFI 分区盘符为 Z,则命令如下</span><br><span class="line"></span><br><span class="line">BCDBoot C:\Windows /s Z: /f ALL</span><br></pre></td></tr></table></figure><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DISM_instOS_UEFI/DISM_instOS_UEFI13.png" alt="修复引导"></p><p>最后重启计算机即可看到 Windows 启动了</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DISM_instOS_UEFI/DISM_instOS_UEFI14.png" alt="启动 Windows"></p><h2 id="参考文献"><a href="#参考文献" class="headerlink" title="参考文献"></a>参考文献</h2><p><a name = "ref 1" href="https://iknow.lenovo.com.cn/detail/dc_132132.html">如何使用 WIMBoot 方式安装 Win10 系统-联想知识库</a></p>]]></content>
<categories>
<category> 教程 </category>
<category> Windows </category>
<category> DISM </category>
</categories>
<tags>
<tag> Windows </tag>
</tags>
</entry>
<entry>
<title>BIOS 使用 DISM 命令安装系统</title>
<link href="/zh-CN/tutorial/Windows/DISM_instOS_BIOS/"/>
<url>/zh-CN/tutorial/Windows/DISM_instOS_BIOS/</url>
<content type="html"><![CDATA[<p><strong>如果你使用的是 UEFI 启动请看下一篇文章<a href="/zh-CN/tutorial/Windows/DISM_instOS_UEFI/" title="《UEFI 使用 DISM 命令安装系统》">《UEFI 使用 DISM 命令安装系统》</a></strong></p><h2 id="操作磁盘"><a href="#操作磁盘" class="headerlink" title="操作磁盘"></a>操作磁盘</h2><p>在 CMD 中输入如下命令</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">DiskPart</span><br><span class="line">List Disk</span><br></pre></td></tr></table></figure><p>在列表中会展现出计算机上所有已安装的磁盘<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DISM_instOS_BIOS/DISM_instOS_BIOS1.png" alt="磁盘列表"><br>确定好需要格式化的磁盘,输入命令</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">Select Disk <磁盘编号></span><br><span class="line"></span><br><span class="line"># 如果你需要选择磁盘 <span class="number">0</span> 则命令如下</span><br><span class="line"></span><br><span class="line">Select Disk <span class="number">0</span></span><br></pre></td></tr></table></figure><h3 id="删除磁盘"><a href="#删除磁盘" class="headerlink" title="删除磁盘"></a>删除磁盘</h3><h4 id="如果你的磁盘上有其它分区"><a href="#如果你的磁盘上有其它分区" class="headerlink" title="如果你的磁盘上有其它分区"></a>如果你的磁盘上有其它分区</h4><p>列出磁盘内的分区</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">List Partition</span><br></pre></td></tr></table></figure><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DISM_instOS_BIOS/DISM_instOS_BIOS2.png" alt="分区列表"></p><p>选择你需要进行操作并删除的分区<br>依照以下命令可以多次执行</p><blockquote><q>若要删除动态卷,请始终改为 使用 Delete Volume 命令。</q></blockquote><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">Select Partition <分区编号></span><br><span class="line">Delete Partition</span><br><span class="line"></span><br><span class="line"># 如果你需要选择分区 <span class="number">1</span> 并删除,则命令如下</span><br><span class="line"></span><br><span class="line">Select Partition <span class="number">1</span></span><br><span class="line">Delete Partition</span><br></pre></td></tr></table></figure><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DISM_instOS_BIOS/DISM_instOS_BIOS3.png" alt="操作分区"></p><blockquote>若要删除受保护的磁盘(如类型为“系统”与“保留”),则需要在 `Delete Partition` 命令后添加 `Override` 参数<br>如果需要一次性将磁盘上所有分区删除,请使用 `Clean` 命令,然后再用 `Convert MBR` 将磁盘转换为 MBR</br></blockquote><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DISM_instOS_BIOS/DISM_instOS_BIOS4.png" alt="参数"></p><p>最后再次使用 <code>List Partition</code> 即可看到<q>这个磁盘上没有显示的分区。</q></p><hr><h4 id="如果你的磁盘上没有其它分区"><a href="#如果你的磁盘上没有其它分区" class="headerlink" title="如果你的磁盘上没有其它分区"></a>如果你的磁盘上没有其它分区</h4><p>如果磁盘是空白的请继续往下看<a href="#%E5%88%9B%E5%BB%BA%E5%88%86%E5%8C%BA">创建分区</a></p><hr><h3 id="创建分区"><a href="#创建分区" class="headerlink" title="创建分区"></a>创建分区</h3><h4 id="创建主分区"><a href="#创建主分区" class="headerlink" title="创建主分区"></a>创建主分区</h4><p>使用命令创建主分区</p><blockquote>在 MBR 磁盘上,至多创建 4 个主分区;或者 3 个主分区+1 个拓展分区</blockquote><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">Create Partition Primary Size=<分区大小></span><br><span class="line"></span><br><span class="line"># 分区大小以 MiB 为单位,<span class="number">1</span>GiB=<span class="number">1024</span>MiB(微软常常会省略中间的“i”不写)</span><br><span class="line"># 若我需要创建一个大小为 <span class="number">50</span>GiB 的主分区作为系统盘,<span class="number">9</span>GiB 的主分区作为其它盘则命令如下</span><br><span class="line"></span><br><span class="line">Create Partition Primary Size=<span class="number">51200</span></span><br><span class="line">Create Partition Primary Size=<span class="number">9216</span></span><br></pre></td></tr></table></figure><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DISM_instOS_BIOS/DISM_instOS_BIOS5.png" alt="创建主分区"></p><blockquote>如果将 <q>Size=<分区大小></q> 这个参数去掉,则会默认将所有可用的空间创建为一个分区</blockquote><h3 id="格式化磁盘"><a href="#格式化磁盘" class="headerlink" title="格式化磁盘"></a>格式化磁盘</h3><p>使用以下命令格式化磁盘<br>主要分区:</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line">List Partition</span><br><span class="line">Select Partition <分区编号></span><br><span class="line"><span class="built_in">Format</span> <span class="built_in">fs</span>=NTFS Quick</span><br><span class="line">Assign Letter=<盘符></span><br><span class="line"></span><br><span class="line"># 若我需要格式化第 <span class="number">1</span> 个分区,文件系统为 NTFS 并快速格式化,盘符为 C,则命令如下</span><br><span class="line"># 可多次重复命令直至需要的所有分区被创建</span><br><span class="line"></span><br><span class="line">List Partition</span><br><span class="line">Select Partition <span class="number">1</span></span><br><span class="line"><span class="built_in">Format</span> <span class="built_in">fs</span>=NTFS Quick</span><br><span class="line">Assign Letter=C</span><br><span class="line">Active</span><br><span class="line"></span><br><span class="line"># Active 命令只针对于 C 盘,其它盘无需设置</span><br></pre></td></tr></table></figure><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DISM_instOS_BIOS/DISM_instOS_BIOS6.png" alt="格式化分区"></p><p>完成后使用命令查看所有卷</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">List <span class="built_in">Vol</span></span><br></pre></td></tr></table></figure><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DISM_instOS_BIOS/DISM_instOS_BIOS7.png" alt="所有卷"></p><p>完成以后退出 DiskPart 即可</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">Exit</span></span><br></pre></td></tr></table></figure><h2 id="安装系统"><a href="#安装系统" class="headerlink" title="安装系统"></a>安装系统</h2><p>输入命令来查看 WIM/ESD 映像内可用的系统版本</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">DISM.exe /Get-WimInfo /WimFile:<WIM/ESD 存放路径></span><br><span class="line"></span><br><span class="line"># 假如我存放在 E 盘下的 Sources 文件夹并命名为 install.wim,则命令如下</span><br><span class="line"></span><br><span class="line">DISM.exe /Get-WimInfo /WimFile:E:\Sources\install.wim</span><br></pre></td></tr></table></figure><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DISM_instOS_BIOS/DISM_instOS_BIOS8.png" alt="查看可用系统"></p><p>然后,再将映像部署到本地磁盘</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">DISM.exe /Apply-Image /ImageFile:<WIM/ESD 存放路径> /Index:<映像内第几个版本> /ApplyDir:<安装的盘符>:\</span><br><span class="line"></span><br><span class="line"># 假如我存放在 E 盘下的 Sources 文件夹并命名为 install.wim,需要安装第一个版本,并安装在 C 盘,则命令如下</span><br><span class="line"></span><br><span class="line">DISM.exe /Apply-Image /ImageFile:E:\Sources\install.wim /Index:<span class="number">1</span> /ApplyDir:C:\</span><br></pre></td></tr></table></figure><p>等待一会,DISM 将开始部署映像<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DISM_instOS_BIOS/DISM_instOS_BIOS9.png" alt="安装系统"><br>几分钟后系统就安装完成了<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DISM_instOS_BIOS/DISM_instOS_BIOS10.png" alt="结束安装"></p><h2 id="修复引导"><a href="#修复引导" class="headerlink" title="修复引导"></a>修复引导</h2><p>重建 MBR 并修复引导</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">Bootrec.exe /FixMbr</span><br><span class="line">BCDBoot C:\Windows /l zh-cn</span><br></pre></td></tr></table></figure><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DISM_instOS_BIOS/DISM_instOS_BIOS11.png" alt="修复引导"></p><p>最后重启计算机即可看到 Windows 启动了</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/DISM_instOS_BIOS/DISM_instOS_BIOS12.png" alt="启动 Windows"></p><details><summary>如果出现其它的报错</summary><p>你可以尝试无脑跑命令</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">Bootrec.exe /FixMbr</span><br><span class="line">Bootrec.exe /FixBoot</span><br><span class="line">Bootrec.exe /ScanOs</span><br><span class="line">Bootrec.exe /RebuildBcd</span><br></pre></td></tr></table></figure><p>具体可以参考 <a href="https://learn.microsoft.com/windows-hardware/manufacture/desktop/bcdboot-command-line-options-techref-di">Microsoft Learn</a> 或 <a href="https://support.microsoft.com/topic/%E4%BD%BF%E7%94%A8-windows-re-%E4%B8%AD%E7%9A%84-bootrec-exe-%E8%A7%A3%E5%86%B3%E5%90%AF%E5%8A%A8%E9%97%AE%E9%A2%98-902ebb04-daa3-4f90-579f-0fbf51f7dd5d">Microsoft Support</a></p></details>]]></content>
<categories>
<category> 教程 </category>
<category> Windows </category>
<category> DISM </category>
</categories>
<tags>
<tag> Windows </tag>
</tags>
</entry>
<entry>
<title>移除 Appx 类与 Msix 类应用程序包的安装限制</title>
<link href="/zh-CN/tutorial/Windows/Remove_installation_restrictions/"/>
<url>/zh-CN/tutorial/Windows/Remove_installation_restrictions/</url>
<content type="html"><![CDATA[<p>类似于 Apple Music 这样,把安装的版本限制在 Windows 11 22621.0 以上</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Remove_installation_restrictions/Remove_installation_restrictions1.png" alt="要求版本"></p><p>而在低于 Windows 11 22621.0 的系统则会无法安装该软件</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Remove_installation_restrictions/Remove_installation_restrictions2.png" alt="报错"></p><h2 id="下载包"><a href="#下载包" class="headerlink" title="下载包"></a>下载包</h2><p>首先在 Microsoft Store 里获取软件的链接<br>“分享链接”——“复制链接”</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Remove_installation_restrictions/Remove_installation_restrictions3.png" alt="获取链接"></p><p>随后在 <a href="https://store.rg-adguard.net/">https://store.rg-adguard.net</a> 中粘贴链接并下载你需要的软件包,<font color=yellow>以及下面所提供的,与你系统相匹配的运行库(一般选带有 x64 的即可)</font></p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Remove_installation_restrictions/Remove_installation_restrictions4.png" alt="获取包"></p><h2 id="修改包"><a href="#修改包" class="headerlink" title="修改包"></a>修改包</h2><p>使用 <a href="https://7-zip.org/">7-Zip</a>、<a href="https://www.bandisoft.com/bandizip">Bandizip</a> 等解压缩软件打开软件包,并将其<font color=red>全部解压到空白文件夹内(因为不再将其打包成 Appx,故不能再移动文件夹)</font></p><hr><p>正常来说,下载好的 AppxBundle 或 MsixBundle 内还会有几个 <code>.Appx</code> 或 <code>.Msix</code> 安装包<br>正常情况下需要再次解压最大的安装包到空白文件夹<br>注意需要辨别里面的包是 <code>ARM64</code>、<code>x64</code> 还是 <code>x86</code>,一般只需要 x64</p><hr><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Remove_installation_restrictions/Remove_installation_restrictions5.png" alt="解压"></p><p>使用记事本或其它文本编辑工具打开文件夹内的 <code>AppxManifest.xml</code><br>按下 <kbd>Ctrl</kbd> + <kbd>F</kbd> 打开“搜索”,并输入 <code>TargetDeviceFamily</code>,将所有结果里带引号 <code>"</code> 里的版本号更改为你的系统版本号并保存</p><blockquote>只需要更改 Name="Windows.Desktop" 那一行里 10.0 之后的数字<br>查看系统版本号如下:<br>按下 Windows 徽标键 + R,打开“运行”,输入“winver”(不包括引号)并回车<br>在第二行的括号内,“OS 内部版本”之后的那一串字符则为你的系统版本号<br>如果你嫌事多可以直接改成 10.0.19041.0,前提是你的系统版本 ≥ Windows 10 2004</br></blockquote><p><strong>TIPS:然后将目录里 <code>AppxMetadata</code> 文件夹、<code>[Content_Types].xml</code>、<code>AppxBlockMap.xml</code> 和 <code>AppxSignature.p7x</code> 给删除</strong></p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Remove_installation_restrictions/Remove_installation_restrictions6.png" alt="查找内容并更改"></p><p>在<a href="ms-settings:developers">设置</a>中打开“开发人员模式”</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Remove_installation_restrictions/Remove_installation_restrictions7.png" alt="开发者模式"></p><p>按下 <kbd>Windows 徽标键</kbd> + <kbd>Q</kbd>,输入“PowerShell”,右键选择“以管理员身份运行”</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Remove_installation_restrictions/Remove_installation_restrictions8.png" alt="打开 PowerShell"></p><p>在 PowerShell 中输入以下命令</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">cd</span> <span class="string">"<AppxManifest.xml 所在路径>"</span></span><br><span class="line"><span class="comment"># 比如我的路径在 C:\Program Files\AM 则命令为</span></span><br><span class="line"><span class="built_in">cd</span> <span class="string">"C:\Program Files\AM"</span></span><br></pre></td></tr></table></figure><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Remove_installation_restrictions/Remove_installation_restrictions9.png" alt="复制路径"></p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Add-AppxPackage</span> <span class="literal">-Register</span> .\AppxManifest.xml</span><br></pre></td></tr></table></figure><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Remove_installation_restrictions/Remove_installation_restrictions10.png" alt="输入命令"></p><p>如果没有缺少相对应的软件运行库,则只需几秒钟即可完成安装</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Remove_installation_restrictions/Remove_installation_restrictions11.png" alt="安装完成"></p><p>一般来说 Windows 10 2004 以上都可以正常运行</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Remove_installation_restrictions/Remove_installation_restrictions12.png" alt="运行 Apple Music"></p><h2 id="附录"><a href="#附录" class="headerlink" title="附录"></a>附录</h2><p>附 Windows 10 及以上正式版内核版本号:</p><blockquote><br>Windows 10 1507 >>> 10240<br>Windows 10 1511 >>> 10586<br>Windows 10 1607 >>> 14393<br>Windows 10 1703 >>> 15063<br>Windows 10 1709 >>> 16299<br>Windows 10 1803 >>> 17134<br>Windows 10 1809 / Windows 10 LTSC 2019 / Windows 10 神州网信政府版 2019 >>> 17763<br>Windows 10 1903 >>> 18362<br>Windows 10 1909 >>> 18363<br>Windows 10 2004 >>> 19041<br>Windows 10 20H2 >>> 19042<br>Windows 10 21H1 >>> 19043<br>Windows 10 21H2 / Windows 10 LTSC 2021 / Windows 10 神州网信政府版 2021 >>> 19044<br>Windows 10 22H2 >>> 19045<br><br>Windows 11 21H2 >>> 22000<br>Windows 11 22H2 >>> 22621<br>Windows 11 23H2 >>> 22631<br>Windows 11 24H2 / Windows 11 LTSC 2024 >>> 26100</br></blockquote>]]></content>
<categories>
<category> 教程 </category>
<category> Windows </category>
<category> PowerShell </category>
</categories>
<tags>
<tag> Windows </tag>
<tag> 软件 </tag>
</tags>
</entry>
<entry>
<title>更新 Hexo 和插件、主题</title>
<link href="/zh-CN/tutorial/Hexo/update/"/>
<url>/zh-CN/tutorial/Hexo/update/</url>
<content type="html"><![CDATA[<h2 id="准备工作"><a href="#准备工作" class="headerlink" title="准备工作"></a>准备工作</h2><p>备份好所有关于 Hexo 的文件,避免出错跑路(悲<br>以下所有操作建议在 Git 里运行<br>懒得配图了捏())(</p><h3 id="清理-npm-缓存"><a href="#清理-npm-缓存" class="headerlink" title="清理 npm 缓存"></a>清理 npm 缓存</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm cache clean -f --force</span><br></pre></td></tr></table></figure><h3 id="安装升级工具(全局)"><a href="#安装升级工具(全局)" class="headerlink" title="安装升级工具(全局)"></a>安装升级工具(全局)</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">npm install -g npm-check</span><br><span class="line">npm install -g npm-upgrade</span><br></pre></td></tr></table></figure><h2 id="更新-Hexo-版本"><a href="#更新-Hexo-版本" class="headerlink" title="更新 Hexo 版本"></a>更新 Hexo 版本</h2><h3 id="检查全局包是否可更新"><a href="#检查全局包是否可更新" class="headerlink" title="检查全局包是否可更新"></a>检查全局包是否可更新</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm-check -g</span><br></pre></td></tr></table></figure><h3 id="更新全局包"><a href="#更新全局包" class="headerlink" title="更新全局包"></a>更新全局包</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm update -g</span><br></pre></td></tr></table></figure><h3 id="更新-Hexo-版本-1"><a href="#更新-Hexo-版本-1" class="headerlink" title="更新 Hexo 版本"></a>更新 Hexo 版本</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install --global hexo</span><br></pre></td></tr></table></figure><h2 id="更新插件版本"><a href="#更新插件版本" class="headerlink" title="更新插件版本"></a>更新插件版本</h2><h3 id="更换目录至博客根目录"><a href="#更换目录至博客根目录" class="headerlink" title="更换目录至博客根目录"></a>更换目录至博客根目录</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">cd</span> /盘符/路径</span><br><span class="line"><span class="comment"># 比如我的在 D 盘下的 myblog/hexo</span></span><br><span class="line"><span class="built_in">cd</span> /d/myblog/hexo</span><br></pre></td></tr></table></figure><h3 id="检查可更新的包"><a href="#检查可更新的包" class="headerlink" title="检查可更新的包"></a>检查可更新的包</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm-check</span><br></pre></td></tr></table></figure><h3 id="更新-package-json-与插件"><a href="#更新-package-json-与插件" class="headerlink" title="更新 package.json 与插件"></a>更新 package.json 与插件</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">npm-upgrade</span><br><span class="line">npm update --save --force</span><br></pre></td></tr></table></figure><h3 id="删除模块目录与旧项目(可做)"><a href="#删除模块目录与旧项目(可做)" class="headerlink" title="删除模块目录与旧项目(可做)"></a>删除模块目录与旧项目(可做)</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">rm</span> -rf node_modules && npm install --force</span><br><span class="line"><span class="built_in">rm</span> -rf .deploy_git --force</span><br></pre></td></tr></table></figure><h3 id="修复依赖(没问题就不做)"><a href="#修复依赖(没问题就不做)" class="headerlink" title="修复依赖(没问题就不做)"></a>修复依赖(没问题就不做)</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm audix</span><br></pre></td></tr></table></figure><h2 id="更新主题版本"><a href="#更新主题版本" class="headerlink" title="更新主题版本"></a>更新主题版本</h2><h3 id="切换到主题目录"><a href="#切换到主题目录" class="headerlink" title="切换到主题目录"></a>切换到主题目录</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">cd</span> themes/主题名</span><br><span class="line"><span class="comment"># 比如我的主题是 butterfly</span></span><br><span class="line"><span class="built_in">cd</span> themes/butterfly</span><br></pre></td></tr></table></figure><h3 id="更新主题"><a href="#更新主题" class="headerlink" title="更新主题"></a>更新主题</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">git add .</span><br><span class="line">git stash</span><br><span class="line">git pull</span><br><span class="line">git stash pop</span><br></pre></td></tr></table></figure><h2 id="小结"><a href="#小结" class="headerlink" title="小结"></a>小结</h2><p>最后重新 <code>hexo s</code> 或 <code>hexo cl&&hexo g&&hexo d</code> 就可以了捏</p>]]></content>
<categories>
<category> 教程 </category>
<category> Hexo </category>
</categories>
<tags>
<tag> Hexo </tag>
</tags>
</entry>
<entry>
<title>远程桌面到登录 AzureAD 的设备</title>
<link href="/zh-CN/tutorial/Windows/AADmstsc/"/>
<url>/zh-CN/tutorial/Windows/AADmstsc/</url>
<content type="html"><![CDATA[<h2 id="配置设备"><a href="#配置设备" class="headerlink" title="配置设备"></a>配置设备</h2><p>在被操控的设备中执行以下操作:<br>按下 <kbd>Windows 徽标键</kbd>+<kbd>R</kbd>,输入 <code>SystemPropertiesRemote</code> 并回车<br>在“远程”页,选择“允许远程连接到此计算机(L)”,并取消勾选“仅允许运行使用网络级别身份验证的远程桌面的计算机连接(建议)(N)”,最后点击“确定”<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/AADmstsc/AADmstsc1.png" alt="开启远程桌面"></p><p>如果被操控的设备中 Azure AD 账户不为管理员则需要进行以下操作,否则请跳过该段</p><hr><p>在“搜索”中搜索 <code>PowerShell</code>,右键选择“以管理员身份运行”<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/AADmstsc/AADmstsc2.png" alt="运行 PowerShell"><br>接着在 PowerShell 中输入以下内容</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">net localgroup <span class="string">"Remote Desktop Users"</span> /add <span class="string">"AzureAD\<Azure AD 的账户域名>"</span></span><br></pre></td></tr></table></figure><p>比如我的 Azure AD 账户域名是 <code>114514@homo.com</code>,则命令就是(包括引号)</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">net localgroup <span class="string">"Remote Desktop Users"</span> /add <span class="string">"AzureAD\114514@homo.com"</span></span><br></pre></td></tr></table></figure><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/AADmstsc/AADmstsc3.png" alt="添加用户"></p><hr><p>如果操控设备为 Windows 10 1607 及更高版本的 Windows,则需要在<a href="ms-settings:workplace">设置</a>中登录到与被操控的设备同样的 Azure AD 域中<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/AADmstsc/AADmstsc4.png" alt="登录 Azure AD"></p><p>最后在登录时,登录的账户应为</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">AzureAD\<Azure AD 的账户域名></span><br></pre></td></tr></table></figure><p>比如我的 Azure AD 账户域名是 <code>114514@homo.com</code>,账户就是</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">AzureAD\114514@homo.com</span><br></pre></td></tr></table></figure><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/AADmstsc/AADmstsc5.png" alt="登录到设备"></p><h2 id="注意事项"><a href="#注意事项" class="headerlink" title="注意事项"></a>注意事项</h2><li>本地和远程电脑都必须运行 Windows 10 1607 或更高版本,不支持与运行早期版本的 Windows 10 与已加入 Azure AD 的电脑建立远程连接</li><li>从进行连接的本地电脑,如果运行 Windows 10 1607 及更高版本,则必须已加入 Azure AD ,或已加入混合 Azure AD;如果使用 Windows 10 2004 及更高版本,则必须注册到 Azure AD, 不支持从未加入的设备或非 Windows 10/11 设备远程连接到已加入 Azure AD 的电脑</li><li>本地电脑和远程电脑必须位于同一 Azure AD 租户中,远程桌面不支持 Azure AD B2B 来宾</li><li>确保在用于连接到远程电脑的客户端电脑上关闭远程 Credential Guard(Windows 10版本 1607 中的一项新功能)</li><h2 id="参考文献"><a href="#参考文献" class="headerlink" title="参考文献"></a>参考文献</h2><p><a href="https://learn.microsoft.com/windows/client-management/connect-to-remote-aadj-pc">Microsoft Learn</a></p>]]></content>
<categories>
<category> 教程 </category>
<category> Windows </category>
<category> PowerShell </category>
</categories>
<tags>
<tag> Windows </tag>
</tags>
</entry>
<entry>
<title>屏蔽 Windows 各种更新</title>
<link href="/zh-CN/tutorial/Windows/blockfeatureupd/"/>
<url>/zh-CN/tutorial/Windows/blockfeatureupd/</url>
<content type="html"><![CDATA[<h2 id="用前说明"><a href="#用前说明" class="headerlink" title="用前说明"></a>用前说明</h2><p><a href="http://download.microsoft.com/download/F/2/2/F22D5FDB-59CD-4275-8C95-1BE17BF70B21/wushowhide.diagcab">wushowhide.diagcab 直链下载</a></p><h2 id="屏蔽更新"><a href="#屏蔽更新" class="headerlink" title="屏蔽更新"></a>屏蔽更新</h2><p>直接运行 wushowhide.diagcab,并点击“下一步(N)”<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/blockfeatureupd/blockfeatureupd1.png" alt="下一步"><br>等待几分钟,疑难解答程序会自动搜索可用更新<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/blockfeatureupd/blockfeatureupd2.png" alt="查找更新"><br>查找完成后点击“Hide updates”,并勾选你需要屏蔽的更新,并点击“下一步(N)”<br>(如果没有需要屏蔽的更新可以重启电脑后再次尝试;如果你反悔了想重新获取那个更新就点击“Show hidden updates”)<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/blockfeatureupd/blockfeatureupd3.png" alt="Hide updates"><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/blockfeatureupd/blockfeatureupd4.png" alt="选择更新"><br>最后稍等片刻,即可成功屏蔽更新,重启计算机即可<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/blockfeatureupd/blockfeatureupd5.png" alt="疑难解答已完成"><br>在<a href="ms-settings:windowsupdate">设置</a>里就不会获取到被屏蔽的更新了<br>(<font size=4 color=red>请不要清理 <code>C:\Windows\SoftwareDistribution</code> 下除 <code>Downloads</code> 的文件(夹),否则需要重新运行 wushowhide.diagcab</font>;如果依旧无效,请看<a href="#%E9%99%84%E5%BD%95">附录</a>)<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/blockfeatureupd/blockfeatureupd6.png" alt="更新"></p><h2 id="附录"><a href="#附录" class="headerlink" title="附录"></a>附录</h2><p>按下 <kbd>Windows 徽标键</kbd>+<kbd>R</kbd>,输入 <code>services.msc</code> 并回车<br>找到名为“Windows Update”或“Windows 更新”的服务,点击旁边的“停止”<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/blockfeatureupd/blockfeatureupd7.png" alt="Windows 更新服务"><br>然后再找到 <code>C:\Windows\SoftwareDistribution</code>,并把里面所有文件(夹)删除<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/blockfeatureupd/blockfeatureupd8.png" alt="SoftwareDistribution"><br>最后到<a href="ms-settings:windowsupdate">设置</a>里重新获取更新后再运行 wushowhide.diagcab 即可</p>]]></content>
<categories>
<category> 教程 </category>
<category> Windows </category>
</categories>
<tags>
<tag> Windows </tag>
</tags>
</entry>
<entry>
<title>屏蔽获取 Windows 11 更新</title>
<link href="/zh-CN/tutorial/Windows/blockWin11upd/"/>
<url>/zh-CN/tutorial/Windows/blockWin11upd/</url>
<content type="html"><![CDATA[<h2 id="用前说明"><a href="#用前说明" class="headerlink" title="用前说明"></a>用前说明</h2><p>如果以下操作都没有办法屏蔽,可以再试试这个方法 <a href="/zh-CN/tutorial/Windows/blockfeatureupd/" title="屏蔽 Windows 各种更新">屏蔽 Windows 各种更新</a></p><h2 id="使用组策略"><a href="#使用组策略" class="headerlink" title="使用组策略"></a>使用组策略</h2><p>(家庭版没有组策略功能,所以需要用注册表,请浏览<a href="#%E4%BD%BF%E7%94%A8%E6%B3%A8%E5%86%8C%E8%A1%A8">下一章</a><br>按下 <kbd>Windows 徽标键</kbd>+<kbd>R</kbd> 来打开运行,并输入 <code>gpedit.msc</code> 并回车<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/blockWin11upd/blockWin11upd1.png" alt="组策略"><br>然后找到“计算机配置”>“管理模板”>“Windows 组件”>“Windows 更新”>“适用于企业的 Windows 更新”>“选择目标功能更新版本”<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/blockWin11upd/blockWin11upd2.png" alt="定位"><br>然后点击“已启用(E)”,然后在下面的第一个矩形框中输入 <code>Windows 10</code>,第二个框根据你的系统版本填写,如 <code>22H2</code>,最后点确定保存<br>但如果设置到了不再支持设置的版本,将强制执行功能升级<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/blockWin11upd/blockWin11upd3.png" alt="值"><br>最后在“Windows 更新”里就会有提示了<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/blockWin11upd/blockWin11upd4.png" alt="设置策略"><br>Windows 11 更新的提示也没了<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/blockWin11upd/blockWin11upd5.png" alt="提示"></p><h2 id="使用注册表"><a href="#使用注册表" class="headerlink" title="使用注册表"></a>使用注册表</h2>]]></content>
<categories>
<category> 教程 </category>
<category> Windows </category>
</categories>
<tags>
<tag> Windows </tag>
</tags>
</entry>
<entry>
<title>Edge 开启预览视觉效果</title>
<link href="/zh-CN/tutorial/Windows/edge-visual/"/>
<url>/zh-CN/tutorial/Windows/edge-visual/</url>
<content type="html"><![CDATA[<h2 id="用前说明"><a href="#用前说明" class="headerlink" title="用前说明"></a>用前说明</h2><p>请确保你的 Microsoft Edge 版本 ≥102(最好是最新)<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/edge-visual/edge-visual1.png" alt="Microsoft Edge 版本"></p><h2 id="开启实验模式"><a href="#开启实验模式" class="headerlink" title="开启实验模式"></a>开启实验模式</h2><p>在地址栏输入 <code>edge://flags</code> 并回车<br>在搜索栏中输入“Windows 11”并回车,找到以下几个项目并改为“Enabled”<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/edge-visual/edge-visual2.png" alt="要开启的功能 1"><br>然后再次在搜索栏输入“Rounded”并回车,找到项目并改为“Enabled”<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/edge-visual/edge-visual3.png" alt="要开启的功能 2"><br>最后点击下方的“重启”<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/edge-visual/edge-visual4.png" alt="重启"><br>重启 Microsoft Edge 后在地址栏输入 <code>edge://settings/appearance</code> 并回车<br>将这两个选项开启并重启 Microsoft Edge 后即可生效<br>红色矩形框是开启的功能,橙色矩形框是开启后的效果<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/edge-visual/edge-visual5.png" alt="效果"></p>]]></content>
<categories>
<category> 教程 </category>
<category> Windows </category>
</categories>
<tags>
<tag> Windows </tag>
<tag> 软件 </tag>
</tags>
</entry>
<entry>
<title>Windows 7 开启安全启动</title>
<link href="/zh-CN/tutorial/Windows/Win7SecureBoot/"/>
<url>/zh-CN/tutorial/Windows/Win7SecureBoot/</url>
<content type="html"><![CDATA[<h2 id="用前说明"><a href="#用前说明" class="headerlink" title="用前说明"></a>用前说明</h2><h3 id="补丁包"><a href="#补丁包" class="headerlink" title="补丁包"></a>补丁包</h3><p>以下渠道请二选一,OneDrive 是多个打包好的,Microsoft® Update Catalog 则需要自己手动选择合适的分批次下载</p><h4 id="OneDrive"><a href="#OneDrive" class="headerlink" title="OneDrive"></a>OneDrive</h4><p><a href="https://gbcs6-my.sharepoint.com/:f:/g/personal/gucats_gbcs6_onmicrosoft_com/Ekwu8VFekwtMhhTt7V3_kT0BfW4X30mYs-aNrHbfosneCg?e=f9GSM8">OneDrive 下载</a></p><h4 id="Microsoft®-Update-Catalog"><a href="#Microsoft®-Update-Catalog" class="headerlink" title="Microsoft® Update Catalog"></a>Microsoft® Update Catalog</h4><p><a href="https://www.catalog.update.microsoft.com/Search.aspx?q=KB3020369">KB3020369</a><br><a href="https://www.catalog.update.microsoft.com/Search.aspx?q=KB3125574">KB3125574</a><br><a href="https://catalog.update.microsoft.com/Search.aspx?q=Servicing%20Stack">服务堆栈更新</a><br><a href="https://www.catalog.update.microsoft.com/Search.aspx?q=KB5017361">KB5017361</a></p><blockquote>为什么要安装这么多补丁</blockquote><p>为什么要安装前两个补丁详见 <a href="https://support.microsoft.com/topic/%E9%92%88%E5%AF%B9-windows-%E5%92%8C-wsus-%E7%9A%84-2019-sha-2-%E4%BB%A3%E7%A0%81%E7%AD%BE%E5%90%8D%E6%94%AF%E6%8C%81%E8%A6%81%E6%B1%82-64d1c82d-31ee-c273-3930-69a4cde8e64f">Microsoft Support</a><br>而安装服务堆栈更新则是避免 WSUS.exe 报错<br>KB5017361 则才是支持安全启动的补丁</p><hr><p>实际上的话让 Windows Update 安装更新列表里的更新就好了,不用费那么多事<br>目前为止还没查明少了哪个补丁会导致 KB5017361 无法安装,但如果整个系统只有以上几个补丁(不包括 KB5017361)时,安装完重启后会提示安装失败</p><hr><h2 id="安装补丁"><a href="#安装补丁" class="headerlink" title="安装补丁"></a>安装补丁</h2><p><font size=4 color=red>补丁需要安装请按 1——2——4——3 的顺序进行安装</font><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win7SecureBoot/Win7SecureBoot1.png" alt="补丁列表"><br>每当有一个补丁安装完成提示重启时请立即重启,否则将会有以下提示<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win7SecureBoot/Win7SecureBoot2.png" alt="未安装 SHA-2 集成更新"><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win7SecureBoot/Win7SecureBoot3.png" alt="未安装服务堆栈更新"><br>安装完成后需重启,然后就支持安全启动了</p><hr><p>Workstation 的 Windows 7 可以通过修改 .vmx 来启用安全启动<br>找到名为 firmware = “efi” 的项删除,并添加以下代码(在原来代码行的基础上)<br>firmware = “efi”<br>uefi.secureBoot.enabled = “TRUE”</p><hr><h2 id="内容变化"><a href="#内容变化" class="headerlink" title="内容变化"></a>内容变化</h2><p>KB5017361 更新并重签名了引导文件 bootmgr.efi,bootmgfw.efi 及内核 winload.efi 文件</p><blockquote>数字签名属性(旧)</blockquote><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win7SecureBoot/Win7SecureBoot4.png" alt="bootmgr.efi 数字签名属性(旧)"><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win7SecureBoot/Win7SecureBoot6.png" alt="bootmgfw.efi 数字签名属性(旧)"><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win7SecureBoot/Win7SecureBoot8.png" alt="winload.efi 数字签名属性(旧)"></p><blockquote>数字签名属性(新)</blockquote><p><img data-src="5" alt="bootmgr.efi 数字签名属性(新)"><br><img data-src="7" alt="bootmgfw.efi 数字签名属性(新)"><br><img data-src="9" alt="winload.efi 数字签名属性(新)"></p>]]></content>
<categories>
<category> 教程 </category>
<category> Windows </category>
</categories>
<tags>
<tag> Windows </tag>
</tags>
</entry>
<entry>
<title>给 Windows 安装镜像添加语言</title>
<link href="/zh-CN/tutorial/Windows/Win7SKUlang/"/>
<url>/zh-CN/tutorial/Windows/Win7SKUlang/</url>
<content type="html"><![CDATA[<h2 id="用前说明"><a href="#用前说明" class="headerlink" title="用前说明"></a>用前说明</h2><p>以下文本中,系统/语言包镜像指以 ISO 为后缀的文件;映像是指 install.wim<br>参考文献:<a href="https://learn.microsoft.com/windows-hardware/manufacture/desktop/add-language-packs-to-windows">Microsoft Learn</a><br>因为先做试验再写文章的原因,文章中部分图片与命令与文本中所打出来的内容不同,请以文本为主</p><h2 id="创建文件夹并提取所需文件"><a href="#创建文件夹并提取所需文件" class="headerlink" title="创建文件夹并提取所需文件"></a>创建文件夹并提取所需文件</h2><p>在 D 盘根目录下创建名为 <code>test</code>的文件夹,然后再在里面创建四个文件夹:<code>mount</code>,<code>Scratch</code>,<code>Image</code>,<code>packages</code>,并在 <code>packages</code> 文件夹下创建名为 <code>zh-cn</code> 的文件夹<br>用压缩软件打开系统镜像,找到 <code>sources</code> 文件夹下的 install.wim,将其复制到 <code>Image</code> 文件夹下<br>然后再用压缩软件打开语言包镜像,把你所需要的语言文件复制到 <code>packages\语言名称</code> 下的文件夹<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win7SKUlang/Win7SKUlang1.png" alt="所需文件"></p><h2 id="装载-卸载映像"><a href="#装载-卸载映像" class="headerlink" title="装载/卸载映像"></a>装载/卸载映像</h2><p>右键开始菜单,选择 Windows 终端(管理员)/Windows PowerShell(管理员),二选一即可,因人而异</p><p>在 PowerShell 中输入以下内容来挂载映像</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Dism /<span class="built_in">Mount-Image</span> /ImageFile:D:\test\Image\install.wim /index:<span class="number">1</span> /MountDir:D:\test\mount</span><br></pre></td></tr></table></figure><p>进度条跑完后代表挂载映像成功了<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win7SKUlang/Win7SKUlang2.png" alt="挂载"></p><p>在 PowerShell 中输入以下内容来给挂载的映像添加语言包</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">Dism /Image:D:\test\mount /ScratchDir:D:\test\Scratch /<span class="built_in">Add-Package</span> /PackagePath:D:\test\packages\zh<span class="literal">-cn</span>\lp.cab</span><br><span class="line"></span><br><span class="line">若你要添加多个语言包,就添加多个 /PackagePath:<路径\文件名.cab> 命令标签</span><br><span class="line">如下</span><br><span class="line">Dism /Image:D:\test\mount /ScratchDir:D:\Scratch /<span class="built_in">Add-Package</span> /PackagePath:D:\test\packages\zh<span class="literal">-cn</span>\lp.cab /PackagePath:D:\test\packages\en<span class="literal">-uk</span>\lp.cab</span><br></pre></td></tr></table></figure><p>进度条跑完后代表添加成功了<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win7SKUlang/Win7SKUlang3.png" alt="添加语言包"></p><p>在 PowerShell 中输入以下内容来给挂载的映像设置默认语言</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Dism /Image:D:\test\mount /<span class="built_in">Set-SKUIntlDefaults</span>:zh<span class="literal">-cn</span></span><br></pre></td></tr></table></figure><p>出现“操作成功完成。”代表设置成功<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win7SKUlang/Win7SKUlang4.png" alt="设置成功"></p><p>在 PowerShell 中输入以下内容来卸载挂载的映像</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Dism /Un<span class="built_in">mount-Image</span> /MountDir:D:\test\mount /Commit</span><br></pre></td></tr></table></figure><p>出现“操作成功完成。”代表卸载成功<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win7SKUlang/Win7SKUlang5.png" alt="卸载成功"></p><h2 id="整合镜像"><a href="#整合镜像" class="headerlink" title="整合镜像"></a>整合镜像</h2><p>使用 UltraISO(在“资源”——“资源列表”内有)打开你要修改的镜像,并定位到 <code>sources</code> 文件夹<br>将 install.wim 文件替换进去,并保存(若提示无法保存则直接点击旁边的“另存为”)<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win7SKUlang/Win7SKUlang6.png" alt="文件替换"></p>]]></content>
<categories>
<category> 教程 </category>
<category> Windows </category>
<category> DISM </category>
</categories>
<tags>
<tag> Windows </tag>
</tags>
</entry>
<entry>
<title>给 Windows 7 升级 PowerShell</title>
<link href="/zh-CN/tutorial/Windows/Win7instPS/"/>
<url>/zh-CN/tutorial/Windows/Win7instPS/</url>
<content type="html"><![CDATA[<h2 id="用前说明"><a href="#用前说明" class="headerlink" title="用前说明"></a>用前说明</h2><p>该教程仅限于 x64 的设备</p><p>以下的 Microsoft Learn 链接已失效,请按需从 Microsoft 下载:<br><a href="https://www.microsoft.com/en-us/download/details.aspx?id=34595">WMF3.0</a> | <a href="https://support.microsoft.com/topic/%E9%80%82%E7%94%A8%E4%BA%8E-windows-7-%E5%92%8C-windows-server-2008-r2-%E7%9A%84-wmf-4-0-%E6%9B%B4%E6%96%B0%E5%8C%85-a4aceef4-d24b-566f-417f-c5e35cefa686">WMF4.0</a> | <del><a href="https://www.microsoft.com/en-us/download/details.aspx?id=50395">WMF5.0</a></del> | <a href="https://www.microsoft.com/en-us/download/details.aspx?id=54616">WMF5.1</a></p><h2 id="下载必要组件"><a href="#下载必要组件" class="headerlink" title="下载必要组件"></a>下载必要组件</h2><p>从 <del><a href="https://learn.microsoft.com/powershell/scripting/windows-powershell/install/installing-windows-powershell">Microsoft Learn</a></del> 中选择 Windows 7 SP1 和 Windows Server 2008 R2 SP1 字样的安装程序,并选择一个版本点进去(以 WMF 5.1 为例)<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win7instPS/Win7instPS1.png" alt="升级现有 Windows PowerShell"><br>在新标签页中点击“Download”<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win7instPS/Win7instPS2.png" alt="下载"><br>然后选择 <code>Win7AndW2K8R2-KB3191566-x64.zip</code><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win7instPS/Win7instPS3.png" alt="正确的包"></p><h2 id="安装"><a href="#安装" class="headerlink" title="安装"></a>安装</h2><p>打开下载好的 <code>Win7AndW2K8R2-KB3191566-x64.zip</code>,把 <code>Win7AndW2K8R2-KB3191566-x64.msu</code> 解压出来并安装<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win7instPS/Win7instPS4.png" alt="安装 KB3191566"><br>完成后点击“立即重新启动”<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win7instPS/Win7instPS5.png" alt="重启"><br>重启后 PowerShell 版本就升级了,在 PowerShell 中输入</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="variable">$PSVersionTable</span></span><br></pre></td></tr></table></figure><p>即可到查看 PowerShell 版本是新版本<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win7instPS/Win7instPS6.png" alt="PowerShell 版本"></p><h2 id="后记"><a href="#后记" class="headerlink" title="后记"></a>后记</h2><p>或者你也可以直接在 <a href="https://github.com/PowerShell/PowerShell/releases">GitHub</a> 上下载最新的 PowerShell<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win7instPS/Win7instPS7.png" alt="PowerShell Preview"><br>能不能用是另一回事(小声</p>]]></content>
<categories>
<category> 教程 </category>
<category> Windows </category>
<category> PowerShell </category>
</categories>
<tags>
<tag> Windows </tag>
</tags>
</entry>
<entry>
<title>创建个简单的安装程序</title>
<link href="/zh-CN/tutorial/Windows/makesetup/"/>
<url>/zh-CN/tutorial/Windows/makesetup/</url>
<content type="html"><![CDATA[<h2 id="用前说明"><a href="#用前说明" class="headerlink" title="用前说明"></a>用前说明</h2><h3 id="实验环境"><a href="#实验环境" class="headerlink" title="实验环境"></a>实验环境</h3><p><a href="https://gbcs6-my.sharepoint.com/:f:/g/personal/gucats_gbcs6_onmicrosoft_com/EmVOYUO7C3BIr-mNm4P7uYABPsyNZ_Z5XFDEUSeaGs83Hg?e=Nb0cWq">NSIS 3.06.1.0 第三方汉化</a></p><h2 id="编写脚本"><a href="#编写脚本" class="headerlink" title="编写脚本"></a>编写脚本</h2><h3 id="创建脚本"><a href="#创建脚本" class="headerlink" title="创建脚本"></a>创建脚本</h3><p>点击<code>编译脚本 VNISedit</code><br><img data-src="https://s2.loli.net/2022/08/11/QuioL1thne5H76O.png"><br>在欢迎页中选择<code>使用脚本向导创建新的脚本文件(S)</code><br><img data-src="https://s2.loli.net/2022/08/11/pjwWDR7TCzSogVE.png"></p><h3 id="更改信息"><a href="#更改信息" class="headerlink" title="更改信息"></a>更改信息</h3><p>在<code>应用程序名称(A)</code>填写程序名称,<code>应用程序版本(V)</code>填写版本号,<code>应用程序出版人(P)</code>填写你的名字(或其它名称或不填),<code>应用程序网站(W)</code>填写网站主页(可不填),<code>应用程序标志(L)</code>可改可不改(体现在安装程序时左下角的名称)<br><img data-src="https://s2.loli.net/2022/08/11/93nR8osuldxSqTr.png"><br><img data-src="https://s2.loli.net/2022/08/11/DUbpw7fYetiOm3H.png" alt="应用程序标志"><br>点击<code>安装程序图标(I)</code>旁边的<code>...</code>来选择安装程序图标(需为 ico 后缀),<code>安装程序文件(P)</code>为安装程序默认名称,<code>安装程序语言(L)</code>就不多说,默认 SimpChinese(简中),<code>压缩算法(O)</code>没什么问题可以默认 LZMA<br><img data-src="https://s2.loli.net/2022/08/11/GuzkRcJl4yrU5q7.png"></p><p><code>快闪屏幕和背景窗口</code>不知道有啥用,干脆跳过</p><p><code>应用程序默认目录(A)</code>是程序默认安装的目录,一般安装在 <code>C:\Program Files (x86)</code>(如果是 32 位系统则是 <code>C:\Program Files</code>),<code>授权文件(L)</code>为许可说明,如果你不填写则<font color=red>必须留空</font>;如果要填写则需要将 <a href="https://jingyan.baidu.com/article/2fb0ba4052455b41f2ec5f9b.html">TXT 编码格式转换为 ANSI</a> (RTF 则不受影响)<br><img data-src="https://s2.loli.net/2022/08/11/xIEkawFurjfVHJ5.png"></p><h3 id="更改程序设置"><a href="#更改程序设置" class="headerlink" title="更改程序设置"></a>更改程序设置</h3><p>在<code>应用程序文件</code>选择软件分支<br>先把默认的两个删去,然后点击<code>文件</code>上方的分支按钮,选择软件的目录,然后勾选<code>包含子目录</code>和<code>单独添加每一个文件</code><br><img data-src="https://s2.loli.net/2022/08/11/KlnMXdIySmArtcD.png"><br>如果你只要添加某一个文件则直接点<code>文件</code>上方的文件按钮然后选择软件</p><p>然后在左边双击<code>MainSection</code>然后选择更改它的名字<br><img data-src="https://s2.loli.net/2022/08/11/PIbi1lsGFYa4TA5.png"><br>如果你要添加别的分支则点击第一个文件图标,然后输入名字,然后重复刚才的步骤添加文件<br>分支可不添加描述,如果你想让用户自定义安装组件就勾选<code>允许用户选择要安装的组件(A)</code><br><img data-src="https://s2.loli.net/2022/08/11/h3lbqpQMmEWnNv2.png"></p><h3 id="更改快捷方式等"><a href="#更改快捷方式等" class="headerlink" title="更改快捷方式等"></a>更改快捷方式等</h3><p>在<code>应用程序‘开始菜单’文件夹名称(S)</code>更改在开始菜单显示的名称<br>第一个复选框是可以让用户自定义开始菜单文件夹名称,第二个复选框是在开始菜单里添加程序主页的网页快捷方式,第三个复选框是在开始菜单添加卸载软件的快捷方式<br>最下面一行,<code>快捷方式</code>中<code>$ICONS_GROUP</code>和<code>$DESKTOP</code>对应的是开始菜单和桌面,<code>目的文件</code>对应的是你要对哪个文件创建快捷方式<br><img data-src="https://s2.loli.net/2022/08/11/nU3wulZqEVsN7Gh.png"><br><code>安装程序之后运行</code>是安装程序结束后要选择运行哪个文件,如果不需要可留空,参数与自述同上<br><img data-src="https://s2.loli.net/2022/08/11/XNHpc3FRu4thOGr.png"></p><h3 id="卸载程序"><a href="#卸载程序" class="headerlink" title="卸载程序"></a>卸载程序</h3><p><code>解除安装提示(U)</code>和<code>解除安装消息(M)</code>自己更改,点击<code>解除安装程序图标</code>旁边的<code>...</code>来选择卸载程序图标(需为 ico 后缀),卸载方式选择<code>简易方式(A)</code>即可(一般不会有残留)<br><img data-src="https://s2.loli.net/2022/08/11/4RqbihQF3GY7zjU.png"></p><h3 id="完成"><a href="#完成" class="headerlink" title="完成"></a>完成</h3><p>完成后点击<code>保存脚本(S)</code>、<code>转换文件路径到相对路径(C)</code>和<code>编译脚本(O)</code><br><img data-src="https://s2.loli.net/2022/08/11/Hrd1G2LxiX3Rjpv.png" alt="makesetup12.png"><br>(如果需要自己修改脚本参数则不勾选<code>编译脚本(O)</code>,需要编译时点击上面的<code>NSIS(N)</code>><code>编译脚本(C) Ctrl+F9</code>)<br><img data-src="https://s2.loli.net/2022/08/11/eAKPCpgu1MwcGNt.png"><br>完成后会在脚本保存的目录下生成安装程序<br><img data-src="https://s2.loli.net/2022/08/11/gXP9c7MYINVJqsA.png"><br>这样就可以了<br><img data-src="https://s2.loli.net/2022/08/11/mEkhBDYA9iacQOZ.png"></p>]]></content>
<categories>
<category> 教程 </category>
<category> Windows </category>
</categories>
<tags>
<tag> Windows </tag>
<tag> 软件 </tag>
</tags>
</entry>
<entry>
<title>安装 MS-DOS 3.x</title>
<link href="/zh-CN/tutorial/DOS/MS-DOS3.x/"/>
<url>/zh-CN/tutorial/DOS/MS-DOS3.x/</url>
<content type="html"><![CDATA[<h2 id="用前说明"><a href="#用前说明" class="headerlink" title="用前说明"></a>用前说明</h2><p>较为早期的 Windows(如 Windows 1.x、2.x 需要 MS-DOS 2.x-3.x,或 IBM PC-DOS)</p><h3 id="实验环境"><a href="#实验环境" class="headerlink" title="实验环境"></a>实验环境</h3><p><a href="https://winworldpc.com/product/ms-dos/3x">MS-DOS 3.x</a> (这里我用的是 MS-DOS 3.30,选择第一个下载即可)<br>VMware Workstation(其它虚拟机也可以,部分内容有所不同)</p><h2 id="创建虚拟机"><a href="#创建虚拟机" class="headerlink" title="创建虚拟机"></a>创建虚拟机</h2><p>选择系统版本中选择“其它”>“MS-DOS”<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/MS-DOS3.x/MS-DOS3.x-1.png" alt="选择版本"><br>CPU、内存和硬盘大小默认设置即可,并选择“将虚拟磁盘储存为单个文件”<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/MS-DOS3.x/MS-DOS3.x-2.png" alt="硬盘文件"><br>完成后点击“虚拟机设置”,把 CD/DVD 移除(可不做),然后添加软盘,并选择连接到 <code>DISK01.img</code><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/MS-DOS3.x/MS-DOS3.x-3.png" alt="选择软盘镜像"><br>然后启动虚拟机</p><h2 id="安装-MS-DOS-3-x"><a href="#安装-MS-DOS-3-x" class="headerlink" title="安装 MS-DOS 3.x"></a>安装 MS-DOS 3.x</h2><p>在这里输入正确的时间(如果你不想调整可以连续按两次回车)<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/MS-DOS3.x/MS-DOS3.x-4.png" alt="输入时间"><br>输入</p><figure class="highlight dos"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">fdisk</span><br></pre></td></tr></table></figure><p>然后就会进入到硬盘格式化页面,再在以下两个页面输入 <code>1</code><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/MS-DOS3.x/MS-DOS3.x-5.png" alt="创建分区"><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/MS-DOS3.x/MS-DOS3.x-6.png" alt="创建主分区"><br>输入 <code>Y</code> 并按下<kbd>Enter</kbd><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/MS-DOS3.x/MS-DOS3.x-7.png" alt="格式化分区"><br>在这个页面按任意键重启,但不要<font color=yellow size=3>取出软盘镜像</font><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/MS-DOS3.x/MS-DOS3.x-8.png" alt="按任意键重启"></p><p>然后再次输入正确的时间(如果你不想调整可以连续按两次回车)<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/MS-DOS3.x/MS-DOS3.x-4.png" alt="输入时间"><br>然后输入</p><figure class="highlight dos"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">format</span> C: /v /s</span><br></pre></td></tr></table></figure><p>然后按下<kbd>Enter</kbd><br>输入 <code>Y</code>,最后按下 <kbd>Enter`<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/MS-DOS3.x/MS-DOS3.x-9.png" alt="格式化分区"><br>再输入</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sys C:</span><br></pre></td></tr></table></figure><p>按下<kbd>Enter</kbd>(这样做的作用是将 MS-DOS 从软盘传输到 C:,从而允许 C:可启动)<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/MS-DOS3.x/MS-DOS3.x-10.png" alt="设置活跃分区"></p><p>输入</p><figure class="highlight dos"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">copy</span> A:\*.* C:</span><br></pre></td></tr></table></figure><p>然后按下 <kbd>Enter</kbd>,这样就会将软盘所有的内容复制了过去<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/MS-DOS3.x/MS-DOS3.x-11.png" alt="复制文件"><br>接下来,把 <code>DISK01.img</code> 换成 <code>DISK02.img</code><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/MS-DOS3.x/MS-DOS3.x-12.png" alt="更换软盘镜像"><br>重复上面的内容</p><figure class="highlight dos"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">copy</span> A:\*.* C:</span><br></pre></td></tr></table></figure><p>然后按下<kbd>Enter</kbd>,取出软盘镜像并重启<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/MS-DOS3.x/MS-DOS3.x-3.png" alt="复制文件"></p><p>至此,MS-DOS 3.x 的安装工作就完成了,重启后即可自动进入 MS-DOS 3.x<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/MS-DOS3.x/MS-DOS3.x-14.png" alt="主界面"></p>]]></content>
<categories>
<category> 教程 </category>
<category> DOS </category>
</categories>
<tags>
<tag> DOS </tag>
<tag> VMware Workstation </tag>
</tags>
</entry>
<entry>
<title>Windows 11 激活跳过联网</title>
<link href="/zh-CN/tutorial/Windows/Win11oobenetbypass/"/>
<url>/zh-CN/tutorial/Windows/Win11oobenetbypass/</url>
<content type="html"><![CDATA[<p>在 Windows 进入开箱体验(OOBE)阶段时同时按下 <kbd>Shift</kbd> 和 <kbd>F10</kbd> 来打开 CMD 窗口<br>并在窗口输入以下内容并回车</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">OOBE\BypassNRO.<span class="built_in">cmd</span></span><br></pre></td></tr></table></figure><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win11oobenetbypass/Win11oobenetbypass1.png" alt="是英文不是数字"><br>完成后系统会自动重启<br>重启的期间需要<code>网线移除</code><br>重启之后就会有“我没有 Internet 连接”的选项<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win11oobenetbypass/Win11oobenetbypass2.png" alt="前"><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win11oobenetbypass/Win11oobenetbypass3.png" alt="后"></p><p>这样就可以不联网或使用离线账户了<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win11oobenetbypass/Win11oobenetbypass4.png"></p><p>如果没有 BypassNRO 这个文件的话可以先输入 <code>explorer</code> 并回车,在弹出的窗口中选择 C 盘<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win11oobenetbypass/Win11oobenetbypass5.png" alt="资源管理器"><br>在根目录下新建个文本文档,重命名为 pass.cmd<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win11oobenetbypass/Win11oobenetbypass6.png" alt="创建脚本"><br>右键它,选择“编辑”<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/Win11oobenetbypass/Win11oobenetbypass7.png" alt="编辑文件"><br>并在 cmd 里输入以下内容</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">@<span class="built_in">echo</span> off</span><br><span class="line">reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE /v BypassNRO /t REG_DWORD /d <span class="number">1</span> /f</span><br><span class="line">shutdown /r /t <span class="number">0</span></span><br></pre></td></tr></table></figure><p>保存后直接运行即可</p>]]></content>
<categories>
<category> 教程 </category>
<category> Windows </category>
</categories>
<tags>
<tag> Windows </tag>
</tags>
</entry>
<entry>
<title>在 Windows 11 开启云母效果</title>
<link href="/zh-CN/tutorial/Windows/MicaForEveryone/"/>
<url>/zh-CN/tutorial/Windows/MicaForEveryone/</url>
<content type="html"><![CDATA[<h2 id="下载-Mica-For-Everyone"><a href="#下载-Mica-For-Everyone" class="headerlink" title="下载 Mica For Everyone"></a>下载 Mica For Everyone</h2><p><a href="https://github.com/MicaForEveryone/MicaForEveryone/releases/latest">Mica For Everyone</a><br><a href="https://dotnet.microsoft.com/zh-cn/download/dotnet/thank-you/runtime-desktop-3.1.32-windows-x64-installer">.NET Core</a><br>下载后缀为 <code>.exe</code> 的版本,<code>.msixbundle</code> 为商店版,需要信任根证书才能正常安装,无多语言支持<br><code>Release</code> 为正式版,<code>Debug</code> 为测试版,可以根据自己的需要下载<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/MicaForEveryone/MicaForEveryone1.png" alt="下载选项"></p><h2 id="配置-Mica-For-Everyone"><a href="#配置-Mica-For-Everyone" class="headerlink" title="配置 Mica For Everyone"></a>配置 Mica For Everyone</h2><p>打开后默认不显示主界面,需要自己在托盘图标中找到再打开<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/MicaForEveryone/MicaForEveryone2.png" alt="托盘图标"><br>修改软件语言并开启热重载<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/MicaForEveryone/MicaForEveryone3.png" alt="设置"><br>点击侧栏的“默认规则”,第一个是标题栏颜色<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/MicaForEveryone/MicaForEveryone4.1.png" alt="浅色"><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/MicaForEveryone/MicaForEveryone4.2.png" alt="深色"><br>第二个是“模糊类型”(除纯色外,亚克力材质随着背景的变化而变化,其它两种材质随着桌面背景的变化而变化)<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/MicaForEveryone/MicaForEveryone5.1.png" alt="纯色"><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/MicaForEveryone/MicaForEveryone5.2.png" alt="云母"><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/MicaForEveryone/MicaForEveryone5.3.png" alt="亚克力"><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/MicaForEveryone/MicaForEveryone5.4.png" alt="Tabbed"><br>第三个是“边框圆角”(简单地说就是 Windows 10、Windows 11 和 macOS 10.13 这三种边框角)<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/MicaForEveryone/MicaForEveryone6.1.png" alt="直角"><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/MicaForEveryone/MicaForEveryone6.2.png" alt="圆角"><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/MicaForEveryone/MicaForEveryone6.3.png" alt="稍圆"><br>第四个是“将窗口框架扩展到客户区”与“Blur Behind”<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/MicaForEveryone/MicaForEveryone7.1.png" alt="两个关闭"><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/MicaForEveryone/MicaForEveryone7.2.png" alt="两个开启"><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/MicaForEveryone/MicaForEveryone7.3.png" alt="开启第一个"><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/MicaForEveryone/MicaForEveryone7.4.png" alt="两个第二个"><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/MicaForEveryone/MicaForEveryone7.5.png" alt="两个开启时卡出的"></p><p>左栏往下,图标为积木的<br>“explorer” 是文件资源管理器,“mspaint”是画图,“OpenConsole”是控制台<br>图标为窗口的<br>“ConsoleWindowClass”指窗体类型,可用于绝大部分窗体</p>]]></content>
<categories>
<category> 教程 </category>
<category> Windows </category>
</categories>
<tags>
<tag> Windows </tag>
</tags>
</entry>
<entry>
<title>抓包 APPX</title>
<link href="/zh-CN/tutorial/Windows/anterceptedappx/"/>
<url>/zh-CN/tutorial/Windows/anterceptedappx/</url>
<content type="html"><![CDATA[<h2 id="用网站抓取"><a href="#用网站抓取" class="headerlink" title="用网站抓取"></a>用网站抓取</h2><p>访问 <a href="https://store.rg-adguard.net/">store.rg-adguard</a><br>在第一个框中选择 <code>URL (link)</code>,第二个框输入 Microsoft Store 所对应的网页地址,第三个框则默认选择 RP<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/anterceptedappx/anterceptedappx1.png" alt="输入链接"><br>其中,第三个框内容对应如下:<br>Fast=快速测试版 | Slow=最快速测试版 | RP=正式版 | Retail=预发布版<br>第二个框中的网页地址可在 Microsoft Store 中获取,以 <a href="https://www.microsoft.com/store/productId/9NDJ3Q12NRRM">Loaf - a WinUI3 App</a> 为例<br>点开软件详情页,点击右方的“分享”,并在弹出的窗口中选择“复制链接”<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/anterceptedappx/anterceptedappx2.png" alt="获取链接"><br>完成后粘贴到第二个框,然后点击“√”即可查找适用的包</p><p>加载一会,你会看到各种各样的包<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/anterceptedappx/anterceptedappx3.png" alt="包加载"><br>其中,后缀为 <code>.BlockMap</code> 的文件是文件属性,可以不下载;包名中带有 <code>ARM64、ARM、x64 或 x86</code> 字样的则对应的是你的系统架构,一般情况下选择 x64<br>而后缀为 <code>.eappx </code>之类的则是给 Xbox 使用的包<br>如果没有标明架构,就像下图<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/anterceptedappx/anterceptedappx4.png" alt="未标出架构"><br>则代表这个软件同时兼容 <code>x64 和 x86</code>,是否兼容 ARM(64) 还另需将 APPX 解压后才可得知<br>软件运行需要运行库,所以你还需要下载与你系统架构对应的运行库,如果你不知道选哪个版本(不是架构)的运行库,则可以全部下载后逐个安装</p><h3 id="如果你不知道下载地址"><a href="#如果你不知道下载地址" class="headerlink" title="如果你不知道下载地址"></a>如果你不知道下载地址</h3><p>类似于 Microsoft Store,在商店内是搜索不到的<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/anterceptedappx/anterceptedappx5.png" alt="无法搜索到"><br>这时候你可以给那个软件创建个快捷方式右键——属性,其中“目标类型:”或“目标(T):”就是软件的包名<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/anterceptedappx/anterceptedappx6.png" alt="获取包名"><br>这时候回到网页,在第一个框中选择“PackageFamilyName”<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/anterceptedappx/anterceptedappx7.png" alt="更改类型"><br>第二个框输入包名(包名不包括后缀的 <code>!App</code>)<br>这样也同样可以搜索到<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/anterceptedappx/anterceptedappx8.png" alt="搜索包"></p><h2 id="用-Fiddler-抓取"><a href="#用-Fiddler-抓取" class="headerlink" title="用 Fiddler 抓取"></a>用 Fiddler 抓取</h2><p>这个办法远没第一个方便<br>以 Minecraft Preview for Windows 为例</p><hr><p>第一次使用 Fiddler 必看<br>在这个弹窗点击“取消”<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/anterceptedappx/anterceptedappx9.png" alt="取消警告"><br>在软件上方点击“工具”——“选项…”——“HTTPS”,把“捕获 HTTPS 链接”和“解密 HTTPS 通信给勾选上”,这时候出现安装证书,点击“是”即可<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/anterceptedappx/anterceptedappx10.png" alt="解密 HTTPS"><br>在这俩弹窗点击“Yes”<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/anterceptedappx/anterceptedappx11.png" alt="信任证书 1"><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/anterceptedappx/anterceptedappx12.png" alt="信任证书 2"><br>然后回到主程序,点击左上角的“WinConfig”,弹窗点击“No”<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/anterceptedappx/anterceptedappx13.png" alt="取消警告"><br>找到名为“Microsoft Store”的项,勾选它,并点击“保存更改”<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/anterceptedappx/anterceptedappx14.png" alt="解除沉浸式"></p><hr><p>先在 Microsoft Store 下载软件(这里建议先退出无关软件避免有多余的链接产生)<br>回到主程序界面,当软件正在下载时列表会刷新<br>随机找一个链接,一般为 <code>tlu.dl.delivery.mp.m...</code><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/anterceptedappx/anterceptedappx15.png" alt="获取链接"><br>然后右键——“复制”——“仅 URL Ctrl+U”<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/anterceptedappx/anterceptedappx16.png" alt="复制链接"><br>再用软件(如 IDM 等)下载即可(有效期仅为 15min)</p>]]></content>
<categories>
<category> 教程 </category>
<category> Windows </category>
</categories>
<tags>
<tag> Windows </tag>
<tag> 软件 </tag>
</tags>
</entry>
<entry>
<title>创建无人值守文件</title>
<link href="/zh-CN/tutorial/Windows/unattended_files/"/>
<url>/zh-CN/tutorial/Windows/unattended_files/</url>
<content type="html"><![CDATA[<h2 id="用前说明"><a href="#用前说明" class="headerlink" title="用前说明"></a>用前说明</h2><p>参考文献:<br><a href="https://learn.microsoft.com/windows-hardware/customize/desktop/unattend">1 Microsoft Learn</a><br><font size=3 color=yellow>本文应按照文字部分为主,图片部分为辅</font></p><h3 id="使用环境"><a href="#使用环境" class="headerlink" title="使用环境"></a>使用环境</h3><p><a href="https://docs.microsoft.com/zh-cn/windows-hardware/get-started/adk-install">Windows ADK</a><br>压缩软件<br>Windows 系统镜像(<a href="https://www.microsoft.com/software-download/windows10">Windows 10 下载</a> | <a href="https://www.microsoft.com/software-download/windows11">Windows 11 下载</a> | <a href="https://www.microsoft.com/en-us/software-download/windowsinsiderpreviewiso">Windows 预览版</a>)<br>UltraISO(在“资源”——“资源列表”中)</p><h2 id="安装-Windows-System-Image-Manager"><a href="#安装-Windows-System-Image-Manager" class="headerlink" title="安装 Windows System Image Manager"></a>安装 Windows System Image Manager</h2><p>在上面的网站中下载 Windows ADK(需要选择与你系统相符的版本)<br><img data-src="https://s1.ax1x.com/2022/07/11/jcNYWQ.png"><br>打开安装包,选择第一个选项并继续<br><img data-src="https://s1.ax1x.com/2022/07/11/jcNtzj.png"><br>在这个页面只勾选“部署工具”,然后继续<br><img data-src="https://s1.ax1x.com/2022/07/11/jcNGFS.png"><br>完成后打开“开始菜单”——“Windows Kits”,打开“Windows 系统映像管理器”<br><img data-src="https://s1.ax1x.com/2022/07/11/jcNJJg.png"></p><h2 id="提取-install-wim"><a href="#提取-install-wim" class="headerlink" title="提取 install.wim"></a>提取 install.wim</h2><p>用压缩软件提取出 install.wim<br>目录在 <code>sources\install.wim</code><br><img data-src="https://s1.ax1x.com/2022/07/11/jcN3o8.png"></p><h2 id="创建无人值守文件"><a href="#创建无人值守文件" class="headerlink" title="创建无人值守文件"></a>创建无人值守文件</h2><p>在软件左上角选择“文件(F)”——“选择 Windows 映像(I)”<br><img data-src="https://s1.ax1x.com/2022/07/11/jcNUQs.png"><br>选择好 install.wim 并点击“打开(O)”</p><hr><p>如果出现是否需要创建编录文件时,点击“是”即可<br><img data-src="https://s1.ax1x.com/2022/07/11/jcNayn.png"><br>然后等待三分钟左右即可</p><hr><p>在“应答文件”的框内右键,选择“新建应答文件(N)… Ctrl+N”<br><img data-src="https://s1.ax1x.com/2022/07/11/jcNdLq.png"></p><p>PS:为了更直观,每个大项将单独成为一个子章节</p><h3 id="①"><a href="#①" class="headerlink" title="①"></a>①</h3><p>在“Windows 映像”——“Components”文件夹下找到名为 <code>amd64_Microsoft-Windows-International-Core-WinPE_xx.x.xxxxx.x_neutral</code> 的项,并右键,选择“添加设置以传送 1 Windows PE(1)”,<code>amd64_Microsoft-Windows-Setup_xx.x.xxxxx.x_neutral</code> 也是如此<br><img data-src="https://s1.ax1x.com/2022/07/11/jcNBwV.png"><br>在“应答文件”的框中单击选择名为 <code>amd64_Microsoft-Windows-International-Core-WinPE_neutral</code> 的项,并在右边“个属性”框中修改以下设置<br><img data-src="https://s1.ax1x.com/2022/07/11/jcN0e0.png"><br>其中 <code>zh-CN</code> 是语言,你也可以设置为 <code>en-US</code> 或其它,“LayerDriver”是多少个键盘种类,默认 1 即可<br><img data-src="https://s1.ax1x.com/2022/07/11/jcN0e0.png"><br>然后展开子项,选择“SetupUILanguage”,在右边的“个属性”框中,设置为 <code>zh-CN</code>(同样你可以也改为别的),“WillShouUI”这里不做解释,默认即可<br><img data-src="https://s1.ax1x.com/2022/07/11/jcNDoT.png"></p><h3 id="②"><a href="#②" class="headerlink" title="②"></a>②</h3><p>在“应答文件”的框中单击选择名为 <code>amd64_Microsoft-Windows-Setup_neutral</code> 的项,并在右边“个属性”框中修改以下设置<br><img data-src="https://s1.ax1x.com/2022/07/11/jcNsFU.png"><br>其中 “EnableFirewall” 是启动 PE 下的防火墙,“EnableNetwork” 是启动 PE 下的网络连接,“Restart” 是安装完成后 PE 会自动重启,“UseConfigurationSet” 是安装 Windows 的过程中自动寻找适用的驱动(不是 OOBE 界面)<br>然后展开子项,选择“UserData”,将“AcceptEula”修改为 <code>true</code>(<font size=3 color=yellow>FullName 不需要填写,写到文章结尾的时候才发现的问题((</font>)<br><img data-src="https://s1.ax1x.com/2022/07/11/jcNyYF.png"></p><h3 id="③"><a href="#③" class="headerlink" title="③"></a>③</h3><p>在“Windows 映像”——“Components”文件夹下找到名为 <code>amd64_Microsoft-Windows-Security-SPP-UX_xx.x.xxxxx.x_neutral</code> 的项,并右键,选择“添加设置以传送 4 specialize(4)”<br><img data-src="https://s1.ax1x.com/2022/07/11/jcN6W4.png"><br>在“应答文件”的框中单击选择名为 <code>amd64_Microsoft-Windows-Security-SPP-UX_neutral</code> 的项,并在右边“个属性”框中修改以下设置<br><img data-src="https://s1.ax1x.com/2022/07/11/jcNgSJ.png"><br>其中“SkipAutoActivation”是否自动跳过激活页面</p><h3 id="④"><a href="#④" class="headerlink" title="④"></a>④</h3><p>在“Windows 映像”——“Components”文件夹下找到名为 <code>amd64_Microsoft-Windows-International-Core_xx.x.xxxxx.x_neutral</code> 的项,并右键,选择“添加设置以传送 5 oobeSystem(5)”,<code>amd64_Microsoft-Windows-Shell-Setup_xx.x.xxxxx.x_neutral</code> 也是如此<br><img data-src="https://s1.ax1x.com/2022/07/11/jcyq5n.png"><br>在“应答文件”的框中单击选择名为 <code>amd64_Microsoft-Windows-International-Core_neutral</code> 的项,并在右边“个属性”框中修改以下设置(同样你可以也改为别的)<br><img data-src="https://s1.ax1x.com/2022/07/11/jcyHEj.png"></p><p>在“应答文件”的框中单击选择名为 <code>amd64_Microsoft-Windows-Shell-Setup_neutral</code> 的项,并在右边“个属性”框中修改以下设置<br><img data-src="https://s1.ax1x.com/2022/07/11/jcybUs.png"><br>其中“BluetoothTaskbarIconEnabled”是否在任务栏显示蓝牙图标,“DisableAutoDaylightTimeSet”设定系统时间为当地时区,“RegisteredOwner”是你要起的用户名(应该为 Administrator),“ShowWindowsLive”保持留空,“TimeZone”设定时区为中国(UTC+8)</p><p>展开子项,选择“AutoLogon”,并在右边“个属性”框中修改以下设置<br><img data-src="https://s1.ax1x.com/2022/07/11/jcyOCq.png"><br>其中“Enabled”是否自动登录,“LogonCount”设置指定帐户的使用次数,“Username”设置指定用于自动登录的用户帐户名(Administrator)<br>选择“Password”子项,在右边“个属性”的“Value”值右键,选择“写入空字符串(S)”,“UserAccounts”——“AdministratorPassword”的项也是如此<br><img data-src="https://s1.ax1x.com/2022/07/11/jcyTbQ.png"></p><p>点击“OOBE”子项,并在右边“个属性”框中修改以下设置<br><img data-src="https://s1.ax1x.com/2022/07/11/jcyX80.png"><br>其中,“HideEULAPage”是隐藏许可条款,“HideLocalAccountScreen”是隐藏管理员密码屏幕,“HideOEMRegistrationScreen”是隐藏 OEM 注册页,“HideOnlineAccountScreens”隐藏登录页,“HideWirelessSetupInOOBE”隐藏 Windows 欢迎屏幕,“UnattendEnableRetailDemo”禁用零售演示模式</p><h3 id="⑤"><a href="#⑤" class="headerlink" title="⑤"></a>⑤</h3><p>完成以上工作后,只留下这些项,其它多余的需要按 Delete 键来删除它们<br><img data-src="https://s1.ax1x.com/2022/07/11/jcyj2V.png"><br>然后同时按下 <kbd>Ctrl</kbd>与<kbd>S</kbd> 键,重命名为 <code>Autounattend</code> 并保存它</p><p>最后点击“工具(I)”——“验证应答文件(V)”<br><img data-src="https://s1.ax1x.com/2022/07/11/jcyvvT.png"><br>如果下面没有报错就表明正常使用<br><img data-src="https://s1.ax1x.com/2022/07/11/jcyzKU.png"></p><h2 id="使用无人值守文件"><a href="#使用无人值守文件" class="headerlink" title="使用无人值守文件"></a>使用无人值守文件</h2><p>使用“UltraISO”打开系统镜像,并把“Autounattend.xml”文件放到根目录下<br><img data-src="https://s1.ax1x.com/2022/07/11/jc6SrF.png"></p>]]></content>
<categories>
<category> 教程 </category>
<category> Windows </category>
</categories>
<tags>
<tag> Windows </tag>
<tag> 软件 </tag>
</tags>
</entry>
<entry>
<title>QEMU 安装 Windows ARM</title>
<link href="/zh-CN/tutorial/VM/QEMU/WindowsARMonQEMU/"/>
<url>/zh-CN/tutorial/VM/QEMU/WindowsARMonQEMU/</url>
<content type="html"><![CDATA[<h2 id="实验环境"><a href="#实验环境" class="headerlink" title="实验环境"></a>实验环境</h2><a href="/zh-CN/tutorial/Windows/UUP/" title="Windows on ARM">Windows on ARM</a><h2 id="更新日志"><a href="#更新日志" class="headerlink" title="更新日志"></a>更新日志</h2><p>2023.1.2 更新<br>建议在构建镜像的时候用 uup.rg-adguard,那个可以移除安装限制,可以有效避免 TPM 问题(因为还不会怎么模拟 TPM)<br>或者自己手动修改镜像</p><p>2024.5.5 更新<br>下面的操作中,你可以将 Dism++ 整个文件放到 virtio-win.iso 内,在安装完磁盘驱动的时候(或提前注入后),按 <kbd>Shift</kbd> + <kbd>F10</kbd> 呼出 CMD,然后定位到 Dism++ARM64.exe 所在的位置并打开<br>随后使用 DiskPart 与 Dism++ 分别创建分区与安装系统,安装完后使用 Dism++ 的“驱动管理”,选择 virtio-win.iso 的根目录即可自动安装驱动<br>不知道如何使用 DiskPart 可以参阅 <a href="/zh-CN/tutorial/Windows/DISM_instOS_UEFI/" title="UEFI 使用 DISM 命令安装系统">UEFI 使用 DISM 命令安装系统</a>章节中 #操作磁盘 的部分</p><p>2024.7.28 更新<br>在 QEMU 2024 以后的版本中(目前截止到 qemu-w64-setup-20240720.exe)均有 ramfb 显示不正常问题,但 2023 最后一版的 QEMU 还能正常显示,下载链接:<a href="https://qemu.weilnetz.de/w64/2023/qemu-w64-setup-20231224.exe">https://qemu.weilnetz.de/w64/2023/qemu-w64-setup-20231224.exe</a></p><h2 id="准备工作"><a href="#准备工作" class="headerlink" title="准备工作"></a>准备工作</h2><p><a href="https://qemu.weilnetz.de/">QEMU 最新版</a><br><font size=3 color=yellow>QEMU 的安装位置需要记牢,在安装程序会出现,后面需要用到</font></p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU1.png" alt="QEMU 安装路径"></p><p><a href="https://www.kraxel.org/repos/jenkins/edk2">UEFI 固件</a><br><font size=3 color=yellow>下载文件名开头为 edk2.git-aarch64 的文件,并用 7-Zip 等解压缩工具多次解压,直至提取出 QEMU_EFI.fd 和 vars-template-pflash.raw 这两个文件</font><br><a href="https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/latest-virtio/virtio-win.iso">VirtIO ARM64 驱动光盘</a></p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU2.png" alt="QEMU_EFI.fd 和 vars-template-pflash.raw"></p><hr><p>如果你觉得从以上的站点下载解压文件太麻烦,可以直接到我的 OneDrive 站点下载打包好的所需文件(不一定为最新,系统镜像单独发放,只有 Windows 10 22H2 与 Windows 11 23H2,已去安装校验及集成 .NET3.5,未作精简)<br><a href="https://gbcs6-my.sharepoint.com/:f:/g/personal/gucats_gbcs6_onmicrosoft_com/EmKnF3k9JL9Bu0nyn28FWTwBsEbQ0prPPsEDHdXrcW_jVg?e=0hKM76">OneDrive</a></p><hr><h2 id="配置环境变量"><a href="#配置环境变量" class="headerlink" title="配置环境变量"></a>配置环境变量</h2><p>按下 <kbd>Windows 徽标键</kbd>+<kbd>R</kbd>,输入 <code>SystemPropertiesAdvanced</code> 并回车<br>点击“环境变量”</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU3.png" alt="环境变量 1"></p><p>在“系统变量(S)”里找到名为“Path”的项并双击,点击旁边的“新建(N)”,最后在矩形框中输入 QEMU 的安装目录</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU4.png" alt="环境变量 2"><br>然后全部点击“确定”即可</p><h2 id="创建硬盘文件"><a href="#创建硬盘文件" class="headerlink" title="创建硬盘文件"></a>创建硬盘文件</h2><p>按下 <kbd>Windows 徽标键</kbd>+<kbd>Q</kbd>,输入 CMD,并右键选择“以管理员身份运行”</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU5.png" alt="CMD"></p><p>然后输入以下命令</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">qemu-img.exe create -f 硬盘格式 <自定义存放路径\文件名.硬盘格式> <容量大小><单位></span><br></pre></td></tr></table></figure><p>比如我的存放位置为 E:\QEMU\ARM,文件名为 OS,硬盘格式为 qcow2(可选的有还 raw、host_device、qcow、cow、vdi、vmdk、vpc、cloop、img),容量大小为 60GB(单位有 K、M、G、T、P、E)<br>那么我的命令如下(<font size=3 color=yellow>需要区分大小写,而且路径和文件名不要有空格,用下划线 _ 代替</font>)</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">qemu-img.exe create -f qcow2 E:\QEMU\ARM\OS.qcow2 <span class="number">60</span>G</span><br></pre></td></tr></table></figure><p>没有别的提示就代表成功了</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU6.png" alt="创建硬盘文件"></p><p><font size=3 color=red>最后,将 QEMU_EFI.fd、vars-template-pflash.raw 这两个文件一并复制到存放位置</font></p><p>总的文件大概如下图</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU7.png" alt="文件总数"></p><h2 id="启动系统"><a href="#启动系统" class="headerlink" title="启动系统"></a>启动系统</h2><p>在存放的目录(我的是 E:\QEMU\ARM)下新建文本文档,命名为 start.cmd,并编辑内容【<>里的内容(包括引号)是需要自行修改的内容,你可以将脚本的编码通过记事本改为 ANSI,这样 cmd 内提示的中文报错就不会乱码】</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">qemu-system-aarch64.exe -M virt,virtualization=true -cpu <CPU 型号> -smp <CPU 核心数> -m <运行内存大小> ^</span><br><span class="line">-device qemu-xhci -device usb-kbd -device usb-tablet ^</span><br><span class="line">-drive file=<"硬盘文件路径\文件名.qcow2">,<span class="keyword">if</span>=virtio ^</span><br><span class="line">-nic user,model=virtio ^</span><br><span class="line">-drive file=<"系统镜像路径\文件名.iso">,media=cdrom,<span class="keyword">if</span>=none,id=cdrom -device usb-storage,drive=cdrom ^</span><br><span class="line">-drive file=<"virtio-win 所在路径\virtio-win 的名称.iso">,media=cdrom,<span class="keyword">if</span>=none,id=cdrom1 -device usb-storage,drive=cdrom1 ^</span><br><span class="line">-bios QEMU_EFI.fd -device ramfb ^</span><br><span class="line">-drive file=vars-template-pflash.raw,<span class="keyword">if</span>=pflash,index=<span class="number">1</span>,<span class="built_in">format</span>=raw</span><br></pre></td></tr></table></figure><p>比如我的 CPU 型号为 cortex-a76(可选的还有 cortex-a72、cortex-a57 和 cortex-a53,亦或者是其它,但最近几个版本的 QEMU 就只能选 a76 了)<br>CPU 核心数量为 4,运行内存大小为 6144 MB<br>硬盘文件、系统镜像和 virtio-win 镜像命名为 Image.iso,OS.qcow2 和 virtio-win.iso<br>(若 start.cmd 与前面几个文件在同一目录下就不需要指定目录,直接填写名称即可)<br>那么我的命令如下(<font size=3 color=yellow>需要区分大小写,而且路径和文件名不要有空格,用下划线 _ 代替,或者在收尾添加英文引号: <code>"</code></font>)</p><p>查询支持模拟的主板:<code>qemu-system-aarch64.exe -M help</code><br>查询支持模拟的 CPU:<code>qemu-system-aarch64.exe -cpu help</code></p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">qemu-system-aarch64.exe -M virt,virtualization=true -cpu cortex-a76 -smp <span class="number">4</span> -m <span class="number">6144</span> ^</span><br><span class="line">-device qemu-xhci -device usb-kbd -device usb-tablet ^</span><br><span class="line">-drive file=OS.qcow2,<span class="keyword">if</span>=virtio ^</span><br><span class="line">-nic user,model=virtio ^</span><br><span class="line">-drive file=Image.iso,media=cdrom,<span class="keyword">if</span>=none,id=cdrom -device usb-storage,drive=cdrom ^</span><br><span class="line">-drive file=virtio-win.iso,media=cdrom,<span class="keyword">if</span>=none,id=cdrom1 -device usb-storage,drive=cdrom1 ^</span><br><span class="line">-bios QEMU_EFI.fd -device ramfb ^</span><br><span class="line">-drive file=vars-template-pflash.raw,<span class="keyword">if</span>=pflash,index=<span class="number">1</span>,<span class="built_in">format</span>=raw</span><br></pre></td></tr></table></figure><p>保存后双击运行,如果正常会是这样,可以进入到 TinaoCore Logo 的引导页</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU8.png" alt="启动 Windows"></p><hr><p>若有如下报错为正常,无需理会<br>第一个是未指定 vars-template-pflash.raw 的格式(已在文中更新代码,故不会出现该报错),第二个不知道有什么用(反正不影响.jpg</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU9.png" alt="报错 1"></p><p>但或者是这种找不到文件的报错,则需要自己在文件名前加上路径</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU9.1.png" alt="报错 2"></p><hr><p>然后就这样漫长的等待,就会进入到 Windows 安装程序页(按下 <kbd>Ctrl</kbd>+ <kbd>Alt</kbd>+<kbd>G</kbd> 即可将鼠标脱离虚拟机)</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU10.png" alt="Windows 安装程序"></p><h2 id="安装系统"><a href="#安装系统" class="headerlink" title="安装系统"></a>安装系统</h2><p>在选择磁盘的时候,点击“加载驱动程序(L)”</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU11.png" alt="加载驱动程序"></p><p>选择“浏览(B)”</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU12.png" alt="浏览"></p><p>选择 virtio-win 光驱</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU13.png" alt="选择 virtio-win 光驱"></p><p>找到名为“viostor”的文件夹,选择里面“w11”文件夹下的“ARM64”文件夹(如果安装的是 Windows 10 则选择 w10)</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU14.png" alt="选择 virtio 驱动"></p><p>选择驱动程序,然后点击“下一页(N)”,这样就可以正常安装系统了</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU15.png" alt="选择驱动"></p><p>最后进入无尽的等待…</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU16.png" alt="复制文件"></p><p>x86 转译 AArch64 性能会有所下降(不止一点点,再加上 QEMU 是软件模拟),所以安装时间会比普通的虚拟机要长不知道多少倍(<br><font size=1>*记得开启“鼠标经过时捕获”(“Grab On Hover”)或“捕获输入”(“Grab Input”)</font></p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU16.1.png" alt="鼠标经过时捕获"></p><p>从进入安装程序到准备就绪,花了近一个半小时(<br>没什么意外的话,可能这个要转 114514h(悲<br>(而且鉴于无法联网,且硬盘驱动都要自己加载,所以这个过程跳过也没啥问题()</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU17.png" alt="准备就绪"></p><hr><p>这里不得不说一下 CPU 才 1.0Ghz 属实吝啬,不过不难看出它真的在动了(<br>有需要的话可以自己搜一下 <a href="https://cn.bing.com/search?q=QEMU+%E9%85%8D%E7%BD%AE+CPU">QEMU 配置 CPU</a></p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU18.png" alt="CPU 信息"></p><p>当我把 QEMU 升级之后之后就被识别出是虚拟机力(无慈悲</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU18.1.png" alt="CPU 信息 2"></p><hr><p>按下 <kbd>Shift</kbd> + <kbd>F10</kbd> 打开 CMD 窗口,并输入以下命令</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">OOBE\MSOOBE</span><br></pre></td></tr></table></figure><p>然后就会跳过那漫长的准备就绪阶段</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU19.png" alt="命令(卡一下才会自动重启)"></p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU20.png" alt="下一阶段"></p><p>再等待亿会,就可以进入 OOBE 了</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU21.png" alt="OOBE"></p><p>由于暂时没有网卡驱动,且 Windows 11 要求联网才能继续,所以需要跳过联网激活验证(Windows 10 可跳过该步骤)<br>按下 <kbd>Shift</kbd> + <kbd>F10</kbd> 打开 CMD 窗口,并输入以下命令</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">OOBE\BypassNRO</span><br></pre></td></tr></table></figure><p>(如果这期间 OOBE 仍要求联网,可以打开 CMD 窗口,输入 <code>explorer</code> 并打开,然后再按<a href="#%E7%BD%91%E5%8D%A1%E9%A9%B1%E5%8A%A8">网卡驱动</a>的方式安装网卡驱动)</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU22.png" alt="命令"></p><p>等待一会,系统会自动重启,然后就可以继续正常安装了</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU23.png" alt="请稍等"></p><p>可能你会遇到“为什么我的电脑重启了?”这个提示,无需理会,点击“下一步(N)”即可</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU24.png" alt="为什么我的电脑重启了?"></p><p>接着就可以按照正常方式继续安装了</p><hr><h3 id="若无法跳过账户登录或只能登录到工作账户"><a href="#若无法跳过账户登录或只能登录到工作账户" class="headerlink" title="若无法跳过账户登录或只能登录到工作账户"></a>若无法跳过账户登录或只能登录到工作账户</h3><p>如果发现只能登录到工作账户的话可以按 <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>F3</kbd> 跳过 OOBE<br>然后在计算机管理里启用 Administrator 或新建其它管理员账户,然后以管理员身份运行 cmd 并输入命令</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">xcopy</span> "<span class="variable">%SystemRoot%</span>\System32\svchost.exe" "<span class="variable">%SystemRoot%</span>\System32\oobe\audit.exe" /X</span><br></pre></td></tr></table></figure><p>完成后重启虚拟机即可<br>(可能有风险,建议备份源文件到桌面,命令 <code>xcopy "%SystemRoot%\System32\oobe\audit.exe" "%Public%\Desktop\Backup" /X</code>)</p><hr><p>一切都开始好起来力)</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU25.png" alt="此操作可能需要几分钟"></p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU26.png" alt="进入桌面"></p><h2 id="网卡驱动"><a href="#网卡驱动" class="headerlink" title="网卡驱动"></a>网卡驱动</h2><p>右键“开始菜单”按钮,选择“Windows PowerShell(管理员)”(或者在 CMD 窗口输入 <code>powershell</code> 也可以)<br>然后在命令框中输入以下命令并重启</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">bcdedit /<span class="built_in">set</span> testsigning on</span><br></pre></td></tr></table></figure><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU27.png" alt="开启测试模式"></p><p>在文件资源管理器里打开 virtio-win 光驱,然后定位到 \NetKVM\w11\ARM64(如果是 Windows 10 就选择 w10 文件夹)<br>右键类型为“安装信息”的 netkvm 文件,选择“安装”</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU28.png" alt="安装 netkvm"></p><p>在弹出的 UAC 窗口中选择“是”</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU29.png" alt="UAC"></p><p>等待一会,就提示安装完成</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU30.png" alt="安装完成"></p><p>再等一会就有网络了</p><p>这是最后在里面运行 Dism++ ARM64 的效果(启动速度和运行效率会比 x64 转译 ARM64 快许多)</p><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/WindowsARMonQEMU/WindowsARMonQEMU31.png" alt="运行软件"></p><h2 id="后话"><a href="#后话" class="headerlink" title="后话"></a>后话</h2><ol><li><p>光驱<br>如果你后面不需要光驱了可以把<br><code>-drive file=<"系统镜像路径\文件名.iso">,media=cdrom,if=none,id=cdrom -device usb-storage,drive=cdrom ^</code><br>与<br><code>-drive file=<"virtio-win 所在路径\virtio-win.iso">,media=cdrom,if=none,id=cdrom1 -device usb-storage,drive=cdrom1 ^</code><br>这两行代码删除</p></li><li><p>性能<br>因为没有显卡驱动以及其它的驱动,在 QEMU 模拟 Windows ARM 性能会大打折扣,整个过程会非常漫长,建议将文件存放在 SSD 内<br>或许你可以试试将 <code>-device virtio-gpu</code>添加到 <code>start.cmd</code> 内,然后在虚拟机工具栏 – “视图(V)” 里选择 <code>virtio-GPU</code>,但或许更糟糕(</p></li></ol><!---device virtio-gpu,virgl=on--><ol start="3"><li><p>对应驱动<br>文章内仅模拟了所需的硬件及网卡,其它的硬件需要自行查询<br>镜像内其它驱动的大致意思如下:<sup><a href="#参考文献">[3]</a></sup><br>NetKVM/: Virtio 网络驱动<br>viostor/: Virtio 块驱动<br>vioscsi/: Virtio SCSI 驱动<br>viorng/: Virtio RNG 驱动<br>vioser/: Virtio 串口驱动<br>Balloon/: Virtio 内存气球驱动<br>qxl/: 用于 Windows 7 及之前版本的 QXL 显卡驱动. (virtio-win-0.1.103-1 和之后版本会创建)<br>qxldod/: 用于 Windows 8 及之后版本的 QXL 显卡驱动. (virtio-win-0.1.103-2 和之后版本会创建)<br>pvpanic/: QEMU pvpanic 设备驱动 (virtio-win-0.1.103-2 和之后版本会创建)<br>guest-agent/: QEMU Guest Agent 32bit 和 64bit 安装包<br>qemupciserial/: QEMU PCI 串口设备驱动<br>vfd: 用于 Windows XP 下的 VFD 软驱镜像</p></li><li><p>优化<br>如果真的很慢可以看看 BetaWiki 给出的解决方案(不一定 100% 有效)<br>以及关闭 Microsoft Defender 防病毒等</p></li></ol><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line">sc stop "Spooler"</span><br><span class="line">sc config "Spooler" <span class="built_in">start</span>= disabled</span><br><span class="line">sc stop "WSearch"</span><br><span class="line">sc config "WSearch" <span class="built_in">start</span>= disabled</span><br><span class="line"><span class="comment">REM Disable Automatic Defragmentation</span></span><br><span class="line">schtasks /Delete /TN "\Microsoft\Windows\Defrag\ScheduledDefrag" /F</span><br><span class="line"><span class="comment">REM Disable Pagefile</span></span><br><span class="line">wmic computersystem <span class="built_in">set</span> AutomaticManagedPagefile=FALSE</span><br><span class="line">wmic pagefileset delete</span><br><span class="line"><span class="comment">REM Disable Hibernation</span></span><br><span class="line">powercfg -h off</span><br></pre></td></tr></table></figure><ol start="5"><li><p>传输文件<br>在物理机内添加共享文件夹,权限改成 Everyone 并允许读取写入(如果你怕会被其它人截取则在映射网络驱动器时需要输入物理机的系统账户以登录到共享文件夹),然后在虚拟机内映射网络驱动器即可</p></li><li><p>其它<br>你可以使用 Dism++ 手动添加所有驱动到 install.wim 和 boot.wim,这样在安装过程中就不用这么麻烦<br>或者将 Dism++ 等工具放在 Image.iso 或 virtio-win.iso 里,这样可以在 Windows Setup 环境下解决问题</p></li></ol><h2 id="参考文献"><a href="#参考文献" class="headerlink" title="参考文献"></a>参考文献</h2><ol><li><a name = "ref1" href="https://wiki.betaworld.cn/%E5%A6%82%E4%BD%95%E5%9C%A8QEMU%E4%B8%AD%E5%AE%89%E8%A3%85Windows_Client_ARM64">BetaWorld Wiki(由此改编)</a></li><li><a name = "ref2" href="https://wiki.betaworld.cn/%E6%96%87%E4%BB%B6:Win11_on_QEMU_ARM64_Linux.png">封面:BetaWorld Wiki</a></li><li><a name = "ref3" href="https://blog.51cto.com/dangzhiqiang/1833615">51CTO 博客——党志强</a></li></ol><h2 id="其它"><a href="#其它" class="headerlink" title="其它"></a>其它</h2><p>你还可以查看 <a href="https://blog.crrashh.com/archives/194">在 QEMU 安装 Windows on ARM - 云萧的咕咕屋</a></p>]]></content>
<categories>
<category> 教程 </category>
<category> Windows </category>
<category> 虚拟机 </category>
<category> QEMU </category>
</categories>
<tags>
<tag> Windows </tag>
<tag> QEMU </tag>
</tags>
</entry>
<entry>
<title>修复 Windows 系统组件</title>
<link href="/zh-CN/tutorial/Windows/repairsystem/"/>
<url>/zh-CN/tutorial/Windows/repairsystem/</url>
<content type="html"><![CDATA[<h2 id="用前说明"><a href="#用前说明" class="headerlink" title="用前说明"></a>用前说明</h2><p>本教程节选改编自 <a href="https://learn.microsoft.com/troubleshoot/windows-server/deployment/fix-windows-update-errors">Microsoft Learn</a></p><h3 id="实验环境"><a href="#实验环境" class="headerlink" title="实验环境"></a>实验环境</h3><p>系统版本≥Windows 7 SP1 或 Windows Server 2008</p><ul><li>(不是 SP1?<a href="/zh-CN/tutorial/Windows/NT6upd/" title="点这里看升级教程">点这里看升级教程</a>)</li></ul><p>PowerShell<br>—-以下根据你的系统版本来选择—-<br><a href="https://aka.ms/DownloadWindows11">Windows 11</a><br><a href="https://aka.ms/DownloadWindows10">Windows 10</a><br><a href="https://www.microsoft.com/zh-cn/software-download/windows8ISO">Windows 8.1</a><br><a href="https://www.microsoft.com/en-us/software-download/windowsinsiderpreviewiso">Windows 预览版</a></p><h2 id="SFC-amp-DISM-命令修复"><a href="#SFC-amp-DISM-命令修复" class="headerlink" title="SFC&DISM 命令修复"></a>SFC&DISM 命令修复</h2><hr><p>该部分不适用于 Windows 7 SP1 或 Windows Server 2008,请转到<a href="https://learn.microsoft.com/troubleshoot/windows-server/deployment/fix-windows-update-errors">Microsoft Learn</a></p><hr><p>在任意页面按下 Windows 徽标键+X 打开,单击 Windows PowerShell(管理员)(Windows 10)或 Windows 终端(管理员)(Windows 11)<br>系统版本≤Windows 8.1 或 Windows Server 2012 则需要按下 Windows 徽标键+Q 打开搜索框 ,搜索 PowerShell,并右键以管理员身份运行</p><h3 id="检查映像是否可修复"><a href="#检查映像是否可修复" class="headerlink" title="检查映像是否可修复"></a>检查映像是否可修复</h3><p>扫描映像以检查损坏,此操作将需要几分钟时间</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">DISM.exe /Online /Cleanup<span class="literal">-Image</span> /ScanHealth</span><br></pre></td></tr></table></figure><p>检查映像以查看是否检测到任何损坏</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">DISM.exe /Online /Cleanup<span class="literal">-Image</span> /CheckHealth</span><br></pre></td></tr></table></figure><p>使用 /CheckHealth 参数时,DISM 工具将报告映像是正常、可修复还是不可修复,如果映像不可修复,则应丢弃映像并重新开始;如果映像是可修复的,则可以使用 /RestoreHealth 参数来修复映像</p><h3 id="修复损坏的映像"><a href="#修复损坏的映像" class="headerlink" title="修复损坏的映像"></a>修复损坏的映像</h3><p>DISM 将通过 Windows Update 来提供修复损坏所需的文件</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">DISM.exe /Online /Cleanup<span class="literal">-Image</span> /Restorehealth</span><br></pre></td></tr></table></figure><hr><p>如果 Windows Update 功能已损坏或无法启动,请更换修复源</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">DISM.exe /Online /Cleanup<span class="literal">-Image</span> /RestoreHealth /Source:<install.wim 所在路径> /LimitAccess</span><br></pre></td></tr></table></figure><p>其中,<文件路径>是 install.wim 映像所在的位置<br>(如何提取 install.wim 请看附录)<br>比如我将 install.wim 放在了桌面上的 Image 文件夹(使用了相对路径),或者 D 盘的 Image 文件夹,则命令就是</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">DISM.exe /Online /Cleanup<span class="literal">-Image</span> /RestoreHealth /Source:%USERPRIFOLE%\Desktop\Image /LimitAccess</span><br></pre></td></tr></table></figure><p>或</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">DISM.exe /Online /Cleanup<span class="literal">-Image</span> /RestoreHealth /Source:D:\Image /LimitAccess</span><br></pre></td></tr></table></figure><p>完成命令操作可能需要几分钟时间</p><p>完成后继续使用 SFC 命令修复镜像</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sfc /SCANNOW</span><br></pre></td></tr></table></figure><h3 id="若只能在-WinRE-下修复"><a href="#若只能在-WinRE-下修复" class="headerlink" title="若只能在 WinRE 下修复"></a>若只能在 WinRE 下修复</h3><p>如果你在 WinRE 且进不去系统,发现使用 <code>DISM.exe /Online /Cleanup-Image /RestoreHealth /Source:<文件路径> /LimitAccess</code> 提示“DISM 不支持使用 /Online 选项为 Windows PE 提供服务。”<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/repairsystem/repairsystem2.png" alt="WinRE 报错"><br>所以需要以下的命令</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">DISM.exe /Image:<系统盘盘符> /Cleanup-Image /RestoreHealth /Source:<install.wim 所在路径></span><br></pre></td></tr></table></figure><p>若我的系统盘盘符为 C:,且 install.wim 存放在 D 盘的 Image 文件夹,则命令为</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">DISM.exe /Image:C: /Cleanup-Image /RestoreHealth /Source:D:\Image</span><br></pre></td></tr></table></figure><p><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/repairsystem/repairsystem1.png" alt="PE 下修复 Windows"></p><h2 id="镜像修复"><a href="#镜像修复" class="headerlink" title="镜像修复"></a>镜像修复</h2><p>使用镜像根目录下的 Setup 程序对系统进行修复(升级)(所需时间≥45 分钟,好处是可以不升级系统版本的情况下完整地修复系统)<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/repairsystem/repairsystem3.png" alt="Setup"><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/repairsystem/repairsystem4.png" alt="同意许可协议"><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/repairsystem/repairsystem5.png" alt="准备安装"><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/repairsystem/repairsystem6.png" alt="开始安装"><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/repairsystem/repairsystem7.png" alt="正在安装"><br>稍等片刻,电脑将重启多次,完成后即可正常使用</p><h2 id="附录"><a href="#附录" class="headerlink" title="附录"></a>附录</h2><h3 id="如何提取-install-wim"><a href="#如何提取-install-wim" class="headerlink" title="如何提取 install.wim"></a>如何提取 install.wim</h3><p>先用压缩软件解压 ISO 镜像到一个空白文件夹<br>然后在 sources 文件夹下找到 install.wim 即可<br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/repairsystem/repairsystem8.png"><br><img data-src="https://gcore.jsdelivr.net/gh/Goo-aw233/WebSiteResources@main/Pics/repairsystem/repairsystem9.png"></p>]]></content>
<categories>
<category> 教程 </category>
<category> Windows </category>
<category> DISM </category>
</categories>
<tags>
<tag> Windows </tag>
</tags>
</entry>
<entry>
<title>给电脑重装 Windows</title>
<link href="/zh-CN/tutorial/Windows/reinstallOS/"/>
<url>/zh-CN/tutorial/Windows/reinstallOS/</url>