網頁

2025年3月19日 星期三

製作win11 21h2 pe繁體中文無聲音無網路維修版

微軟要求CPU 支援 SSE 4.2指令集,POPCNT 指令,才能執行Windows 11 24H2,因此要執行win11 24h2 pe 的電腦,CPU 須支援 SSE 4.2。POPCNT是x86架構CPU的一個指令,屬於SSE指令集。2008年Intel第一代Core處理器支援SSE4.2指令集。2007年AMD的Barcelona處理器架構引入POPCNT指令

支援 SSE 4.2 CPU如下:
Intel 在 2008 年11月推出的第一代 Core 處理器 於 Nehalem 架構 (第一代 Core ) 加入 SSE4.2。
AMD 15h(AMD Bulldozer、AMD Piledriver、AMD Excavator、AMD Steamroller)的處理器(支援SSE4.1、SSE4.2和SSE4a)。
AMD 16h(AMD Jaguar、AMD Puma)的處理器(支援SSE4.1、SSE4.2和SSE4a)。
AMD Zen的處理器(支援SSE4.1、SSE4.2和SSE4a)。
從Bulldozer架構開始的AMD銳龍3/5/7/9,AMD EPYC(ZEN架構及以後)。

win11 24h2 pe須cpu 支援sse4.2指令集才能開機,不支援時,會重開機無法進入桌面。因此,仍有需要製作通用於新舊cpu的pe。隨著windows 版本升級,越高版本windows,相同工序,製作完成的pe檔案越大。實務上,只要pe開機正常,規劃的功能有到位,可以看到磁碟機,應用程式執行無誤,不一定要用最高windows 版本來製作pe,選擇合適的windows 版本,製作出來的pe穩定,最符合需求。

曾測試過,有一個常用的應用程式在win 11 21h2/22h2/23h2/24h2執行正常,於win10 pe無法正常執行。且windows 10也是較舊的作業系統,對新硬體支援程度,不如windows 11。
通用於新舊cpu,維護用pe,希望檔案小,開機快,支援新硬體程度高,能執行常用的應用程式、工具程式,本文選擇繁體中文windows 11 21h2 22000.3260來製作win 11 pe,網路上也有不同語言的win 11 21h2 22000.3260 pe可供參考,這樣製作起來較順利。

無聲音無網路維護版Win 11 PE 21h2(64位元繁體,intel RST VMD,Thunderbolt4,含導入SRS USB驅動),採用WimBuilder繁體中文介面製作。核心檔案小,開機速度快,無網路,無聲音,有大量開機需要的共用驅動程式包,開機時載入,支持Intel 最新平臺RST VMD快速存儲,支持Intel最新平臺筆電、觸控板,支持最新平台磁碟陣列RAID硬碟模式,支持觸控螢幕,螢幕鍵盤,Sruface觸摸、觸控螢幕、鍵盤。僅將部分/常用工具程式在桌面建立捷徑。開機可以處理windows 11 24H2用新安裝方式安裝的分割區。不需聲網純維護用,就用這個PE。

開始製作win11 21h2 pe繁體中文無聲音無網路維修版
準備windows 11 21h2 繁體中文ISO檔
從UUP dump 下載https://uupdump.net/
->windows 11->21H2

-> Windows 11 (22000.3260) amd64

->中文(繁體)->下一步

->windows 專業版->下一步

->點選 下載、添加額外版本並轉換為ISO
->點選 整合.NET Framework 3.5(僅適用於windows 轉換工具)
->僅留 windows 企業版
->建立下載套件

->解壓縮下載套件檔

在uup_download_windows.cmd檔名上按滑鼠右鍵->以系統管理員身分執行。

Windows 11 (22000.3260)檔案下載中。

下載完成,建立ISO檔22000.3260.241003-0908.CO_RELEASE_SVC_PROD1_CLIENTMULTI_X64FRE_ZH-TW.ISO

在d碟建立win1121h2pe資料夾。存放wimbuilder的資料夾。
在d碟建立222資料夾(搭配精簡檔win1121h2downsize.cmd、del_other.cmd、del_system32_2.cmd、del_system32_3.cmd)。用於掛載boot.wim。

製作win11 21h2 pe及精減次序:
.wimbuilder 製作win11 21h2 pe BOOTPE.iso。(BOOTPE.iso 存於d:\win1121h2pe\_Factory_  資料夾)。
.擷取BOOTPE.iso sources資料夾boot.wim檔。
.執行gimagex mount掛載boot.wim至d\222 資料夾。
.執行win1121h2downsize.cmd、del_other.cmd、del_system32_2.cmd、del_system32_3.cmd大精簡(本文使用的精簡批次檔)。
.執行WinMerge與相同版號pe比對精簡windows\winsxs資料夾。比對精簡windows\SystemResources資料夾。比對精簡windows\syswow64 資料夾
.copy   預先準備的精簡檔、修正檔、批次檔、reg檔、補檔至win11 21h2 pe。
.用 CAT簽名批量檢查工具,精減*.cat檔。
(請自行上網搜尋及下載CAT簽名批量檢查工具)
.刪除Windows\System32\config多餘檔案。
.unmount卸載boot.wim
.gimagex export壓縮boot.wim
.測試win11 21h2 pe,如能正常開機,務必將需要的pe功能及應用程式,逐一完整測試。

請注意:google chrome或edge下載wimbuilder檔案時,可能顯示 已封鎖危險下載內容  這個檔案有危險....,或防毒軟體沒關閉 即時保護,下載的檔案被隔離或刪除。因此,下載檔案前先關閉防毒軟體即時保護。下載的檔案,可能被誤判病毒或在google chrome第一次下載時,可能被判別有危險,下載過,第二次下載,就不會被攔。

關閉防毒軟體即時保護(以微軟內建防毒軟體為例)

  以下載WimBuilder2-Full.v2024-11-11_Beta.7z為例,顯示已封鎖危險下載內容
這個檔案有危險....,點 ⋮ 。

下載危險的檔案

wimbuilder的bin\x64資料夾NSudoC.exe,可能會被防毒軟體誤判為病毒。
注意:NSudoC.exe如被防毒軟體移除或隔離,wimbuilder將無法正常製作pe。因此,執行WimBuilder.cmd開始製作pe前務必檢查NSudoC.exe是否存在。

wimbuilder的bin\x86資料夾NSudoC.exe,可能會被防毒軟體誤判為病毒。

windows 11/10的微軟防毒軟體,關閉 即時保護,重開機後會自動開啟即時保護(windows server重開機後不會自動開啟即時保護) ,請特別留意。因此,請於防毒軟體,將wimbuilder的資料夾,加入排除項目。

NSudoC.exe,不一定是最新版最合用,目前有用過6.1、6.2版。NSudoC.exe各版本下載網址:

下載win11 21h2 pe製作工具wimbuilder。
a.寫本文時是從這個連結下載,https://slore.lanzoux.com/b00z5zy6b 或https://lanzoux.com/b00z5zy6b,請自行依需要找最新版下載。
b.從github下載最新開發版代碼https://github.com/slorelee/wimbuilder2/archive/master.zip 。
解壓縮從a下載最新版至d:\win1124h2pe資料夾,再解壓縮b下載的最新開發版代碼至a下載的解壓縮資料夾d:\win1124h2pe,覆蓋上去。注意,最新開發版wimbuilder2-master.zip檔的Projects\WIN10XPE\01-Components\03-Audio\last.bat的內容如是以下內容,會造成製作完成的pe播放影片沒有聲音。
Projects\WIN10XPE\01-Components\03-Audio\last.bat檔的內容:
rem fix unrecognized characters in volume mixer dialog
rem // reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink" /v "Microsoft YaHei UI"
if not exist "%X_WIN%\Fonts\Malgun.ttf" (
    if "%WB_PE_LANG%"=="zh-CN" copy /y Malgun.ttf "%X_WIN%\Fonts\"
)

if "x%opt[audio.hide_system_tray_icon]%"=="xtrue" (
    reg add "HKLM\Tmp_SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v HideSCAVolume /t REG_DWORD /d 1 /f
)

可以用從https://slore.lanzoux.com/b00z5zy6b  下載的WimBuilder2-Full.v2024-11-11_Beta.7z內的Projects\WIN10XPE\01-Components\03-Audio\last.bat取代。也就是先解壓縮WimBuilder2-Full.v2024-11-11_Beta.7z,再解壓縮最新開發版wimbuilder2-master.zip更新WimBuilder2-Full.v2024-11-11_Beta內檔案,再擷取WimBuilder2-Full.v2024-11-11_Beta.7z內的Projects\WIN10XPE\01-Components\03-Audio\last.bat覆蓋。本文是製作無聲音維護用pe,有無修正last.bat,都不影響無聲音維護用pe製作。
WimBuilder2-Full.v2024-11-11_Beta.7z內的Projects\WIN10XPE\01-Components\03-Audio\last.bat檔內容:
rem fix unrecognized characters in volume mixer dialog
rem // reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink" /v "Microsoft YaHei UI"
if not exist "%X_WIN%\Fonts\Malgun.ttf" (
    if "%WB_PE_LANG%"=="zh-CN" copy /y Malgun.ttf "%X_WIN%\Fonts\"
)

if "x%opt[audio.hide_system_tray_icon]%"=="xtrue" (
    reg add "HKLM\Tmp_SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v HideSCAVolume /t REG_DWORD /d 1 /f
)


if %VER[3]% GEQ 22621 call :AudioSrvPatch_22621
if exist "%X_SYS%\AudioSrvPolicyManager.dll.org" del /f /q "%X_SYS%\AudioSrvPolicyManager.dll.org"
goto :EOF

:AudioSrvPatch_22621
call :AudioSrvPatch -s "83 FB 01 0F 84 92 00 00 00" -r "83 FB 01 E9 93 00 00 00 00"
if %errorlevel% EQU 1 goto :EOF

:AudioSrvPatch_22621_900later
call :AudioSrvPatch -s "83 FE 01 74 FF" -S "FF FF FF FF 00" -r "83 FE 01 EB FF" -R "FF FF FF FF 00"
if %errorlevel% EQU 1 goto :EOF

:AudioSrvPatch_25300
call :AudioSrvPatch -s "83 FF 01 74 FF" -S "FF FF FF FF 00" -r "83 FF 01 EB FF" -R "FF FF FF FF 00"
if %errorlevel% EQU 1 goto :EOF
goto :EOF

:AudioSrvPatch
binmay.exe  -u "%X_SYS%\AudioSrvPolicyManager.dll" %*
fc /b "%X_SYS%\AudioSrvPolicyManager.dll" "%X_SYS%\AudioSrvPolicyManager.dll.org"
goto :EOF

切換至wimbuilder解壓縮的資料夾,先執行一次UserConfig.cmd,執行WimBuilder.cmd->關於->更新。將wimbuilder更新至最新。wimbuilder更新後,記得關閉再重新執行WimBuilder.cmd。注意:線上更新可能有少數檔案會發生更新錯誤,在 設置 更新網址,改設Gitee(預設GitHub),重新更新一次,也許就可以更新成功。

GitHub更新曾碰到3個檔無法更新,改用Gitee,順利更新完成。

注意:如線上更新仍有少數檔案發生更新錯誤,請改從github下載最新開發版代碼https://github.com/slorelee/wimbuilder2/archive/master.zip 解壓縮覆蓋。再擷取WimBuilder2-Full.v2024-11-11_Beta.7z內的Projects\WIN10XPE\01-Components\03-Audio\last.bat覆蓋,製作的pe播放影片才有聲音。本文是製作無聲音維護用pe,有無修正last.bat,都不影響無聲音維護用pe製作。

pe 開機出現顯示Hold Escape key to prevent StartAllBack from loading的解決方法:用網友製作22000.3260pe的相同版本內Program Files\StartAllBack資料夾,取代自己製作pe的StartAllBack資料夾。

應用程式無法釘選到工作列:用網友22000.3260pe內下列二個檔案取代。
Windows\System32\ExplorerFrame.dll
Windows\System32\shell32.dll

自己從頭到尾設定wimbuilder製作win11 21h2 pe的各種設定,須經非常多次調整設定項目,耗費很多時間與測試,才可能製作出自己滿意的pe。如用別人優化過的設定檔,合用就直接套用,或稍微修改一下,省事又方便。wimbuilder設定檔範例之一:無聲音無網路維修版,請開啟記事本,將以下內容存為litewin112200e.js,存於d:\win1124h2pe資料夾之下的AppData\Projects\WIN10XPE\_Assets_\preset或Projects\WIN10XPE\_Assets_\preset資料夾。
litewin112200e.js檔內容:
var $patches_opt = {
    "build.source":"light",
    "build.registry.software":"merge",
    "build.catalog":"light",
    "build.wow64support":true,
    "system.admin_enabled":false,
    "system.admin_countdown":"5",
    "system.admin_screen":"wallpaper",
    "system.darktheme":false,
    "theme.title_color":"1",
    "config.fbwf.cache":"8192",
    "config.computername":"LITEPE",
    "shell.app":"explorer",
    "tweak.shortcut.noarrow":true,
    "tweak.shortcut.nosuffix":true,
    "component.MMC":true,
    "component.DWM":true,
    "component.vcruntime":true,
    "component.mspaint":false,
    "component.winphotoviewer":false,
    "network.builtin_drivers":false,
    "slim.ieframedll":true,
    "slim.jscript":true,
    "slim.hta":true,
    "slim.wmi":true,
    "slim.small_fonts":true,
    "slim.small_imageresdll":true,
    "slim.safe":true,
    "slim.extra":true,
    "build.cmd_mode":false,
    "build.cmd_mode_code":"MODE 150,9999",
    "build.registry.system_driverdatabase":"merge",
    "build.registry.drivers":"merge",
    "account.localized_admin_name":"Administrator",
    "account.custom_admin_name":"Administrator",
    "adk.wpe_path":"C:\\Program Files (x86)\\Windows Kits\\10\\Assessment and Deployment Kit\\Windows Preinstallation Environment",
    "adk.lang":"-",
    "desktop.iconsize":"48",
    "shell.use_theme_color":true,
    "shell.startmenu":"auto",
    "SIB.version":"*",
    "SIB.programs.flyout":false,
    "policy.lmcompatlevel":"2",
    "network.trayicon":true,
    "network.trayicon_lan":true,
    "network.trayicon_wlan":true,
    "network.full_functional":true,
    "network.type_builtin_drivers":"default",
    "component.dsmsvc":true,
    "MTP.mtphelper":"mtpHelper.sys",
    "IME.indicator":true,
    "IME.system_ime":true,
    "IME.ms_pinyin":true,
    "IME.ms_Phonetic":true,
    "component.notepad":false,
    "7-zip.selected_assoc_exts":"7z,zip,rar",
    "material.location":"X:",
    "material.load_mode":"auto",
    "PEMApp.chrome":false,
    "PEMApp.chrome.type":"INST",
    "PEMApp.chrome.dl_url":"https://dl.google.com/release2/chrome/AMQFLHv8Muh_ExYptfSwv2g_81.0.4044.113/81.0.4044.113_chrome_installer.exe",
    "mycustom.theme_id":1,
    "slim.mui":true,
    "slim.winre_sources":true,
    "slim.winboot":true,
    "slim.wbem_repository":true,
    "slim.speech":true,
    "slim.hive_drivers":true,
    "slim.hive_software":true,
    "slim.hive_system":true,
    "slim.hive_components":true,
    "vbox.version":"auto",
    "shell.wallpaper":"%APP_ROOT%\\%APPDATA_DIR%\\_CustomFiles_\\wallpaper.jpg",
    "build.preprocess_wim":false,
    "build.mount_wim_action":"built_in",
    "build.load_hive":true,
    "build.precommit_wim":true,
    "build.commit_wim_action":"built_in",
    "build.custom_iso":true,
    "build.preprocess_wim_script":"_PreProcessWimFile.bat",
    "build.mount_wim_script":"_MountWimFile.bat",
    "build.precommit_wim_script":"_PreCommitWimFile.bat",
    "build.commit_wim_script":"_CommitWimFile.bat",
    "build.registry.system":false,
    "build.full_catalog":false,
    "loader.name":"pecmd",
    "loader.PEMaterial":"PEMaterial",
    "system.power.off_disp_bat":0,
    "system.power.off_disp_plug":0,
    "system.power.off_disk_bat":20,
    "system.power.off_disk_plug":0,
    "system.power.dis_usb_suspend_bat":true,
    "system.power.dis_usb_suspend_plug":true,
    "system.volume_level":33,
    "system.volume_mute":false,
    "system.numlock":true,
    "account.SYSTEM_logon_pass":"",
    "account.admin_enabled":false,
    "account.admin_logon_pass":"",
    "account.admin_password":"",
    "account.admin_autologon":true,
    "account.autologon_countdown":0,
    "account.admin_screen":"wallpaper",
    "account.precreate_admin_profile":false,
    "component.taskmgr":true,
    "component.bitlocker":true,
    "component.search":true,
    "patch.drvinst":true,
    "driver.load_basic_display_demand":false,
    "slim.font.mingliu":true,
    "slim.hive":true,
    "component.MTP":false,
    "component.RNDIS":false,
    "component.printer":false,
    "component.bluetooth":false,
    "component.camera":false,
    "shell.light_theme":false,
    "shell.show_thisPC":true,
    "shell.show_recyclebin":true,
    "shell.taskbar.combine":"never",
    "shell.fix.showDesktop":true,
    "shell.ui.resolution":true,
    "shell.clockarea.event":true,
    "shell.system.property":true,
    "shell.shortcut.ocf":true,
    "shell.fix.fullscreen":true,
    "IE.x64_component":"x64",
    "IE.custom_settings":true,
    "IE.home_page":"about:blank",
    "component.wordpad":false,
    "component.snippingtool":false,
    "component.accessibility":false,
    "wow64.speech_api":false,
    "component.MSI":false,
    "component.netfx":false,
    "component.opengl":false,
    "component.directx":false,
    "component.speech_onecore":false,
    "appcompat.property_page":false,
    "appcompat.assistant":false,
    "system.high_compatibility":true,
    "component.PPPoE":false,
    "network.hide_system_tray_icon":false,
    "network.function_discovery":false,
    "network.networklist_and_sharecenter":false,
    "component.resmon":false,
    "winxshell.ui_volume.startup":false,
    "winxshell.ui_volume.no_beep":true,
    "winxshell.ui_wifi.startup":false,
    "_._._":""
}

function patches_state_init() {
    uncheck_tree_node("_CustomFiles_");
    check_tree_node("00-Configures");
    open_tree_node("00-Configures");
    uncheck_tree_node("01-Components/00-Boot2WinRE");
    check_tree_node("01-Components/00-KK-System Tools");
    check_tree_node("01-Components/00-Shell/Explorer");
    uncheck_tree_node("01-Components/00-Shell/WinXShell");
    select_tree_node("01-Components/00-Shell/WinXShell");
    check_tree_node("01-Components/00-Shell/za-StartMenu");
    open_tree_node("01-Components/00-Shell");
    uncheck_tree_node("01-Components/02-Network");
    uncheck_tree_node("01-Components/03-Audio");
    uncheck_tree_node("01-Components/CredDialog");
    check_tree_node("01-Components/Devices and Printers");
    uncheck_tree_node("01-Components/IME");
    uncheck_tree_node("01-Components/Internet Explorer");
    uncheck_tree_node("01-Components/Remote Desktop");
    uncheck_tree_node("01-Components/Windows Media Player");
    uncheck_tree_node("01-Components/za-Accessories");
    check_tree_node("01-Components/zh-RuntimeKits");
    uncheck_tree_node("01-Components/zp-UWPAppX");
    open_tree_node("01-Components");
    uncheck_tree_node("01-Drivers");
    open_tree_node("01-Drivers");
    uncheck_tree_node("02-Apps");
    uncheck_tree_node("02-PEMaterial");
    uncheck_tree_node("10-MyCustom.LINK");
    open_tree_node("10-MyCustom.LINK");
    check_tree_node("za-Slim");
    uncheck_tree_node("za-SlimUltra");
    uncheck_tree_node("zy-Test");
    uncheck_tree_node("zz-ISO");
    uncheck_tree_node("zz-Utils");
}

將從UUP DUMP下載的windows 11 21h2 iso檔掛載至虛擬光碟機。iso檔掛載至虛擬光碟機,可用虛擬光碟程式或ultraiso或windows 掛載。本文使用windows預設的功能 掛載,在iso檔按滑鼠右鍵->開啟檔案->windows 檔案總管。

下圖是以22000.3260.241003-0908.CO_RELEASE_SVC_PROD1_CLIENTMULTI_X64FRE_ZH-TW.ISO檔掛載至K碟為例(實際掛載磁碟機代號可能不同)

執行UserConfig.cmd->按打X,結束UserConfig.cmd

執行WimBuilder.cmd
先點選 設置->專家->主題 依自己喜好設定,右下角 立即重新啟動以應用最新設置?,點 是。重新啟動WimBuilder。

準備->瀏覽->點選 windows 11 21h2 iso掛載的磁碟機->確定。自動帶入install.wim

點選要使用install.wim的那一個映像來製作win11 21h2 pe。
本文使用的windows 11 21h2 install.wim有2個映像(專業版、企業版Enterprise),網路上較多人用企業版來製作pe,就選企業版。也有人選專業版來製作pe。

點 Wim->點選 windows 11 21h2 iso掛載的磁碟機->切換至sources資料夾->點選 boot.wim->開啟

注意!一定要選 boot.wim的第2映像,做出的PE才能順利開機(各項設定也須正確)。

基礎映像選好了boot.wim[2]:Microsoft Windows Setup
準備 的設定至此,算設定完成了。

點選 專案 ,用預設的 WIN10XPE 即可。從畫面可知wimbuilder有支援用windows 11 21h2 22000製作win11 21h2 pe。

如點 定制 ,當前專案  預設:默認v,沒有任何專案可選。請分別點前面介紹過的 設置 準備,點進去設定後,再來點 定制 ,就可以有專案可選。


前面的litewin112200e.js檔,如有存於d:\win1124h2pe資料夾之下的Projects\WIN10XPE\_Assets_\preset或Projects\WIN10XPE\_Assets_\preset資料夾。在這裡就可以點選litewin112200e.js檔。
接下來就詳細說明,要用wimbuilder 製作無聲音無網路且能正常開機的win11 21h2 pe要怎麼設定及設定竅門。
我的定置(前置)都不點選。
點選 配置,不點選 設置[1-組建(CMD)]命令提示符窗口的大小。

點選 構建,點選 使用對WinSxS進行精簡的Winre.wim,點選 從install.wim提取必要註冊表專案,使用install.wim的DRIVERS註冊表 點選 合併,合併install.wim的SYSTEM\DriverDatabase 點選 合併。

點選 啟動管理,使用PECMD進行PE啟動管理

點選 系統,FBWF x碟緩存大小,網路上無聲音無網路維修版pe,設4G/6G/8G/12G/16G/128G都有,實際使用4GB就可以執行,設8GB、16GB也不錯,寫本文時wimbuilder沒有16GB選項,選8GB或128GB都可以,這裡設8GB。
電源選項就照下圖設定。點選 開啟NumLock(數字鎖定鍵)。

點選 帳戶。因要製作實用、開機較快、核心較小pe。就不啟用Administrator帳戶(如點選啟用,製作出來的pe,檔案約多10MB)。
點選 設置為自動登入帳戶  自動登入的確認時間(秒):0。背景圖片 使用桌面壁紙。
不點選 預創建用戶配置檔。

點選 客製化設定。點選 消除快捷方式圖示上的小箭頭。點選 禁止新增“快捷方式”文字 。

點選 組件。點選DWM、搜尋、禁用驅動數位簽名驗證。

不點選 Boot2WinRE
點選 系統工具。點選MMC組件、 任務管理器、BitLocker。

點選 命令列。基礎 就照下圖設定。壁紙 先用預設的,也可以點入設定自己的圖檔。

命令列 右邊視窗往上捲,桌面 顯示我的電腦圖示ON 、 顯示回收站圖示ON。點選 中等圖示
任務欄 點選 總是合併,隱藏標題
(我的電腦=本機,回收站=資源回收筒,任務欄=工作列)

命令列點選Explorer、WinXShell、開始選單,開始選單設 自動,讓wimbuilder自動設定,產生Program Files\StartAllBack 資料夾(開始選單增強工具,將win11 11 pe的開始功能表,恢復傳統樣式)
program Files\WinXShell  資料夾(WinXShell 殼層取代預設的Windows 檔案總管殼層 Explorer.exe)
點選 Explorer 。
點選 WinXShell,取消 啟動UI_Volume,取消 啟動UI_WIFI。

點選 開始選單,點選 自動。雖有勾選Classic Shell、StartIsBack,自動選用StartAllBack。

不點選 網路支援
不點選 音頻
不點選 依據對話框
點選 裝置和印表機。點選 DsmSvc(裝置安裝管理) _原生安全移除硬體(彈出USB裝置)功能。

輸入法IME不點選。系統自帶的輸入法檔案很大,在pe輸入中文字數不多,絕大部分都是操作應用程式,改用檔案小且外置的小小輸入法繁體中文版。
不點選 Internet Explorer
不點選 遠端桌面、Windows Media Player、Windows 附件(不點選Windows附件,windows\system32仍有記事本程式)。
點選 組件。點選 64位操作系統上支持運行32位應用程式 、VC++ 8,9 運行庫。點選 Support more applications。

接下來的項目只點選精簡,其餘的都不點選。
精簡的所有項目,全部打勾。
寫到這裡,製作win11 21h2 pe 22000 繁體中文無聲音無網路維修版的 定制 各項設定已完成。接下來是 構建,製作win11 21h2 pe iso檔。

點選 構建。點選 構建後立即創建ISO。按 清理
按 1-構建(CMD)。開始製作win11 21h2 pe 22000 繁體中文無聲音無網路維修版。

構建中

製作完成存於\_Factory_資料夾,檔名BOOTPE.iso,約512MB。

win11 21h2 pe iso檔BOOTPE.iso製作完成,接下來就是重頭戲,手工精減。精減用到的工具程式gimagex、WinMergePortable、q-dir、7-zip。
建議用一個穩定的pe開機,在pe精減剛製作完成的win11 21h2 pe ,可以避免刪檔案或存檔需要權限,無法刪除或存檔問題。
本文採用自己製作win11 24h2 pe 26100 繁體中文聲音網路版,於VM pe開機來精簡w
imbuilder製作完成的win11 21h2 pe。

如自己從頭到尾做精簡,失敗率高,精簡之後可能無法開機,執行應用程式可能彈出缺檔畫面,精簡刪檔、補檔,來來回回,測試折騰,做到人仰馬翻,折騰幾天也不一定能達到滿意的瘦身程度,不一定能正常開機。
如有現成pe作品,使用相同pe製作工具程式,windows 版本相同,且已精簡過,精簡後的核心大小也可以接受,就先照單抓藥精簡自己做的win11 21h2 pe,做出仿真pe,再精益求精,添加自己需求功能或升級精簡程度。
為了實作及寫本文,於網絡搜尋pe現成作品,找到一個小於300MB win11 21h2 pe,剛好可以當精簡範本,只是不知道它是用那一個工具程式製作pe,剛好有位網友說它是用wimbuilder製作的,雖有語音不同的遺憾,拿來當精簡範本還不錯。
wimbuilder製作完成的win11 21h2 pe,仍有些缺失待修正:
無法釘選到工作列。用網友22000.3260 pe內的 \Windows\System32\ExplorerFrame.dll \Windows\System32\shell32.dll 替換後就可以釘選了。
觸控螢幕電腦,通過摸觸控螢幕開始選單關機無效或顯示錯誤。可以擷取網友22000.3260pe,boot.wim內的windows\system32\SlideToShutDown.exe檔,放置自己製作win11 24h2 pe windows\system32資料夾,即可解決。
顯示桌面後工作列隱藏問題。wimbuilder、startallback更新到最新即可解決。
安裝windows 11 24h2時,使用預設新的安裝方式,不是選 先前的設定版本 的安裝方式,安裝完成後,wimbuilder 製作的win11 21h2  pe開機是看不到windows 11 24h2安裝的分割區。要用磁碟分割程式分配一個磁碟機代號,才能看到windows 11 24h2安裝的分割區。有網友寫個小程式,win11 21h2  pe開機過程執行,就可以在win11 21h2  pe直接看到windows 11 24h2預設新的安裝方式,安裝的分割區。

繁體小小輸入法無法正常輸入的問題。wimbuilder 更新到最新,Windows\System32資料夾已補上C_936.NLS檔,繁體小小輸入法可以正常輸入。

從BOOTPE.iso擷取 boot.wim至一個資料夾,pe開機,執行gimagex,將boot.wim   mount至d:\222資夾,點選 可讀寫(Read and Write)及寫入修改結果(Commit Changes)。以供進行精簡。

可手動精簡的資料夾與檔案:
執行大量精減檔案批次檔win1121h2downsize.cmd,這個批次檔是沿用win11 24h2 pe 26100 繁體中文聲音網路版製作時用的精減檔案批次檔,實際上,有些檔案win11 21h2是沒有的,也有一些檔案在win11 21h2 pe無聲音無網路維修版,以後可以再進一步精減,精簡過程仍需不斷測試,刪檔、補回檔案,來來回回,非常耗時,直至win11 21h2 pe穩定。
win1121h2downsize.cmd檔內容:
del "d:\222\setup.exe" /f /q
rd "D:\222\PEMaterial" /s /q
del "D:\222\Users\Default\AppData\Roaming\Microsoft\Windows\AccountPictures\*.*" /f /q
del "D:\222\ProgramData\Microsoft\User Account Pictures\*.*" /f /q
rd "D:\222\Windows\AppCompat" /s /q
rd "D:\222\Windows\Cursors" /s /q
rd "D:\222\Windows\en-US" /s /q
rem rd "D:\222\Windows\Fonts" /s /q
rd "D:\222\Windows\Globalization\ICU" /s /q
rd "D:\222\Windows\Help" /s /q
rd "D:\222\Windows\INF\PERFLIB" /s /q
rd "D:\222\Windows\INF\wsearchidxpi" /s /q
rd "D:\222\Windows\LiveKernelReports" /s /q
rd "D:\222\Windows\Logs" /s /q
rd "D:\222\Windows\PolicyDefinitions" /s /q
rd "D:\222\Windows\PLA" /s /q
rd "D:\222\Windows\CbsTemp" /s /q
rd "D:\222\Windows\UUS" /s /q
rd "D:\222\Windows\servicing\Sessions" /s /q
rd "D:\222\Windows\servicing\Packages" /s /q
rd "D:\222\Windows\servicing\SQM" /s /q
rd "D:\222\Windows\servicing\Version" /s /q
del "D:\222\Windows\servicing\CbsApi.dll" /f /q
rem del "D:\222\Windows\servicing\CbsMsg.dll" /f /q
del "D:\222\Windows\servicing\wrpintapi.dll" /f /q
rd "D:\222\Windows\schemas" /s /q
rd "D:\222\Windows\security" /s /q
rd "D:\222\Windows\ServiceState" /s /q
del "D:\222\Windows\bfsvc.exe" /f /q
del "D:\222\Windows\hh.exe" /f /q
del "D:\222\Windows\notepad.exe" /f /q
del "D:\222\Windows\splwow64.exe" /f /q
rd "D:\222\Windows\Boot\DVD_EX" /s /q
rd "D:\222\Windows\Boot\EFI_EX" /s /q
rd "D:\222\Windows\Boot\Fonts_EX" /s /q
rd "D:\222\Windows\Boot\PXE" /s /q
rd "D:\222\Windows\Boot\PXE_EX" /s /q
rd "D:\222\Windows\Boot\Resources\en-US" /q /s
del "D:\222\Windows\Boot\BootDebuggerFiles.ini" /f /q
del "D:\222\Windows\Boot\Fonts\malgun_boot.ttf" /f /q
del "D:\222\Windows\Boot\Fonts\malgunn_boot.ttf" /f /q
del "D:\222\Windows\Boot\Fonts\meiryo_boot.ttf" /f /q
del "D:\222\Windows\Boot\Fonts\meiryon_boot.ttf" /f /q
del "D:\222\Windows\Boot\Fonts\msyh_boot.ttf" /f /q
del "D:\222\Windows\Boot\Fonts\msyhn_boot.ttf" /f /q
del "D:\222\Windows\Boot\Fonts\segmono_boot.ttf" /f /q
del "D:\222\Windows\Boot\Fonts\wgl4_boot.ttf" /f /q
del "D:\222\Windows\Fonts\mingliu.ttc"  /f /q
rd "D:\222\Windows\System32\0409" /s /q
rd "D:\222\Windows\System32\catroot2" /s /q
rd "D:\222\Windows\System32\CodeIntegrity\Update" /s /q
rd "D:\222\Windows\System32\config\BBI" /s /q
rd "D:\222\Windows\System32\config\RegBack" /s /q
rd "D:\222\Windows\System32\config\BCD-Template" /s /q
rd "D:\222\Windows\System32\config\ELAM" /s /q
rd "D:\222\Windows\System32\downlevel" /s /q
rd "D:\222\Windows\System32\DriverState" /s /q
rd "D:\222\Windows\System32\GroupPolicy" /s /q
rd "D:\222\Windows\System32\GroupPolicyUsers" /s /q
rd "D:\222\Windows\System32\icsxml" /s /q
rd "D:\222\Windows\System32\LogFiles" /s /q
rd "D:\222\Windows\System32\MUI" /s /q
rd "D:\222\Windows\System32\NetworkList" /s /q
rd "D:\222\Windows\System32\oobe" /s /q
rd "D:\222\Windows\System32\ras" /s /q
rd "D:\222\Windows\System32\RasToast" /s /q
rd "D:\222\Windows\System32\Recovery" /s /q
rd "D:\222\Windows\System32\restore" /s /q
rd "D:\222\Windows\System32\setup" /s /q
rd "D:\222\Windows\System32\SMI" /s /q
rd "D:\222\Windows\System32\spool" /s /q
rd "D:\222\Windows\System32\Sysprep" /s /q
rd "D:\222\Windows\System32\WindowsPowerShell" /s /q
del "D:\222\Windows\System32\@VpnToastIcon.png" /f /q
del "D:\222\Windows\System32\4545ffe2-0dc4-4df4-9d02-299ef204635e_hvsocket.dll" /f /q
del "D:\222\Windows\System32\69fe178f-26e7-43a9-aa7d-2b616b672dde_eventlogservice.dll" /f /q
del "D:\222\Windows\System32\6bea57fb-8dfb-4177-9ae8-42e8b3529933_RuntimeDeviceInstall.dll" /f /q
del "D:\222\Windows\System32\adtschema.dll" /f /q
del "D:\222\Windows\System32\advapi32res.dll" /f /q
del "D:\222\Windows\System32\AggregatorHost.exe" /f /q
del "D:\222\Windows\System32\APMon.dll" /f /q
rem del "D:\222\Windows\System32\AppMon.dll" /f /q 不能刪,會造成edge第2次開啟很慢
del "D:\222\Windows\system32\apprepapi.dll" /f /q
rem del "D:\222\Windows\System32\AppXApplicabilityBlob.dll" /f /q 不能刪,會造成edge第2次開啟很慢
rem del "D:\222\Windows\System32\AppXDeploymentServer.dll" /f /q 不能刪,會造成edge第2次開啟很慢
rem del "D:\222\Windows\System32\AppxPackaging.dll" /f /q 不能刪,會造成edge第2次開啟很慢
del "D:\222\Windows\System32\Apx01000.dll" /f /q
del "D:\222\Windows\System32\ARP.EXE" /f /q
del "D:\222\Windows\System32\asycfilt.dll" /f /q
del "D:\222\Windows\System32\AtBroker.exe" /f /q
del "D:\222\Windows\System32\audioresourceregistrar.dll" /f /q
del "D:\222\Windows\System32\authfwcfg.dll" /f /q
del "D:\222\Windows\System32\AuthFWGP.dll" /f /q
del "D:\222\Windows\System32\AuthFWWizFwk.dll" /f /q
del "D:\222\Windows\System32\authui.dll" /f /q
del "D:\222\Windows\System32\autochk.exe" /f /q
del "D:\222\Windows\System32\autofstx.exe" /f /q
del "D:\222\Windows\System32\bcdprov.dll" /f /q
del "D:\222\Windows\System32\bcdsrv.dll" /f /q
del "D:\222\Windows\System32\bderepair.dll" /f /q
del "D:\222\Windows\System32\bidispl.dll" /f /q
del "D:\222\Windows\System32\bitsperf.dll" /f /q
del "D:\222\Windows\System32\BitsProxy.dll" /f /q
del "D:\222\Windows\System32\blb_ps.dll" /f /q
del "D:\222\Windows\System32\blbres.dll" /f /q
del "D:\222\Windows\System32\bmrui.exe" /f /q
del "D:\222\Windows\System32\BootMenuUX.dll" /f /q
del "D:\222\Windows\System32\BootRec.exe" /f /q
del "D:\222\Windows\System32\bootstr.dll" /f /q
del "D:\222\Windows\System32\bootsvc.dll" /f /q
del "d:\222\Windows\System32\bootux.dll" /f /q
rem del "D:\222\Windows\System32\browseui.dll" /f /q  不能刪,會造成edge第2次開啟很慢
del "D:\222\Windows\System32\C_10000.NLS" /f /q
rem del "D:\222\Windows\System32\C_1251.NLS" /f /q
rem del "D:\222\Windows\System32\C_1252.NLS" /f /q
rem del "D:\222\Windows\System32\C_20127.NLS" /f /q
rem del "D:\222\Windows\System32\C_28591.NLS" /f /q
rem del "D:\222\Windows\System32\C_437.NLS" /f /q
del "D:\222\Windows\System32\C_G18030.DLL" /f /q
del "D:\222\Windows\System32\c_GSM7.DLL" /f /q
del "D:\222\Windows\System32\C_ISCII.DLL" /f /q
del "D:\222\Windows\System32\cabapi.dll" /f /q
del "D:\222\Windows\System32\cacls.exe" /f /q
del "d:\222\Windows\System32\calc.exe" /f /q
del "d:\222\Windows\System32\cdp.dll" /f /q
del "D:\222\Windows\System32\certca.dll" /f /q
del "D:\222\Windows\System32\certcli.dll" /f /q
del "D:\222\Windows\System32\cfmifs.dll" /f /q
del "D:\222\Windows\System32\cfmifsproxy.dll" /f /q
del "D:\222\Windows\System32\chkntfs.exe" /f /q
del "D:\222\Windows\System32\cimfs.dll" /f /q
del "D:\222\Windows\System32\clip.exe" /f /q
del "D:\222\Windows\System32\CloudRecApi.dll" /f /q
del "D:\222\Windows\System32\CloudRecoveryDownloadTool.dll" /f /q
del "D:\222\Windows\System32\CloudRecSvc.exe" /f /q
del "D:\222\Windows\System32\clusapi.dll" /f /q
del "D:\222\Windows\System32\cmifw.dll" /f /q
del "D:\222\Windows\System32\cngcredui.dll" /f /q
del "D:\222\Windows\System32\cngprovider.dll" /f /q
del "D:\222\Windows\System32\comcat.dll" /f /q
del "D:\222\Windows\System32\comp.exe" /f /q
del "D:\222\Windows\System32\compact.exe" /f /q
del "D:\222\Windows\System32\CompPkgSrv.exe" /f /q
del "D:\222\Windows\System32\compstui.dll" /f /q
del "D:\222\Windows\System32\configras.cmd" /f /q
del "D:\222\Windows\System32\ConhostV1.dll" /f /q
del "D:\222\Windows\System32\connect.dll" /f /q
del "D:\222\Windows\System32\ConsoleLogon.dll" /f /q
del "D:\222\Windows\System32\convertvhd.exe" /f /q
del "D:\222\Windows\System32\CoreMas.dll" /f /q
del "D:\222\Windows\System32\CredentialUIBroker.exe" /f /q
del "D:\222\Windows\System32\CredProv2faHelper.dll" /f /q
del "D:\222\Windows\System32\CredProvDataModel.dll" /f /q
del "D:\222\Windows\System32\credprovhost.dll" /f /q
del "D:\222\Windows\System32\credprovs.dll" /f /q
del "D:\222\Windows\System32\credprovslegacy.dll" /f /q
del "D:\222\Windows\System32\cryptdlg.dll" /f /q
del "D:\222\Windows\System32\cryptext.dll" /f /q
del "D:\222\Windows\System32\cryptoss.dll" /f /q
del "D:\222\Windows\System32\CSystemEventsBrokerClient.dll" /f /q
del "D:\222\Windows\System32\ctac.json" /f /q
del "D:\222\Windows\System32\d3d10.dll" /f /q
del "D:\222\Windows\System32\d3d10core.dll" /f /q
del "D:\222\Windows\System32\d3d10level9.dll" /f /q
del "D:\222\Windows\System32\d3d11on12.dll" /f /q
del "D:\222\Windows\System32\D3D12Core.dll" /f /q
del "D:\222\Windows\System32\d3d8thk.dll" /f /q
del "D:\222\Windows\System32\d3d9on12.dll" /f /q
del "D:\222\Windows\System32\D3DSCache.dll" /f /q
rem del "D:\222\Windows\System32\DafPrintProvider.dll" /f /q
del "D:\222\Windows\System32\dafWCN.dll" /f /q
del "D:\222\Windows\System32\dafWfdProvider.dll" /f /q
del "d:\222\Windows\System32\dbgeng.dll" /f /q
del "D:\222\Windows\System32\DbgModel.dll" /f /q
rem del "D:\222\Windows\System32\DDOIProxy.dll" /f /qs
rem del "D:\222\Windows\System32\DefaultDeviceManager.dll" /f /q
rem del "D:\222\Windows\System32\DefaultPrinterProvider.dll" /f /q
del "D:\222\Windows\System32\DefaultQuestions.json" /f /q
del "D:\222\Windows\System32\delegatorprovider.dll" /f /q
del "D:\222\Windows\System32\DetailedReading-Default.xml" /f /q
rem del "D:\222\Windows\System32\DevDispItemProvider.dll" /f /q
rem del "D:\222\Windows\System32\DeveloperOptionsSettingsHandlers.dll" /f /q
del "D:\222\Windows\System32\DeviceCensus.exe" /f /q
rem del "D:\222\Windows\System32\DeviceDisplayStatusManager.dll" /f /q
rem del "D:\222\Windows\System32\DeviceDriverRetrievalClient.dll" /f /q
rem del "D:\222\Windows\System32\DeviceElementSource.dll" /f /q
rem del "D:\222\Windows\System32\DeviceEnroller.exe" /f /q
rem del "D:\222\Windows\System32\DeviceMetadataRetrievalClient.dll" /f /q
del "D:\222\Windows\System32\devicengccredprov.dll" /f /q
rem del "D:\222\Windows\System32\DevicePairing.dll" /f /q
rem del "D:\222\Windows\System32\DevicePairingFolder.dll" /f /q
rem del "D:\222\Windows\System32\DevicePairingProxy.dll" /f /q
rem del "D:\222\Windows\System32\DevicePairingWizard.exe" /f /q
del "D:\222\Windows\System32\DeviceProperties.exe" /f /q
rem del "D:\222\Windows\System32\deviceregistration.dll" /f /q
rem del "D:\222\Windows\System32\DevicesFlowBroker.dll" /f /q
del "D:\222\Windows\System32\DeviceSoftwareInstallationClient.dll" /f /q
del "D:\222\Windows\System32\DeviceUpdateAgent.dll" /f /q
rem del "D:\222\Windows\System32\DeviceUxRes.dll" /f /q
rem del "D:\222\Windows\System32\devinv.dll" /f /q
rem del "D:\222\Windows\System32\DevQueryBroker.dll" /f /q
del "D:\222\Windows\System32\dhcpcmonitor.dll" /f /q
del "D:\222\Windows\System32\diagnosticdataquery.dll" /f /q
del "D:\222\Windows\System32\dialer.exe" /f /q
del "D:\222\Windows\System32\diskraid.exe" /f /q
del "D:\222\Windows\System32\dllhst3g.exe" /f /q
del "D:\222\Windows\System32\dmcmnutils.dll" /f /q
del "D:\222\Windows\System32\dnscacheugc.exe" /f /q
del "D:\222\Windows\System32\doclient.dll" /f /q
del "D:\222\Windows\System32\domgmt.dll" /f /q
del "D:\222\Windows\System32\doskey.exe" /f /q
del "D:\222\Windows\System32\dosvc.dll" /f /q
del "D:\222\Windows\System32\dot3api.dll" /f /q
del "D:\222\Windows\System32\dot3cfg.dll" /f /q
del "D:\222\Windows\System32\dot3gpclnt.dll" /f /q
del "D:\222\Windows\System32\dot3msm.dll" /f /q
del "D:\222\Windows\System32\dot3svc.dll" /f /q
del "D:\222\Windows\System32\dpapimig.exe" /f /q
del "D:\222\Windows\System32\dpx.dll" /f /q
del "D:\222\Windows\System32\driverquery.exe" /f /q
del "D:\222\Windows\System32\dskquota.dll" /f /q
del "D:\222\Windows\System32\dtdump.exe" /f /q
del "D:\222\Windows\System32\dtsh.dll" /f /q
del "D:\222\Windows\System32\dxgwdi.dll" /f /q
del "D:\222\Windows\system32\dxtmsft.dll" /f /q
del "D:\222\Windows\System32\Eap3Host.exe" /f /q
del "D:\222\Windows\System32\eapp3hst.dll" /f /q
del "D:\222\Windows\System32\eappcfg.dll" /f /q
del "D:\222\Windows\System32\eappcfgui.dll" /f /q
del "D:\222\Windows\System32\eappgnui.dll" /f /q
del "D:\222\Windows\System32\eapphost.dll" /f /q
del "D:\222\Windows\System32\eapprovp.dll" /f /q
del "D:\222\Windows\System32\eapputil.dll" /f /q
del "D:\222\Windows\System32\eapsvc.dll" /f /q
del "D:\222\Windows\System32\EapTeapAuth.dll" /f /q
del "D:\222\Windows\System32\EapTeapConfig.dll" /f /q
rem del "d:\222\Windows\System32\edgeIso.dll" /f /q
rem del "D:\222\Windows\System32\EdgeManager.dll" /f /q
del "D:\222\Windows\System32\efscore.dll" /f /q
del "D:\222\Windows\System32\efssvc.dll" /f /q
rem system32\en-US精簡,可以將要保留的二個檔案複製出來,將檔案全刪除後,再將二個檔案複製回來
md d:\tempen-US
copy "D:\222\Windows\System32\en-US\fveapi.dll.mui" d:\tempen-US /y
copy "D:\222\Windows\System32\en-US\shellstyle.dll.mui" d:\tempen-US /y
del "D:\222\Windows\System32\en-US\*.*" /f /q
copy d:\tempen-US\*.* D:\222\Windows\System32\en-US /y
rd d:\tempen-US /s /q
del "D:\222\Windows\System32\esentutl.exe" /f /q
del "D:\222\Windows\System32\esevss.dll" /f /q
del "D:\222\Windows\System32\ETWESEProviderResources.dll" /f /q
del "D:\222\Windows\System32\eventcls.dll" /f /q
del "D:\222\Windows\System32\expand.exe" /f /q
del "D:\222\Windows\System32\f3ahvoas.dll" /f /q
del "D:\222\Windows\System32\Facilitator.dll" /f /q
rem del "D:\222\Windows\System32\FaxPrinterInstaller.dll" /f /q
del "D:\222\Windows\System32\fcon.dll" /f /q
rem del "D:\222\Windows\System32\FdDevQuery.dll" /f /q
del "D:\222\Windows\System32\fdPHost.dll" /f /q
rem del "D:\222\Windows\System32\fdPnp.dll" /f /q
rem del "D:\222\Windows\System32\fdprint.dll" /f /q
del "D:\222\Windows\System32\fdProxy.dll" /f /q
del "D:\222\Windows\System32\FDResPub.dll" /f /q
del "D:\222\Windows\System32\fdSSDP.dll" /f /q
del "D:\222\Windows\System32\fdWCN.dll" /f /q
del "D:\222\Windows\System32\fdWNet.dll" /f /q
del "D:\222\Windows\System32\fdWSD.dll" /f /q
rem del "D:\222\Windows\System32\findnetprinters.dll" /f /q
del "D:\222\Windows\System32\finger.exe" /f /q
del "D:\222\Windows\System32\Firewall.cpl" /f /q
del "D:\222\Windows\System32\FirewallControlPanel.dll" /f /q
del "D:\222\Windows\System32\fixmapi.exe" /f /q
del "D:\222\Windows\System32\FlightSettings.dll" /f /q
del "D:\222\Windows\System32\fltmgrres.dll" /f /q
del "D:\222\Windows\System32\fmapi.dll" /f /q
del "D:\222\Windows\System32\framedyn.dll" /f /q
del "D:\222\Windows\System32\fstx.dll" /f /q
del "D:\222\Windows\System32\ftp.exe" /f /q
del "D:\222\Windows\System32\fundisc.dll" /f /q
del "D:\222\Windows\System32\fverecoverux.dll" /f /q
del "D:\222\Windows\System32\fwcfg.dll" /f /q
del "D:\222\Windows\System32\GdiPlus.dll" /f /q
rem del "D:\222\Windows\System32\gpprnext.dll" /f /q
del "D:\222\Windows\System32\HalExtIntcLpioDMA.dll" /f /q
del "D:\222\Windows\System32\HalExtIntcPseDMA.dll" /f /q
del "D:\222\Windows\System32\HalExtPL080.dll" /f /q
del "D:\222\Windows\System32\hbaapi.dll" /f /q
del "D:\222\Windows\System32\hdwwiz.cpl" /f /q
del "D:\222\Windows\System32\hdwwiz.exe" /f /q
del "D:\222\Windows\System32\help.exe" /f /q
del "D:\222\Windows\system32\hlink.dll" /f /q
del "D:\222\Windows\System32\HNetCfgClient.dll" /f /q
del "D:\222\Windows\System32\HOSTNAME.EXE" /f /q
del "D:\222\Windows\System32\HvSocket.dll" /f /q
del "D:\222\Windows\System32\icacls.exe" /f /q
del "D:\222\Windows\System32\icfupgd.dll" /f /q
rem del "D:\222\Windows\System32\icm32.dll" /f /q
rem del "D:\222\Windows\System32\icmui.dll" /f /q
del "D:\222\Windows\System32\icsigd.dll" /f /q
del "D:\222\Windows\System32\icsunattend.exe" /f /q
rem del "D:\222\Windows\System32\icu.dll" /f /q 不能刪會無法搜尋
del "D:\222\Windows\System32\icuin.dll" /f /q
del "D:\222\Windows\System32\icuuc.dll" /f /q
del "D:\222\Windows\system32\ie4uinit.exe" /f /q
del "D:\222\Windows\system32\ieapfltr.dll" /f /q
del "D:\222\Windows\system32\iedkcs32.dll" /f /q
rem del "D:\222\Windows\System32\iemigplugin.dll" /f /q
del "D:\222\Windows\system32\iepeers.dll" /f /q
del "D:\222\Windows\system32\IEProxyDesktop.dll" /f /q
del "D:\222\Windows\system32\iernonce.dll" /f /q
rem del "D:\222\Windows\System32\IESettingSync.exe" /f /q
del "D:\222\Windows\system32\iesetup.dll" /f /q
del "D:\222\Windows\system32\iesysprep.dll" /f /q
del "D:\222\Windows\system32\ieui.dll" /f /q
del "D:\222\Windows\system32\ieuinit.inf" /f /q
del "D:\222\Windows\System32\imagelib.dll" /f /q
del "D:\222\Windows\System32\imagesp1.dll" /f /q
del "D:\222\Windows\System32\imapi.dll" /f /q
del "D:\222\Windows\System32\imapi2fs.dll" /f /q
del "D:\222\Windows\System32\imgutil.dll" /f /q
del "D:\222\Windows\System32\IndexedDbLegacy.dll" /f /q
del "D:\222\Windows\System32\inetcomm.dll" /f /q
rem del "D:\222\Windows\System32\inetpp.dll" /f /q
rem del "D:\222\Windows\System32\inetppui.dll" /f /q
del "D:\222\Windows\System32\INETRES.dll" /f /q
del "D:\222\Windows\System32\InitializeNetwork.cmd" /f /q
del "D:\222\Windows\System32\iphlpsvc.dll" /f /q
del "D:\222\Windows\System32\ipnathlp.dll" /f /q
del "D:\222\Windows\System32\iprtprio.dll" /f /q
del "D:\222\Windows\System32\iprtrmgr.dll" /f /q
del "D:\222\Windows\System32\IPSECSVC.DLL" /f /q
del "D:\222\Windows\System32\joinproviderol.dll" /f /q
del "D:\222\Windows\System32\jscript.dll" /f /q
del "D:\222\Windows\System32\jsproxy.dll" /f /q
del "D:\222\Windows\System32\kd_02_10df.dll" /f /q
del "D:\222\Windows\System32\kd_02_10ec.dll" /f /q
del "D:\222\Windows\System32\kd_02_1137.dll" /f /q
del "D:\222\Windows\System32\kd_02_1414.dll" /f /q
del "D:\222\Windows\System32\kd_02_14e4.dll" /f /q
del "D:\222\Windows\System32\kd_02_15ad.dll" /f /q
del "D:\222\Windows\System32\kd_02_15b3.dll" /f /q
del "D:\222\Windows\System32\kd_02_1969.dll" /f /q
del "D:\222\Windows\System32\kd_02_19a2.dll" /f /q
del "D:\222\Windows\System32\kd_02_1af4.dll" /f /q
del "D:\222\Windows\System32\kd_02_8086.dll" /f /q
del "D:\222\Windows\System32\kd_07_1415.dll" /f /q
del "D:\222\Windows\System32\kd_0C_8086.dll" /f /q
del "D:\222\Windows\System32\kdcpw.dll" /f /q
del "D:\222\Windows\System32\kdnet.dll" /f /q
del "D:\222\Windows\System32\kdnet_uart16550.dll" /f /q
del "D:\222\Windows\System32\KeyCredMgr.dll" /f /q
del "D:\222\Windows\System32\keymgr.dll" /f /q
del "D:\222\Windows\System32\kmddsp.tsp" /f /q
del "D:\222\Windows\System32\l2gpstore.dll" /f /q
del "D:\222\Windows\System32\l2nacp.dll" /f /q
del "D:\222\Windows\System32\label.exe" /f /q
del "D:\222\Windows\System32\localkdcsvc.dll" /f /q
rem del "D:\222\Windows\System32\localspl.dll" /f /q
rem del "D:\222\Windows\System32\localui.dll" /f /q
del "D:\222\Windows\System32\lodctr.exe" /f /q
del "D:\222\Windows\System32\LogonController.dll" /f /q
del "D:\222\Windows\System32\lpk.dll" /f /q
del "D:\222\Windows\System32\manage-bde.exe" /f /q
rem del "D:\222\Windows\System32\mapistub.dll" /f /q 不能刪會無法搜尋
del "D:\222\Windows\System32\mblctr.exe" /f /q
del "D:\222\Windows\System32\MBR2GPT.EXE" /f /q
del "D:\222\Windows\System32\mcbuilder.exe" /f /q
del "D:\222\Windows\System32\md1.reg" /f /q
del "D:\222\Windows\System32\mdmregistration.dll" /f /q
del "D:\222\Windows\System32\MdSched.exe" /f /q
del "D:\222\Windows\system32\MFMediaEngine.dll" /f /q
del "D:\222\Windows\system32\mfnetcore.dll" /f /q
del "D:\222\Windows\system32\mfnetsrc.dll" /f /q
del "D:\222\Windows\system32\mfsvr.dll" /f /q
rem del "D:\222\Windows\System32\mgmtapi.dll" /f /q
del "D:\222\Windows\System32\mibincodec.dll" /f /q
del "D:\222\Windows\System32\Microsoft.Windows.Storage.Core.dll" /f /q
del "D:\222\Windows\System32\Microsoft.Windows.Storage.StorageBusCache.dll" /f /q
del "D:\222\Windows\System32\microsoft-windows-battery-events.dll" /f /q
del "D:\222\Windows\System32\microsoft-windows-hal-events.dll" /f /q
del "D:\222\Windows\System32\microsoft-windows-kernel-pnp-events.dll" /f /q
del "D:\222\Windows\System32\microsoft-windows-kernel-power-events.dll" /f /q
del "D:\222\Windows\System32\microsoft-windows-kernel-processor-power-events.dll" /f /q
del "D:\222\Windows\System32\microsoft-windows-pdc.dll" /f /q
del "D:\222\Windows\System32\microsoft-windows-sac-events.dll" /f /q
del "D:\222\Windows\System32\microsoft-windows-sleepstudy-events.dll" /f /q
del "D:\222\Windows\System32\microsoft-windows-storage-tiering-events.dll" /f /q
del "D:\222\Windows\System32\microsoft-windows-system-events.dll" /f /q
del "D:\222\Windows\System32\mimofcodec.dll" /f /q
del "D:\222\Windows\System32\mispace.dll" /f /q
del "D:\222\Windows\System32\mlang.dat" /f /q
del "D:\222\Windows\System32\mprddm.dll" /f /q
del "D:\222\Windows\System32\mprdim.dll" /f /q
del "D:\222\Windows\System32\mprmsg.dll" /f /q
del "D:\222\Windows\System32\MRINFO.EXE" /f /q
del "D:\222\Windows\System32\msafd.dll" /f /q
del "D:\222\Windows\system32\MSAudDecMFT.dll" /f /q
del "D:\222\Windows\System32\msaudite.dll" /f /q
del "D:\222\Windows\System32\mscat32.dll" /f /q
del "D:\222\Windows\system32\msctfuimanager.dll" /f /q
del "D:\222\Windows\system32\msfeeds.dll" /f /q
del "D:\222\Windows\System32\mshtml.tlb" /f /q
del "D:\222\Windows\System32\MshtmlDac.dll" /f /q
del "D:\222\Windows\System32\mshtmled.dll" /f /q
del "D:\222\Windows\System32\mshtmler.dll" /f /q
del "D:\222\Windows\System32\msieftp.dll" /f /q
del "D:\222\Windows\System32\msimtf.dll" /f /q
del "D:\222\Windows\System32\msinfo32.exe" /f /q
del "D:\222\Windows\system32\mskeyprotcli.dll" /f /q
del "D:\222\Windows\system32\msmpeg2vdec.dll" /f /q
del "D:\222\Windows\System32\msobjs.dll" /f /q
del "D:\222\Windows\System32\msoert2.dll" /f /q
del "D:\222\Windows\System32\mspatcha.dll" /f /q
del "D:\222\Windows\System32\mspatchc.dll" /f /q
del "D:\222\Windows\System32\msrating.dll" /f /q
del "D:\222\Windows\System32\mssign32.dll" /f /q
del "D:\222\Windows\System32\mssip32.dll" /f /q
del "D:\222\Windows\System32\mssitlb.dll" /f /q
del "D:\222\Windows\System32\mssph.dll" /f /q
del "D:\222\Windows\System32\mssprxy.dll" /f /q
del "D:\222\Windows\System32\mssrch.dll" /f /q
rem del "D:\222\Windows\System32\mssvp.dll" /f /q 不能刪會無法搜尋
del "D:\222\Windows\System32\msvcirt.dll" /f /q
del "D:\222\Windows\System32\msvcp120_clr0400.dll" /f /q
del "D:\222\Windows\System32\msvcp140_clr0400.dll" /f /q
del "D:\222\Windows\System32\msvcr100_clr0400.dll" /f /q
del "D:\222\Windows\System32\msvcr120_clr0400.dll" /f /q
del "D:\222\Windows\system32\msvproc.dll" /f /q
del "D:\222\Windows\System32\MSWB7.dll" /f /q
rem del "D:\222\Windows\System32\MSWB70404.dll" /f /q 不能刪會無法搜尋
del "D:\222\Windows\System32\mtxdm.dll" /f /q
del "D:\222\Windows\System32\muifontsetup.dll" /f /q
del "D:\222\Windows\System32\MuiUnattend.exe" /f /q
del "D:\222\Windows\System32\NaturalLanguage6.dll" /f /q
del "D:\222\Windows\System32\nbtstat.exe" /f /q
del "D:\222\Windows\System32\nci.dll" /f /q
del "D:\222\Windows\System32\ndfapi.dll" /f /q
del "D:\222\Windows\System32\ndfetw.dll" /f /q
del "D:\222\Windows\System32\NdfEventView.xml" /f /q
del "D:\222\Windows\System32\ndfhcdiscovery.dll" /f /q
del "D:\222\Windows\System32\netdiagfx.dll" /f /q
del "D:\222\Windows\System32\netiohlp.dll" /f /q
rem del "D:\222\Windows\System32\netlogon.dll" /f /q  不能刪會無法搜尋
del "D:\222\Windows\System32\Netplwiz.exe" /f /q
del "D:\222\Windows\System32\nettrace.dll" /f /q
del "D:\222\Windows\System32\ngclocal.dll" /f /q
rem del "D:\222\Windows\System32\NL7Data0404.dll" /f /q 不能刪會無法搜尋
rem del "D:\222\Windows\System32\NL7Lexicons0404.dll" /f /q 不能刪會無法搜尋
del "d:\222\Windows\System32\NL7Models0404.dll" /f /q
del "D:\222\Windows\System32\NOISE.CHT" /f /q
del "D:\222\Windows\System32\normnfc.nls" /f /q
del "D:\222\Windows\System32\normnfd.nls" /f /q
del "D:\222\Windows\System32\normnfkc.nls" /f /q
del "D:\222\Windows\System32\normnfkd.nls" /f /q
del "D:\222\Windows\System32\nrtapi.dll" /f /q
del "D:\222\Windows\System32\nshdnsclient.dll" /f /q
del "D:\222\Windows\System32\nshhttp.dll" /f /q
del "D:\222\Windows\System32\nshipsec.dll" /f /q
del "D:\222\Windows\System32\nshwfp.dll" /f /q
del "D:\222\Windows\System32\ntfsres.dll" /f /q
del "d:\222\Windows\System32\ntkrla57.exe" /f /q
del "D:\222\Windows\System32\ntprint.dll" /f /q
del "D:\222\Windows\System32\ntprint.exe" /f /q
del "D:\222\Windows\system32\occache.dll" /f /q
del "D:\222\Windows\System32\odbccp32.dll" /f /q
del "D:\222\Windows\System32\odbcint.dll" /f /q
del "D:\222\Windows\System32\odbctrac.dll" /f /q
del "D:\222\Windows\System32\offlinelsa.dll" /f /q
del "D:\222\Windows\System32\offlinesam.dll" /f /q
del "D:\222\Windows\System32\OLD5E8E.tmp" /f /q
del "D:\222\Windows\System32\OLD5E9F.tmp" /f /q
del "D:\222\Windows\System32\OLD5EB0.tmp" /f /q
del "D:\222\Windows\system32\OLD91D3.tmp" /f /q
rem del "D:\222\Windows\system32\OLD91E4.tmp" /f /q
rem del "D:\222\Windows\system32\OLD9204.tmp" /f /q
del "D:\222\Windows\System32\oleacchooks.dll" /f /q
del "D:\222\Windows\System32\OneSettingsClient.dll" /f /q
del "D:\222\Windows\System32\OpcServices.dll" /f /q
del "D:\222\Windows\System32\pacjsworker.exe" /f /q
rem del "D:\222\Windows\System32\pcl.sep" /f /q
del "D:\222\Windows\system32\PCPKsp.dll" /f /q
del "D:\222\Windows\System32\pcwum.dll" /f /q
del "D:\222\Windows\System32\PeerDistSh.dll" /f /q
del "D:\222\Windows\System32\perfc009.dat" /f /q
del "D:\222\Windows\System32\perfd009.dat" /f /q
del "D:\222\Windows\System32\perfh009.dat" /f /q
del "D:\222\Windows\System32\perfi009.dat" /f /q
del "D:\222\Windows\System32\perfnet.dll" /f /q
del "D:\222\Windows\System32\perfos.dll" /f /q
del "D:\222\Windows\System32\perfproc.dll" /f /q
rem del "D:\222\Windows\System32\photowiz.dll" /f /q
del "D:\222\Windows\System32\PkgMgr.exe" /f /q
del "D:\222\Windows\System32\plutonfw_AuthenticAMD.dll" /f /q
del "D:\222\Windows\System32\pngfilt.dll" /f /q
del "D:\222\Windows\System32\pnpdiag.dll" /f /q
del "D:\222\Windows\System32\pnppolicy.dll" /f /q
del "D:\222\Windows\System32\pnpui.dll" /f /q
del "D:\222\Windows\System32\PnPUnattend.exe" /f /q
del "D:\222\Windows\System32\polstore.dll" /f /q
del "D:\222\Windows\System32\poqexec.exe" /f /q
del "D:\222\Windows\System32\poweroff.cmd" /f /q
del "D:\222\Windows\system32\prfc0404.dat" /f /q
del "D:\222\Windows\System32\prfd0404.dat" /f /q
del "D:\222\Windows\System32\prfh0404.dat" /f /q
del "D:\222\Windows\System32\prfi0404.dat" /f /q
del "D:\222\Windows\System32\prflbmsg.dll" /f /q
del "D:\222\Windows\System32\print.exe" /f /q
del "D:\222\Windows\System32\printui.dll" /f /q
rem del "D:\222\Windows\System32\Print.PrintSupport.Source.dll" /f /q
rem del "D:\222\Windows\System32\PrintBrmUi.exe" /f /q
rem del "D:\222\Windows\System32\PrinterCleanupTask.dll" /f /q
rem del "D:\222\Windows\System32\printfilterpipelineprxy.dll" /f /q
rem del "D:\222\Windows\System32\printfilterpipelinesvc.exe" /f /q
rem del "D:\222\Windows\System32\PrintIsolationHost.exe" /f /q
rem del "D:\222\Windows\System32\PrintIsolationProxy.dll" /f /q
rem del "D:\222\Windows\System32\printmanagement.msc" /f /q
rem del "D:\222\Windows\System32\PrintPlatformConfig.dll" /f /q
rem del "D:\222\Windows\System32\PrintRenderAPIHost.DLL" /f /q
rem del "D:\222\Windows\System32\printticketvalidation.dll" /f /q
del "D:\222\Windows\System32\printui.exe" /f /q
rem del "D:\222\Windows\System32\PrintWSDAHost.dll" /f /q
rem del "D:\222\Windows\System32\prncache.dll" /f /q
rem del "D:\222\Windows\System32\prnfldr.dll" /f /q  不能刪會無法搜尋
rem del "D:\222\Windows\System32\prnntfy.dll" /f /q
rem del "D:\222\Windows\System32\prntvpt.dll" /f /q
del "D:\222\Windows\System32\ProductEnumerator.dll" /f /q
del "D:\222\Windows\System32\profext.dll" /f /q
del "D:\222\Windows\system32\profprov.dll" /f /q
del "D:\222\Windows\system32\profsvcext.dll" /f /q
del "D:\222\Windows\System32\provthrd.dll" /f /q
del "D:\222\Windows\System32\ProximityCommon.dll" /f /q
del "D:\222\Windows\System32\ProximityCommonPal.dll" /f /q
del "D:\222\Windows\System32\ProximityService.dll" /f /q
del "D:\222\Windows\System32\ProximityServicePal.dll" /f /q
del "D:\222\Windows\System32\prvdmofcomp.dll" /f /q
rem del "D:\222\Windows\System32\pscript.sep" /f /q
del "D:\222\Windows\System32\PSModuleDiscoveryProvider.dll" /f /q
del "D:\222\Windows\System32\psmodulediscoveryprovider.mof" /f /q
del "D:\222\Windows\System32\puiapi.dll" /f /q
rem del "D:\222\Windows\System32\puiobj.dll" /f /q
del "D:\222\Windows\System32\qmgr.dll" /f /q
del "D:\222\Windows\System32\Query.dll" /f /q
del "D:\222\Windows\System32\query.exe" /f /q
del "D:\222\Windows\System32\rasauto.dll" /f /q
del "D:\222\Windows\System32\rasautou.exe" /f /q
del "D:\222\Windows\System32\raschap.dll" /f /q
del "D:\222\Windows\System32\raschapext.dll" /f /q
del "D:\222\Windows\System32\rasctrnm.h" /f /q
del "D:\222\Windows\System32\rasctrs.dll" /f /q
del "D:\222\Windows\System32\rasdiag.dll" /f /q
del "D:\222\Windows\System32\rasdial.exe" /f /q
del "D:\222\Windows\System32\rasdlg.dll" /f /q
del "D:\222\Windows\System32\rasgcw.dll" /f /q
del "D:\222\Windows\System32\rasmans.dll" /f /q
del "D:\222\Windows\System32\rasmbmgr.dll" /f /q
del "D:\222\Windows\System32\rasmontr.dll" /f /q
del "D:\222\Windows\System32\rasphone.exe" /f /q
del "D:\222\Windows\System32\rasppp.dll" /f /q
del "D:\222\Windows\System32\rastapi.dll" /f /q
del "D:\222\Windows\System32\rastls.dll" /f /q
del "D:\222\Windows\System32\rastlsext.dll" /f /q
del "D:\222\Windows\System32\rdrleakdiag.exe" /f /q
del "D:\222\Windows\System32\recdisc.exe" /f /q
del "D:\222\Windows\System32\recover.exe" /f /q
del "D:\222\Windows\System32\ReFsDedupSvc.exe" /f /q
del "D:\222\Windows\System32\RefsDedupSvc.Proxy.dll" /f /q
del "D:\222\Windows\System32\Register-CimProvider.exe" /f /q
del "D:\222\Windows\System32\ReInfo.dll" /f /q
del "D:\222\Windows\System32\remoteaudioendpoint.dll" /f /q
rem del "D:\222\Windows\System32\RemoveDeviceContextHandler.dll" /f /q
del "D:\222\Windows\System32\repair-bde.exe" /f /q
del "D:\222\Windows\System32\ResetEngine.dll" /f /q
del "D:\222\Windows\System32\ResetEngine.exe" /f /q
del "D:\222\Windows\System32\ResetPluginHost.exe" /f /q
del "D:\222\Windows\System32\ResetTelemetry.dll" /f /q
del "D:\222\Windows\System32\ROUTE.EXE" /f /q
del "D:\222\Windows\System32\rstrui.exe" /f /q
del "D:\222\Windows\System32\rtm.dll" /f /q
del "D:\222\Windows\System32\runexehelper.exe" /f /q
del "D:\222\Windows\System32\sacsess.exe" /f /q
del "D:\222\Windows\System32\sacsvr.dll" /f /q
del "D:\222\Windows\System32\scesrv.dll" /f /q
del "D:\222\Windows\System32\schedcli.dll" /f /q
del "D:\222\Windows\System32\scrobj.dll" /f /q
del "D:\222\Windows\System32\sdhcinst.dll" /f /q
del "D:\222\Windows\System32\SearchFilterHost.exe" /f /q
del "D:\222\Windows\System32\SearchIndexer.exe" /f /q
del "D:\222\Windows\System32\SearchProtocolHost.exe" /f /q
del "D:\222\Windows\System32\seclogon.dll" /f /q
del "D:\222\Windows\System32\Sens.dll" /f /q
rem del "D:\222\Windows\System32\serialui.dll" /f /q
del "D:\222\Windows\System32\setbcdlocale.dll" /f /q
del "D:\222\Windows\System32\setup.bmp" /f /q
del "D:\222\Windows\System32\setupetw.dll" /f /q
del "D:\222\Windows\System32\setx.exe" /f /q
del "D:\222\Windows\System32\sfc.exe" /f /q
del "D:\222\Windows\System32\shacct.dll" /f /q
del "D:\222\Windows\System32\ShellCommonCommonProxyStub.dll" /f /q
rem del "D:\222\Windows\System32\shimgvw.dll" /f /q
del "D:\222\Windows\System32\shrpubw.exe" /f /q
del "D:\222\Windows\System32\SMBHelperClass.dll" /f /q
del "D:\222\Windows\System32\smbwmiv2.dll" /f /q
del "D:\222\Windows\System32\smphost.dll" /f /q
del "D:\222\Windows\System32\softpub.dll" /f /q
del "D:\222\Windows\System32\sort.exe" /f /q
del "D:\222\Windows\System32\spaceutil.exe" /f /q
del "D:\222\Windows\System32\SpatialAudioLicenseSrv.exe" /f /q
rem del "D:\222\Windows\System32\spoolss.dll" /f /q
rem del "D:\222\Windows\System32\spoolsv.exe" /f /q
del "D:\222\Windows\System32\spp.dll" /f /q
del "D:\222\Windows\System32\sppnp.dll" /f /q
del "D:\222\Windows\System32\sprefs.dll" /f /q
del "D:\222\Windows\system32\sqmapi.dll" /f /q
del "D:\222\Windows\System32\srchadmin.dll" /f /q
del "D:\222\Windows\System32\srclient.dll" /f /q
del "D:\222\Windows\System32\srcore.dll" /f /q
del "D:\222\Windows\system32\srpapi.dll" /f /q
del "D:\222\Windows\System32\ssdpapi.dll" /f /q
del "D:\222\Windows\System32\ssdpsrv.dll" /f /q
del "D:\222\Windows\System32\SSShim.dll" /f /q
del "D:\222\Windows\System32\sstpsvc.dll" /f /q
del "D:\222\Windows\System32\startnet.cmd" /f /q
del "d:\222\Windows\System32\StartTileData.dll" /f /q
del "D:\222\Windows\System32\stdole32.tlb" /f /q
del "D:\222\Windows\System32\StorageUsage.dll" /f /q
del "D:\222\Windows\System32\storagewmi.dll" /f /q
del "D:\222\Windows\System32\storagewmi_passthru.dll" /f /q
del "D:\222\Windows\System32\streamci.dll" /f /q
del "D:\222\Windows\System32\subst.exe" /f /q
del "D:\222\Windows\System32\svsvc.dll" /f /q
del "D:\222\Windows\system32\sxsstore.dll" /f /q
del "D:\222\Windows\System32\sxstrace.exe" /f /q
del "D:\222\Windows\System32\SyncCenter.dll" /f /q
rem del "D:\222\Windows\System32\sysprint.sep" /f /q
rem del "D:\222\Windows\System32\sysprtj.sep" /f /q
del "D:\222\Windows\System32\sysreset.exe" /f /q
del "D:\222\Windows\System32\SystemPropertiesHardware.exe" /f /q
del "D:\222\Windows\System32\SystemPropertiesPerformance.exe" /f /q
del "D:\222\Windows\System32\tapi32.dll" /f /q
del "D:\222\Windows\System32\tapilua.dll" /f /q
del "D:\222\Windows\System32\tapiperf.dll" /f /q
del "D:\222\Windows\System32\tapisrv.dll" /f /q
del "D:\222\Windows\System32\tapiui.dll" /f /q
del "D:\222\Windows\System32\tbs.dll" /f /q
del "D:\222\Windows\System32\tcpmib.dll" /f /q
rem del "D:\222\Windows\System32\tcpmon.ini" /f /q
rem del "D:\222\Windows\System32\tcpmonui.dll" /f /q
del "D:\222\Windows\System32\TCPSVCS.EXE" /f /q
del "D:\222\Windows\System32\tdhres.dll" /f /q
del "D:\222\Windows\System32\TDLMigration.dll" /f /q
del "D:\222\Windows\System32\telephon.cpl" /f /q
rem del "D:\222\Windows\System32\threadpoolwinrt.dll" /f /q
del "D:\222\Windows\System32\tier2punctuations.dll" /f /q
del "D:\222\Windows\System32\TimeBrokerClient.dll" /f /q
del "D:\222\Windows\System32\TimeBrokerServer.dll" /f /q
del "D:\222\Windows\System32\tokenbinding.dll" /f /q
del "D:\222\Windows\System32\TpmCertResources.dll" /f /q
del "D:\222\Windows\System32\TpmCoreProvisioning.dll" /f /q
del "D:\222\Windows\System32\tquery.dll" /f /q
del "D:\222\Windows\System32\TRACERT.EXE" /f /q
del "D:\222\Windows\System32\tree.com" /f /q
del "D:\222\Windows\System32\TrustedSignalCredProv.dll" /f /q
del "D:\222\Windows\system32\tsdiscon.exe" /f /q
del "D:\222\Windows\System32\TSpkg.dll" /f /q
del "D:\222\Windows\System32\TSSessionUX.dll" /f /q
del "D:\222\Windows\System32\TtlsAuth.dll" /f /q
del "D:\222\Windows\System32\TtlsCfg.dll" /f /q
del "D:\222\Windows\System32\twext.dll" /f /q
del "D:\222\Windows\System32\tzres.dll" /f /q
del "D:\222\Windows\System32\ubpm.dll" /f /q
del "D:\222\Windows\System32\ucrtbase_clr0400.dll" /f /q
del "D:\222\Windows\System32\ucrtbase_enclave.dll" /f /q
del "D:\222\Windows\System32\ucsvc.exe" /f /q
del "D:\222\Windows\System32\uiomapapi.dll" /f /q
rem del "D:\222\Windows\System32\umb.dll" /f /q
del "D:\222\Windows\System32\UnionFSApi.dll" /f /q
del "D:\222\Windows\System32\unlodctr.exe" /f /q
del "D:\222\Windows\System32\UpdateAgent.dll" /f /q
del "D:\222\Windows\System32\UpdateCompression.dll" /f /q
del "D:\222\Windows\System32\updatepolicy.dll" /f /q
del "D:\222\Windows\System32\upnp.dll" /f /q
del "D:\222\Windows\System32\upnpcont.exe" /f /q
del "D:\222\Windows\System32\upnphost.dll" /f /q
del "D:\222\Windows\System32\uReFSv1.dll" /f /q
rem del "D:\222\Windows\System32\usbmon.dll" /f /q
del "D:\222\Windows\System32\utcutil.dll" /f /q
del "D:\222\Windows\System32\uudf.dll" /f /q
del "D:\222\Windows\System32\verifier.dll" /f /q
del "D:\222\Windows\System32\verifier.exe" /f /q
del "D:\222\Windows\System32\verifiergui.exe" /f /q
del "D:\222\Windows\System32\VhfUm.dll" /f /q
del "D:\222\Windows\System32\vmbuspipe.dll" /f /q
del "D:\222\Windows\System32\vpnike.dll" /f /q
del "D:\222\Windows\System32\vpnikeapi.dll" /f /q
del "D:\222\Windows\System32\w32topl.dll" /f /q
del "D:\222\Windows\System32\wbadmin.exe" /f /q
del "D:\222\Windows\system32\wbem\bcd.mof" /f /q
del "D:\222\Windows\system32\wbem\classlog.mof" /f /q
del "D:\222\Windows\system32\wbem\filetrace.mof" /f /q
del "D:\222\Windows\system32\wbem\hbaapi.mof" /f /q
del "D:\222\Windows\system32\wbem\IMAPIv2-Base.mof" /f /q
del "D:\222\Windows\system32\wbem\IMAPIv2-FileSystemSupport.mof" /f /q
del "D:\222\Windows\system32\wbem\IMAPIv2-LegacyShim.mof" /f /q
del "D:\222\Windows\system32\wbem\interop.mof" /f /q
del "D:\222\Windows\system32\wbem\iscsidsc.mof" /f /q
del "D:\222\Windows\system32\wbem\iscsihba.mof" /f /q
del "D:\222\Windows\system32\wbem\iscsiprf.mof" /f /q
del "D:\222\Windows\system32\wbem\iscsirem.mof" /f /q
del "D:\222\Windows\system32\wbem\iscsiwmiv2.mof" /f /q
del "D:\222\Windows\system32\wbem\iscsiwmiv2_uninstall.mof" /f /q
del "D:\222\Windows\system32\wbem\kerberos.mof" /f /q
del "D:\222\Windows\system32\wbem\KrnlProv.dll" /f /q
del "D:\222\Windows\system32\wbem\krnlprov.mof" /f /q
del "D:\222\Windows\system32\wbem\Microsoft-Windows-Remote-FileSystem.mof" /f /q
del "D:\222\Windows\system32\wbem\mispace.mof" /f /q
del "D:\222\Windows\system32\wbem\mispace_uninstall.mof" /f /q
del "D:\222\Windows\system32\wbem\mofinstall.dll" /f /q
del "D:\222\Windows\system32\wbem\mountmgr.mof" /f /q
del "D:\222\Windows\system32\wbem\msv1_0.mof" /f /q
del "D:\222\Windows\system32\wbem\NCProv.dll" /f /q
del "D:\222\Windows\system32\wbem\ncprov.mof" /f /q
del "D:\222\Windows\system32\wbem\ndistrace.mof" /f /q
del "D:\222\Windows\system32\wbem\nlsvc.mof" /f /q
del "D:\222\Windows\system32\wbem\ntfs.mof" /f /q
del "D:\222\Windows\system32\wbem\PolicMan.dll" /f /q
del "D:\222\Windows\system32\wbem\PolicMan.mof" /f /q
del "D:\222\Windows\system32\wbem\powermeterprovider.mof" /f /q
del "D:\222\Windows\system32\wbem\PowerPolicyProvider.mof" /f /q
del "D:\222\Windows\system32\wbem\profileassociationprovider.mof" /f /q
del "D:\222\Windows\system32\wbem\refs.mof" /f /q
del "D:\222\Windows\system32\wbem\refsv1.mof" /f /q
del "D:\222\Windows\system32\wbem\regevent.mof" /f /q
del "D:\222\Windows\system32\wbem\rsop.mof" /f /q
del "D:\222\Windows\system32\wbem\samsrv.mof" /f /q
del "D:\222\Windows\system32\wbem\schannel.mof" /f /q
del "D:\222\Windows\system32\wbem\scm.mof" /f /q
del "D:\222\Windows\system32\wbem\scrcons.exe" /f /q
del "D:\222\Windows\system32\wbem\scrcons.mof" /f /q
del "D:\222\Windows\system32\wbem\secrcw32.mof" /f /q
del "D:\222\Windows\system32\wbem\ServDeps.dll" /f /q
del "D:\222\Windows\system32\wbem\smbwmiv2.mof" /f /q
del "D:\222\Windows\system32\wbem\SMTPCons.dll" /f /q
del "D:\222\Windows\system32\wbem\smtpcons.mof" /f /q
del "D:\222\Windows\system32\wbem\sstpsvc.mof" /f /q
del "D:\222\Windows\system32\wbem\stdprov.dll" /f /q
del "D:\222\Windows\system32\wbem\storagewmi.mof" /f /q
del "D:\222\Windows\system32\wbem\storagewmi_passthru.mof" /f /q
del "D:\222\Windows\system32\wbem\storagewmi_passthru_uninstall.mof" /f /q
del "D:\222\Windows\system32\wbem\storagewmi_uninstall.mof" /f /q
del "D:\222\Windows\system32\wbem\subscrpt.mof" /f /q
del "D:\222\Windows\system32\wbem\system.mof" /f /q
del "D:\222\Windows\system32\wbem\tcpip.mof" /f /q
del "D:\222\Windows\system32\wbem\unsecapp.exe" /f /q
del "D:\222\Windows\system32\wbem\vds.mof" /f /q
del "D:\222\Windows\system32\wbem\vdswmi.dll" /f /q
del "D:\222\Windows\system32\wbem\wbemcons.dll" /f /q
del "D:\222\Windows\system32\wbem\WBEMCons.mof" /f /q
del "D:\222\Windows\system32\wbem\wbemtest.exe" /f /q
del "D:\222\Windows\system32\wbem\wcncsvc.mof" /f /q
del "D:\222\Windows\system32\wbem\Wdf01000.mof" /f /q
del "D:\222\Windows\system32\wbem\Wdf01000Uninstall.mof" /f /q
del "D:\222\Windows\system32\wbem\wdigest.mof" /f /q
del "D:\222\Windows\system32\wbem\wininit.mof" /f /q
del "D:\222\Windows\system32\wbem\winlogon.mof" /f /q
del "D:\222\Windows\system32\wbem\wmi.mof" /f /q
del "D:\222\Windows\system32\wbem\WMI_Tracing.mof" /f /q
del "D:\222\Windows\system32\wbem\WMIADAP.exe" /f /q
del "D:\222\Windows\system32\wbem\WmiApRes.dll" /f /q
del "D:\222\Windows\system32\wbem\WMICOOKR.dll" /f /q
del "D:\222\Windows\system32\wbem\WmiDcPrv.dll" /f /q
del "D:\222\Windows\system32\wbem\wmipcima.dll" /f /q
del "D:\222\Windows\system32\wbem\wmipcima.mof" /f /q
del "D:\222\Windows\system32\wbem\wmipdfs.dll" /f /q
del "D:\222\Windows\system32\wbem\wmipdfs.mof" /f /q
del "D:\222\Windows\system32\wbem\wmipdskq.dll" /f /q
del "D:\222\Windows\system32\wbem\wmipdskq.mof" /f /q
del "D:\222\Windows\system32\wbem\WMIPICMP.dll" /f /q
del "D:\222\Windows\system32\wbem\wmipicmp.mof" /f /q
del "D:\222\Windows\system32\wbem\WMIPSESS.dll" /f /q
del "D:\222\Windows\system32\wbem\wmipsess.mof" /f /q
rd "D:\222\Windows\system32\wbem\en-US" /s /q
del "D:\222\Windows\System32\wbengine.exe" /f /q
del "D:\222\Windows\System32\WcnApi.dll" /f /q
del "D:\222\Windows\System32\wcncsvc.dll" /f /q
del "D:\222\Windows\System32\WcnEapAuthProxy.dll" /f /q
del "D:\222\Windows\System32\WcnEapPeerProxy.dll" /f /q
del "D:\222\Windows\System32\WcnNetsh.dll" /f /q
del "D:\222\Windows\System32\wcnwiz.dll" /f /q
del "D:\222\Windows\System32\wdigest.dll" /f /q
del "D:\222\Windows\System32\wdscapture.exe" /f /q
del "D:\222\Windows\System32\wdscapture.inf" /f /q
del "D:\222\Windows\System32\wdsclient.exe" /f /q
del "D:\222\Windows\System32\WdsCommonLib.dll" /f /q
del "D:\222\Windows\System32\wdscsl.dll" /f /q
del "D:\222\Windows\System32\WdsDiag.dll" /f /q
del "D:\222\Windows\System32\WdsImage.dll" /f /q
del "D:\222\Windows\System32\wdsmcast.exe" /f /q
del "D:\222\Windows\System32\WdsServerCommonLib.dll" /f /q
del "D:\222\Windows\System32\wdstptc.dll" /f /q
del "D:\222\Windows\System32\webplatstorageserver.dll" /f /q
del "D:\222\Windows\System32\Websocket.dll" /f /q
del "D:\222\Windows\System32\werdiagcontroller.dll" /f /q
del "D:\222\Windows\System32\WerEnc.dll" /f /q
del "D:\222\Windows\System32\WerFault.exe" /f /q
del "D:\222\Windows\System32\WerFaultSecure.exe" /f /q
del "D:\222\Windows\System32\wermgr.exe" /f /q
del "D:\222\Windows\System32\werui.dll" /f /q
del "D:\222\Windows\System32\wevtutil.exe" /f /q
del "D:\222\Windows\System32\wfdprov.dll" /f /q
del "D:\222\Windows\System32\WfHC.dll" /f /q
del "D:\222\Windows\System32\WimBootCompress.ini" /f /q
del "D:\222\Windows\System32\win11pass.reg" /f /q
rem del "D:\222\Windows\System32\win32spl.dll" /f /q
del "D:\222\Windows\System32\WindowManagement.dll" /f /q
del "D:\222\Windows\System32\Windows.Devices.HumanInterfaceDevice.dll" /f /q
del "D:\222\Windows\System32\Windows.Devices.Midi.dll" /f /q
rem del "D:\222\Windows\System32\Windows.Devices.Printers.dll" /f /q
rem del "D:\222\Windows\System32\Windows.Devices.Printers.Extensions.dll" /f /q
rem del "D:\222\Windows\System32\Windows.Graphics.Printing.3D.dll" /f /q
rem del "D:\222\Windows\System32\Windows.Graphics.Printing.dll" /f /q
del "D:\222\Windows\System32\Windows.Internal.Shell.Broker.dll" /f /q
del "D:\222\Windows\System32\Windows.Internal.UI.Logon.ProxyStub.dll" /f /q
del "D:\222\Windows\system32\Windows.Media.dll" /f /q
del "D:\222\Windows\System32\Windows.Networking.Connectivity.dll" /f /q
del "D:\222\Windows\System32\Windows.StateRepositoryBroker.dll" /f /q
del "D:\222\Windows\System32\Windows.Storage.OneCore.dll" /f /q
rem del "D:\222\Windows\System32\Windows.System.Launcher.dll" /f /q
del "D:\222\Windows\System32\Windows.System.RemoteDesktop.dll" /f /q
del "d:\222\Windows\System32\Windows.UI.Cred.dll" /f /q
del "D:\222\Windows\System32\Windows.UI.CredDialogController.dll" /f /q
rem del "D:\222\Windows\System32\Windows.UI.Logon.dll" /f /q
rem del "D:\222\Windows\System32\Windows.UI.Xaml.Controls.dll" /f /q
rem del "d:\222\Windows\System32\Windows.UI.Xaml.dll" /f /q
rem del "D:\222\Windows\System32\Windows.UI.Xaml.Resources.19h1.dll" /f /q
rem del "D:\222\Windows\System32\Windows.UI.Xaml.Resources.21h1.dll" /f /q
rem del "D:\222\Windows\System32\Windows.UI.Xaml.Resources.Common.dll" /f /q
rem del "D:\222\Windows\System32\Windows.UI.Xaml.Resources.rs1.dll" /f /q
rem del "D:\222\Windows\System32\Windows.UI.Xaml.Resources.rs2.dll" /f /q
rem del "D:\222\Windows\System32\Windows.UI.Xaml.Resources.rs3.dll" /f /q
rem del "D:\222\Windows\System32\Windows.UI.Xaml.Resources.rs4.dll" /f /q
rem del "D:\222\Windows\System32\Windows.UI.Xaml.Resources.rs5.dll" /f /q
rem del "D:\222\Windows\System32\Windows.UI.Xaml.Resources.th.dll" /f /q
rem del "D:\222\Windows\System32\Windows.UI.Xaml.Resources.win81.dll" /f /q
rem del "D:\222\Windows\System32\Windows.UI.Xaml.Resources.win8rtm.dll" /f /q
rem del "D:\222\Windows\System32\Windows.UI.XamlHost.dll" /f /q
del "D:\222\Windows\system32\WindowsCodecsExt.dll" /f /q
del "D:\222\Windows\System32\winipsec.dll" /f /q
del "D:\222\Windows\System32\winload.efi" /f /q
del "D:\222\Windows\System32\winload.exe" /f /q
del "D:\222\Windows\System32\winlogonext.dll" /f /q
del "D:\222\Windows\System32\winpe.jpg" /f /q
del "D:\222\Windows\System32\winpeshl.exe" /f /q
del "D:\222\Windows\System32\winpeshl.ini" /f /q
del "D:\222\Windows\System32\winre.jpg" /f /q
del "D:\222\Windows\System32\winsku.dll" /f /q
del "D:\222\Windows\System32\wkspbrokerAx.dll" /f /q
del "D:\222\Windows\System32\wksprtPS.dll" /f /q
del "D:\222\Windows\System32\wlancfg.dll" /f /q
del "D:\222\Windows\System32\wlandlg.dll" /f /q
del "D:\222\Windows\System32\wlanext.exe" /f /q
del "D:\222\Windows\System32\WlanMediaManager.dll" /f /q
del "D:\222\Windows\System32\wlanpref.dll" /f /q
del "D:\222\Windows\System32\WlanRadioManager.dll" /f /q
rem del "D:\222\Windows\System32\wlidnsp.dll" /f /q
del "D:\222\Windows\System32\wlidprov.dll" /f /q
del "D:\222\Windows\System32\wmiprop.dll" /f /q
del "D:\222\Windows\System32\wmitomi.dll" /f /q
del "D:\222\Windows\System32\wosc.dll" /f /q
del "D:\222\Windows\System32\wpr.config.xml" /f /q
del "D:\222\Windows\System32\wpr.exe" /f /q
del "D:\222\Windows\System32\wpx.dll" /f /q
del "D:\222\Windows\System32\ws2help.dll" /f /q
del "D:\222\Windows\System32\WSDApi.dll" /f /q
del "D:\222\Windows\System32\WSDPrintProxy.DLL" /f /q
del "D:\222\Windows\System32\WSDScanProxy.dll" /f /q
del "D:\222\Windows\System32\wsepno.dll" /f /q
del "D:\222\Windows\System32\wship6.dll" /f /q
del "D:\222\Windows\System32\WSHTCPIP.DLL" /f /q
rem del "D:\222\Windows\System32\wsnmp32.dll" /f /q
del "D:\222\Windows\System32\wuapi.dll" /f /q
del "D:\222\Windows\System32\wuauclt.exe" /f /q
del "D:\222\Windows\System32\wuaueng.dll" /f /q
del "D:\222\Windows\System32\wups.dll" /f /q
del "D:\222\Windows\System32\wups2.dll" /f /q
del "D:\222\Windows\System32\wusys.dll" /f /q
del "D:\222\Windows\System32\WWanAPI.dll" /f /q
del "D:\222\Windows\System32\wwancfg.dll" /f /q
del "D:\222\Windows\System32\wwapi.dll" /f /q
del "D:\222\Windows\System32\XAudio2_8.dll" /f /q
del "D:\222\Windows\System32\XAudio2_9.dll" /f /q
rem del "D:\222\Windows\System32\XpsDocumentTargetPrint.dll" /f /q
rem del "D:\222\Windows\System32\XpsGdiConverter.dll" /f /q
rem del "D:\222\Windows\System32\XpsPrint.dll" /f /q
rem del "D:\222\Windows\System32\xpspushlayer.dll" /f /q
rem del "D:\222\Windows\System32\XpsRasterService.dll" /f /q
rem del "D:\222\Windows\System32\xpsservices.dll" /f /q
rem del "D:\222\Windows\System32\xwizard.exe" /f /q
del "D:\222\Windows\System32\xwizards.dll" /f /q
del "D:\222\Windows\System32\xwreg.dll" /f /q
del "D:\222\Windows\System32\xwtpdui.dll" /f /q
del "D:\222\Windows\System32\xwtpw32.dll" /f /q
del "D:\222\Windows\System32\zipfldr.dll" /f /q
del "d:\222\Windows\SysWOW64\aclui.dll" /f /q
del "d:\222\Windows\SysWOW64\adsldp.dll" /f /q
del "d:\222\Windows\SysWOW64\attrib.exe" /f /q
del "d:\222\Windows\SysWOW64\authz.dll" /f /q
del "d:\222\Windows\SysWOW64\browcli.dll" /f /q
del "d:\222\Windows\SysWOW64\clip.exe" /f /q
del "d:\222\Windows\SysWOW64\console.dll" /f /q
del "d:\222\Windows\SysWOW64\ConsoleLogon.dll" /f /q
del "d:\222\Windows\SysWOW64\CredentialUIBroker.exe" /f /q
del "d:\222\Windows\SysWOW64\CredProv2faHelper.dll" /f /q
del "d:\222\Windows\SysWOW64\CredProvDataModel.dll" /f /q
del "d:\222\Windows\SysWOW64\credprovhost.dll" /f /q
del "d:\222\Windows\SysWOW64\credprovs.dll" /f /q
del "d:\222\Windows\SysWOW64\credprovslegacy.dll" /f /q
del "d:\222\Windows\SysWOW64\crtdll.dll" /f /q
del "d:\222\Windows\SysWOW64\ctac.json" /f /q
del "d:\222\Windows\SysWOW64\D3D12.dll" /f /q
del "d:\222\Windows\SysWOW64\dbgeng.dll" /f /q
del "d:\222\Windows\SysWOW64\DbgModel.dll" /f /q
del "d:\222\Windows\SysWOW64\devicengccredprov.dll" /f /q
del "d:\222\Windows\SysWOW64\diagnosticdataquery.dll" /f /q
del "d:\222\Windows\SysWOW64\difxapi.dll" /f /q
del "d:\222\Windows\SysWOW64\dlnashext.dll" /f /q
del "d:\222\Windows\SysWOW64\driverquery.exe" /f /q
del "d:\222\Windows\SysWOW64\drvsetup.dll" /f /q
del "d:\222\Windows\SysWOW64\drvstore.dll" /f /q
del "d:\222\Windows\SysWOW64\dtdump.exe" /f /q
del "d:\222\Windows\SysWOW64\EhStorAPI.dll" /f /q
del "d:\222\Windows\SysWOW64\eventcls.dll" /f /q
del "d:\222\Windows\SysWOW64\expand.exe" /f /q
del "d:\222\Windows\SysWOW64\fcon.dll" /f /q
del "d:\222\Windows\SysWOW64\fdWCN.dll" /f /q
del "d:\222\Windows\SysWOW64\findstr.exe" /f /q
del "d:\222\Windows\SysWOW64\FirewallAPI.dll" /f /q
del "d:\222\Windows\SysWOW64\FlightSettings.dll" /f /q
del "d:\222\Windows\SysWOW64\fveapi.dll" /f /q
del "d:\222\Windows\SysWOW64\fveapibase.dll" /f /q
del "d:\222\Windows\SysWOW64\fvecerts.dll" /f /q
del "d:\222\Windows\SysWOW64\fwbase.dll" /f /q
del "d:\222\Windows\SysWOW64\fwpolicyiomgr.dll" /f /q
del "d:\222\Windows\SysWOW64\GdiPlus.dll" /f /q
del "d:\222\Windows\SysWOW64\httpapi.dll" /f /q
del "d:\222\Windows\SysWOW64\InfDefaultInstall.exe" /f /q
rem del "D:\222\Windows\SysWOW64\KBDUS.DLL" /f /q
del "d:\222\Windows\SysWOW64\KerbClientShared.dll" /f /q
del "d:\222\Windows\SysWOW64\KeyCredMgr.dll" /f /q
del "d:\222\Windows\SysWOW64\mibincodec.dll" /f /q
del "d:\222\Windows\SysWOW64\mimofcodec.dll" /f /q
del "d:\222\Windows\SysWOW64\mscories.dll" /f /q
del "d:\222\Windows\SysWOW64\msvcirt.dll" /f /q
del "d:\222\Windows\SysWOW64\msvcp120_clr0400.dll" /f /q
del "d:\222\Windows\SysWOW64\msvcp140_clr0400.dll" /f /q
del "d:\222\Windows\SysWOW64\msvcr100_clr0400.dll" /f /q
del "d:\222\Windows\SysWOW64\msvcr120_clr0400.dll" /f /q
del "d:\222\Windows\SysWOW64\msvcrt20.dll" /f /q
del "d:\222\Windows\SysWOW64\MuiUnattend.exe" /f /q
del "d:\222\Windows\SysWOW64\ncryptprov.dll" /f /q
del "d:\222\Windows\SysWOW64\net1.exe" /f /q
del "d:\222\Windows\SysWOW64\NetDriverInstall.dll" /f /q
del "d:\222\Windows\SysWOW64\NetSetupApi.dll" /f /q
del "d:\222\Windows\SysWOW64\NetSetupEngine.dll" /f /q
del "d:\222\Windows\SysWOW64\ngclocal.dll" /f /q
del "d:\222\Windows\SysWOW64\ntshrui.dll" /f /q
del "d:\222\Windows\SysWOW64\OneCoreUAPCommonProxyStub.dll" /f /q
del "d:\222\Windows\SysWOW64\OneSettingsClient.dll" /f /q
del "d:\222\Windows\SysWOW64\PkgMgr.exe" /f /q
del "d:\222\Windows\SysWOW64\policymanager.dll" /f /q
del "d:\222\Windows\SysWOW64\poqexec.exe" /f /q
rem del "d:\222\Windows\SysWOW64\qedit.dll" /f /q
del "d:\222\Windows\SysWOW64\rdrleakdiag.exe" /f /q
del "d:\222\Windows\SysWOW64\rmclient.dll" /f /q
del "d:\222\Windows\SysWOW64\ServicingCommon.dll" /f /q
del "d:\222\Windows\SysWOW64\SSShim.dll" /f /q
del "d:\222\Windows\SysWOW64\stdole32.tlb" /f /q
del "d:\222\Windows\SysWOW64\svchost.exe" /f /q
del "d:\222\Windows\SysWOW64\sxsstore.dll" /f /q
del "d:\222\Windows\SysWOW64\sxstrace.exe" /f /q
del "d:\222\Windows\SysWOW64\syssetup.dll" /f /q
del "d:\222\Windows\SysWOW64\TrustedSignalCredProv.dll" /f /q
del "d:\222\Windows\SysWOW64\tzres.dll" /f /q
del "d:\222\Windows\SysWOW64\utcapi.dll" /f /q
del "d:\222\Windows\SysWOW64\WcnApi.dll" /f /q
del "d:\222\Windows\SysWOW64\wcnwiz.dll" /f /q
del "d:\222\Windows\SysWOW64\wdscore.dll" /f /q
del "d:\222\Windows\SysWOW64\winbrand.dll" /f /q
del "d:\222\Windows\SysWOW64\Windows.Internal.UI.Logon.ProxyStub.dll" /f /q
del "d:\222\Windows\SysWOW64\Windows.UI.CredDialogController.dll" /f /q
del "d:\222\Windows\SysWOW64\wmi.dll" /f /q
rem del "d:\222\Windows\SysWOW64\iertutil.dll" /f /q
del "d:\222\Windows\SysWOW64\ieframe.dll" /f /q
rem del "D:\222\Windows\SysWOW64\zh-TW\iertutil.dll.mui" /f /q
rd "D:\222\Windows\SysWOW64\AdvancedInstallers" /s /q
rd "D:\222\Windows\SysWOW64\config" /s /q
rd "D:\222\Windows\SysWOW64\Dism" /s /q
rd "D:\222\Windows\SysWOW64\downlevel" /s /q
rd "D:\222\Windows\SysWOW64\DriverStore" /s /q
rd "D:\222\Windows\SysWOW64\en-US" /s /q
rd "D:\222\Windows\SysWOW64\LogFiles" /s /q
rd "D:\222\Windows\SysWOW64\migration" /s /q
rd "D:\222\Windows\SysWOW64\oobe" /s /q
rd "D:\222\Windows\SysWOW64\SMI" /s /q
rem del "d:\222\Windows\System32\AppXApplicabilityBlob.dll" /f /q
rem del "d:\222\Windows\System32\AppXDeploymentServer.dll" /f /q
rem del "d:\222\Windows\System32\AppxPackaging.dll" /f /q
del "d:\222\Windows\System32\bitsperf.dll" /f /q
del "d:\222\Windows\System32\BitsProxy.dll" /f /q
del "d:\222\Windows\System32\dafWCN.dll" /f /q
del "d:\222\Windows\System32\dafWfdProvider.dll" /f /q
del "d:\222\Windows\System32\delegatorprovider.dll" /f /q
del "d:\222\Windows\System32\doclient.dll" /f /q
del "d:\222\Windows\System32\domgmt.dll" /f /q
del "d:\222\Windows\System32\dosvc.dll" /f /q
del "d:\222\Windows\System32\dxva2.dll" /f /q
del "d:\222\Windows\System32\edgeIso.dll" /f /q
del "d:\222\Windows\System32\EdgeManager.dll" /f /q
del "d:\222\Windows\System32\FntCache.dll" /f /q
del "d:\222\Windows\System32\iemigplugin.dll" /f /q
del "d:\222\Windows\System32\IESettingSync.exe" /f /q
del "d:\222\Windows\System32\imgutil.dll" /f /q
del "d:\222\Windows\System32\IndexedDbLegacy.dll" /f /q
del "d:\222\Windows\System32\INETRES.dll" /f /q
del "d:\222\Windows\System32\Microsoft.Windows.Storage.Core.dll" /f /q
del "d:\222\Windows\System32\Microsoft.Windows.Storage.StorageBusCache.dll" /f /q
del "d:\222\Windows\System32\OLD697C.tmp" /f /q
del "d:\222\Windows\System32\OLD698D.tmp" /f /q
del "d:\222\Windows\System32\OLD699E.tmp" /f /q
del "d:\222\Windows\System32\ProductEnumerator.dll" /f /q
del "d:\222\Windows\System32\qmgr.dll" /f /q
del "d:\222\Windows\System32\UpdateAgent.dll" /f /q
del "d:\222\Windows\System32\updatepolicy.dll" /f /q
del "d:\222\Windows\System32\wuapi.dll" /f /q
del "d:\222\Windows\System32\wuauclt.exe" /f /q
del "d:\222\Windows\System32\wuaueng.dll" /f /q
del "d:\222\Windows\System32\wups.dll" /f /q
del "d:\222\Windows\System32\wups2.dll" /f /q
del "d:\222\Windows\System32\wusys.dll" /f /q
rem del "d:\222\Windows\System32\iertutil.dll" /f /q
del "d:\222\Windows\System32\ieproxy.dll" /f /q
del "d:\222\Windows\System32\IEAdvpack.dll" /f /q
del "d:\222\Windows\SystemResources\ieframe.dll.mun" /f /q
del "d:\222\Windows\SystemResources\ieapfltr.dll.mun" /f /q
del "D:\222\Windows\System32\zh-TW\ie4uinit.exe.mui" /f /q
del "D:\222\Windows\System32\zh-TW\IEAdvpack.dll.mui" /f /q
del "D:\222\Windows\System32\zh-TW\iedkcs32.dll.mui" /f /q
del "D:\222\Windows\System32\zh-TW\iepeers.dll.mui" /f /q
del "D:\222\Windows\System32\zh-TW\iernonce.dll.mui" /f /q
rem del "D:\222\Windows\System32\zh-TW\iertutil.dll.mui" /f /q
del "D:\222\Windows\System32\zh-TW\iesetup.dll.mui" /f /q
del "D:\222\Windows\System32\zh-TW\ieui.dll.mui" /f /q
rd  "D:\222\Windows\System32\Dism" /s /q
rd "D:\222\Program Files\Internet Explorer" /s /q
rd "D:\222\Program Files\StartAllBack" /q /s
rd "D:\222\Program Files\WinXShell" /q /s
rd "D:\222\ProgramData\Microsoft\Crypto" /s /q
rd "D:\222\ProgramData\Microsoft\User Account Pictures" /s /q
rd "D:\222\ProgramData\Microsoft\Windows\DeviceMetadataStore" /s /q
rd "D:\222\ProgramData\Microsoft\Windows\GameExplorer" /s /q
rd "D:\222\ProgramData\Microsoft\Windows\OneSettings" /s /q
rd "D:\222\ProgramData\Microsoft\Windows\Ringtones" /s /q
rd "D:\222\ProgramData\Microsoft\Windows\Start Menu" /s /q
rd "D:\222\ProgramData\Microsoft\Windows\Start Menu\Programs\Accessories" /s /q
rd "D:\222\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools" /s /q
rd "D:\222\ProgramData\Microsoft\Windows\WER /s /q
rd "D:\222\ProgramData\Microsoft\Windows\wfp" /s /q
rd "D:\222\Users\Default\AppData\Roaming\Microsoft\Windows\Network Shortcuts" /s /q
rd "D:\222\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Accessibility" /s /q
rd "D:\222\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Accessories" /s /q
rd "D:\222\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\System Tools" /s /q
rd "D:\222\Windows\System32\AdvancedInstallers" /s /q
rd "D:\222\Windows\System32\CatRoot\{127D0A1D-4EF2-11D1-8608-00C04FC295EE}" /s /q
rd "D:\222\Windows\SystemResources\Windows.UI.ShellCommon\DevicesFlowUI" /s /q
rd "D:\222\Windows\SystemResources\Windows.UI.ShellCommon\Images" /s /q
rd "D:\222\Windows\SystemResources\Windows.UI.ShellCommon\NetworkUX" /s /q
rd "D:\222\Windows\SystemResources\Windows.UI.ShellCommon\QuickActions" /s /q
rd "D:\222\Windows\tracing" /s /q
rd "D:\222\Windows\Vss" /s /q
rd "D:\222\Windows\WaaS" /s /q
rd "d:\222\Windows\System32\WCN" /s /q
md "D:\222\Program Files\StartAllBack"
md "D:\222\Program Files\WinXShell"
rem rd "D:\222\Windows\SystemTemp" /s /q 不能刪,執行程式時會用到
pause

精減檔案批次檔del_other.cmd,這個批次檔是沿用win11 24h2 pe 26100 繁體中文聲音網路版,製作時用的精減檔案批次檔,實際上,有些檔案win11 21h2是沒有的。
del_other.cmd檔內容:
del D:\222\Windows\SystemResources\AuthFWGP.dll.mun /f /q
del D:\222\Windows\SystemResources\authui.dll.mun /f /q
del D:\222\Windows\SystemResources\connect.dll.mun /f /q
del D:\222\Windows\SystemResources\comres.dll.mun /f /q
del D:\222\Windows\SystemResources\FirewallControlPanel.dll.mun /f /q
del D:\222\Windows\SystemResources\icsigd.dll.mun /f /q
del D:\222\Windows\SystemResources\keymgr.dll.mun /f /q
del D:\222\Windows\SystemResources\mshtml.dll.mun /f /q
del D:\222\Windows\SystemResources\printui.dll.mun /f /q
del D:\222\Windows\SystemResources\raschapext.dll.mun /f /q
del D:\222\Windows\SystemResources\rasdlg.dll.mun /f /q
del D:\222\Windows\SystemResources\rasgcw.dll.mun /f /q
del D:\222\Windows\SystemResources\rastls.dll.mun /f /q
del D:\222\Windows\SystemResources\rastlsext.dll.mun /f /q
del D:\222\Windows\SystemResources\SearchIndexer.exe.mun /f /q
del D:\222\Windows\SystemResources\shrpubw.exe.mun /f /q
del D:\222\Windows\SystemResources\srchadmin.dll.mun /f /q
del D:\222\Windows\SystemResources\SyncCenter.dll.mun /f /q
del D:\222\Windows\SystemResources\tapiui.dll.mun /f /q
del D:\222\Windows\SystemResources\tquery.dll.mun /f /q
del D:\222\Windows\SystemResources\wcnwiz.dll.mun /f /q
del D:\222\Windows\SystemResources\wininet.dll.mun /f /q
del D:\222\Windows\SystemResources\zipfldr.dll.mun /f /q
del D:\222\Windows\system32\mshtml.dll /f /q
del D:\222\Windows\system32\AppXApplicabilityBlob.dll /f /q
del D:\222\Windows\system32\AppXDeploymentClient.dll /f /q
del D:\222\Windows\system32\AppXDeploymentServer.dll /f /q
del D:\222\Windows\system32\AppxPackaging.dll /f /q
del D:\222\Windows\system32\ipconfig.exe /f /q
del D:\222\Windows\system32\*.tmp /f /q
del D:\222\Windows\SysWOW64\mshtml.dll /f /q
pause

del_system32_2.cmd  再大精簡system32資料夾及其它可刪資料夾、檔案。
原本製作完成win11 21h2 pe 288MB,也測試應用程式可以正常執行。
為了再縮小檔案,先用WinMergePortable篩選可精簡檔案,再用二分法,測試可精簡檔案,本以為要折騰非常多次,沒想到,進程順利,很快完成測試,彙整可精簡批次檔del_system32_2.cmd。
del D:\222\Windows\system32\advpack.dll /f /q 
del D:\222\Windows\system32\apphelp.dll /f /q
del D:\222\Windows\system32\atlthunk.dll /f /q
del D:\222\Windows\system32\atmlib.dll /f /q
del D:\222\Windows\system32\avicap32.dll /f /q
del D:\222\Windows\system32\avifil32.dll /f /q
del D:\222\Windows\system32\avrt.dll /f /q
del D:\222\Windows\system32\BFE.DLL /f /q
del D:\222\Windows\system32\browcli.dll /f /q
del D:\222\Windows\system32\browseui.dll /f /q
del D:\222\Windows\system32\capisp.dll /f /q
del D:\222\Windows\system32\Clipc.dll /f /q
del D:\222\Windows\system32\cnvfat.dll /f /q
del D:\222\Windows\system32\CompMgmtLauncher.exe /f /q
del D:\222\Windows\system32\CompPkgSup.dll /f /q
del D:\222\Windows\system32\comres.dll /f /q
del D:\222\Windows\system32\convert.exe /f /q
del D:\222\Windows\system32\credssp.dll /f /q
del D:\222\Windows\system32\cryptcatsvc.dll /f /q
del D:\222\Windows\system32\cryptsvc.dll /f /q
del D:\222\Windows\system32\cryptui.dll /f /q
del D:\222\Windows\system32\cryptxml.dll /f /q
del D:\222\Windows\system32\cscapi.dll /f /q
del D:\222\Windows\system32\davhlpr.dll /f /q
del D:\222\Windows\system32\dciman32.dll /f /q
del D:\222\Windows\system32\dcntel.dll /f /q
del D:\222\Windows\system32\desk.cpl /f /q
del D:\222\Windows\system32\devenum.dll /f /q
del D:\222\Windows\system32\dfscli.dll /f /q
del D:\222\Windows\system32\difxapi.dll /f /q
del D:\222\Windows\system32\dispex.dll /f /q
del D:\222\Windows\system32\dmintf.dll /f /q
del D:\222\Windows\system32\dnsrslvr.dll /f /q
del D:\222\Windows\system32\dssenh.dll /f /q
del D:\222\Windows\system32\dwmghost.dll /f /q
del D:\222\Windows\system32\edputil.dll /f /q
del D:\222\Windows\system32\efslsaext.dll /f /q
del D:\222\Windows\system32\efsutil.dll /f /q
del D:\222\Windows\system32\EhStorAPI.dll /f /q
del D:\222\Windows\system32\esent.dll /f /q
del D:\222\Windows\system32\fbwflib.dll /f /q
del D:\222\Windows\system32\fc.exe /f /q
del D:\222\Windows\system32\fltMC.exe /f /q
del D:\222\Windows\system32\fsmgmt.msc /f /q
del D:\222\Windows\system32\fsutil.exe /f /q
del D:\222\Windows\system32\fwpolicyiomgr.dll /f /q
del D:\222\Windows\system32\FWPUCLNT.DLL /f /q
del D:\222\Windows\system32\FwRemoteSvr.dll /f /q
del D:\222\Windows\system32\gmsaclient.dll /f /q
del D:\222\Windows\system32\gpapi.dll /f /q
del D:\222\Windows\system32\gpsvc.dll /f /q
del D:\222\Windows\system32\icbexclusion.inf /f /q
rem del D:\222\Windows\system32\icu.dll /f /q 不能刪
del D:\222\Windows\system32\ifmon.dll /f /q
del D:\222\Windows\system32\IKEEXT.DLL /f /q
del D:\222\Windows\system32\imaadp32.acm /f /q
del D:\222\Windows\system32\imapi2.dll /f /q
del D:\222\Windows\system32\inetmib1.dll /f /q
del D:\222\Windows\system32\input.dll /f /q
del D:\222\Windows\system32\iscsicli.exe /f /q
del D:\222\Windows\system32\iscsidsc.dll /f /q
del D:\222\Windows\system32\iscsied.dll /f /q
del D:\222\Windows\system32\iscsiexe.dll /f /q
del D:\222\Windows\system32\iscsilog.dll /f /q
del D:\222\Windows\system32\iscsium.dll /f /q
del D:\222\Windows\system32\iscsiwmi.dll /f /q
del D:\222\Windows\system32\iscsiwmiv2.dll /f /q
del D:\222\Windows\system32\jscript9.dll /f /q
del D:\222\Windows\system32\kdstub.dll /f /q
del D:\222\Windows\system32\kdusb.dll /f /q
del D:\222\Windows\system32\KerbClientShared.dll /f /q
del D:\222\Windows\system32\kerberos.dll /f /q
del D:\222\Windows\system32\keyiso.dll /f /q
del D:\222\Windows\system32\ksuser.dll /f /q
del D:\222\Windows\system32\lmhsvc.dll /f /q
del D:\222\Windows\system32\loadperf.dll /f /q
del D:\222\Windows\system32\lz32.dll /f /q
del D:\222\Windows\system32\main.cpl /f /q
del D:\222\Windows\system32\mapi32.dll /f /q
rem del D:\222\Windows\system32\mapistub.dll /f /q 不能刪會無法搜尋
del D:\222\Windows\system32\mcupdate_AuthenticAMD.dll /f /q
del D:\222\Windows\system32\mcupdate_GenuineIntel.dll /f /q
del D:\222\Windows\system32\mf3216.dll /f /q
del D:\222\Windows\system32\mfc42.dll /f /q
del D:\222\Windows\system32\mfperfhelper.dll /f /q
del D:\222\Windows\system32\mi.dll /f /q
del D:\222\Windows\system32\mighost.exe /f /q
del D:\222\Windows\system32\miutils.dll /f /q
del D:\222\Windows\system32\MMDevAPI.dll /f /q
del D:\222\Windows\system32\mobilenetworking.dll /f /q
del D:\222\Windows\system32\mprapi.dll /f /q
del D:\222\Windows\system32\mprext.dll /f /q
del D:\222\Windows\system32\MPSSVC.dll /f /q
del D:\222\Windows\system32\msadp32.acm /f /q
del D:\222\Windows\system32\msdelta.dll /f /q
del D:\222\Windows\system32\msdmo.dll /f /q
del D:\222\Windows\system32\msg711.acm /f /q
del D:\222\Windows\system32\msgsm32.acm /f /q
del D:\222\Windows\system32\msiltcfg.dll /f /q
del D:\222\Windows\system32\mskeyprotect.dll /f /q  不能刪會無法搜尋
rem del D:\222\Windows\system32\mssvp.dll /f /q
del D:\222\Windows\system32\msvcp60.dll /f /q
rem del D:\222\Windows\system32\MSWB70404.dll /f /q 不能刪會無法搜尋
del D:\222\Windows\system32\mswsock.dll /f /q
del D:\222\Windows\system32\msxml3.dll /f /q
del D:\222\Windows\system32\MXEAgent.dll /f /q
del D:\222\Windows\system32\ncpa.cpl /f /q
del D:\222\Windows\system32\ncryptprov.dll /f /q
del D:\222\Windows\system32\ncryptsslp.dll /f /q
del D:\222\Windows\system32\ncsi.dll /f /q
del D:\222\Windows\system32\ndadmin.exe /f /q
del D:\222\Windows\system32\netcfgx.dll /f /q
del D:\222\Windows\system32\netmsg.dll /f /q
del D:\222\Windows\system32\netplwiz.dll /f /q
del D:\222\Windows\system32\netprofmsvc.dll /f /q
del D:\222\Windows\system32\netprovfw.dll /f /q
del D:\222\Windows\system32\networkexplorer.dll /f /q
del D:\222\Windows\system32\newdev.exe /f /q
rem del D:\222\Windows\system32\NL7Data0404.dll /f /q  不能刪會無法搜尋
rem del D:\222\Windows\system32\NL7Lexicons0404.dll /f /q  不能刪會無法搜尋
del D:\222\Windows\system32\nlaapi.dll /f /q
del D:\222\Windows\system32\nlmproxy.dll /f /q
del D:\222\Windows\system32\nlmsprep.dll /f /q
del D:\222\Windows\system32\NOISE.DAT /f /q
del D:\222\Windows\system32\normidna.nls /f /q
del D:\222\Windows\system32\nrpsrv.dll /f /q
del D:\222\Windows\system32\nsisvc.dll /f /q
del D:\222\Windows\system32\ntlanman.dll /f /q
del D:\222\Windows\system32\objsel.dll /f /q
del D:\222\Windows\system32\odbc32.dll /f /q
del D:\222\Windows\system32\offline.xml /f /q
del D:\222\Windows\system32\OnDemandConnRouteHelper.dll /f /q
del D:\222\Windows\system32\onex.dll /f /q
del D:\222\Windows\system32\OpenWith.exe /f /q
del D:\222\Windows\system32\oscomps.woa.xml /f /q
del D:\222\Windows\system32\oscomps.xml /f /q
del D:\222\Windows\system32\osfilter.inf /f /q
del D:\222\Windows\system32\perfdisk.dll /f /q
del D:\222\Windows\system32\pnpclean.dll /f /q
del D:\222\Windows\system32\pnppropmig.dll /f /q
del D:\222\Windows\system32\pnputil.exe /f /q
del D:\222\Windows\system32\powercfg.cpl /f /q
del D:\222\Windows\system32\powercfg.exe /f /q
del D:\222\Windows\system32\powercpl.dll /f /q
del D:\222\Windows\system32\prxyqry.dll /f /q
del D:\222\Windows\system32\rasman.dll /f /q
del D:\222\Windows\system32\refsutil.exe /f /q
del D:\222\Windows\system32\regapi.dll /f /q
del D:\222\Windows\system32\regedt32.exe /f /q
del D:\222\Windows\system32\replace.exe /f /q
del D:\222\Windows\system32\resutils.dll /f /q
del D:\222\Windows\system32\riched32.dll /f /q
del D:\222\Windows\system32\rmclient.dll /f /q
del D:\222\Windows\system32\RpcRtRemote.dll /f /q
del D:\222\Windows\system32\rshx32.dll /f /q
del D:\222\Windows\system32\RTWorkQ.dll /f /q
del D:\222\Windows\system32\scecli.dll /f /q
del D:\222\Windows\system32\schannel.dll /f /q
del D:\222\Windows\system32\security.dll /f /q
del D:\222\Windows\system32\SensApi.dll /f /q
del D:\222\Windows\system32\services.msc /f /q
del D:\222\Windows\system32\sfc_os.dll /f /q
del D:\222\Windows\system32\shpafact.dll /f /q
del D:\222\Windows\system32\shwebsvc.dll /f /q
del D:\222\Windows\system32\snmpapi.dll /f /q
del D:\222\Windows\system32\sstpcfg.dll /f /q
del D:\222\Windows\system32\sti.dll /f /q
del D:\222\Windows\system32\sxproxy.dll /f /q
del D:\222\Windows\system32\syssetup.dll /f /q
del D:\222\Windows\system32\SystemPropertiesRemote.exe /f /q
del D:\222\Windows\system32\taskkill.exe /f /q
del D:\222\Windows\system32\tcpipcfg.dll /f /q
del D:\222\Windows\system32\twinui.appcore.dll /f /q
del D:\222\Windows\system32\twinui.dll /f /q
del D:\222\Windows\system32\UIRibbon.dll /f /q
del D:\222\Windows\system32\UIRibbonRes.dll /f /q
del D:\222\Windows\system32\unattend.xml /f /q
del D:\222\Windows\system32\userinit.exe /f /q
del D:\222\Windows\system32\userinitext.dll /f /q
del D:\222\Windows\system32\usermgr.dll /f /q
del D:\222\Windows\system32\usermgrcli.dll /f /q
del D:\222\Windows\system32\UserMgrProxy.dll /f /q
del D:\222\Windows\system32\utildll.dll /f /q
del D:\222\Windows\system32\wdi.dll /f /q
del D:\222\Windows\system32\wdmaud.drv /f /q
del D:\222\Windows\system32\wer.dll /f /q
del D:\222\Windows\system32\weretw.dll /f /q
del D:\222\Windows\system32\wersvc.dll /f /q
del D:\222\Windows\system32\wevtsvc.dll /f /q
del D:\222\Windows\system32\wfapigp.dll /f /q
del D:\222\Windows\system32\winbio.dll /f /q
del D:\222\Windows\system32\wincredui.dll /f /q
del D:\222\Windows\system32\Windows.Gaming.Input.dll /f /q
del D:\222\Windows\system32\Windows.Media.Devices.dll /f /q
del D:\222\Windows\system32\Windows.Web.dll /f /q
del D:\222\Windows\system32\windowsperformancerecordercontrol.dll /f /q
del D:\222\Windows\system32\winhttpcom.dll /f /q
del D:\222\Windows\system32\winmmbase.dll /f /q
del D:\222\Windows\system32\WinSCard.dll /f /q
del D:\222\Windows\system32\winsockhc.dll /f /q
del D:\222\Windows\system32\winsqlite3.dll /f /q
del D:\222\Windows\system32\wkssvc.dll /f /q
del D:\222\Windows\system32\WMALFXGFXDSP.dll /f /q
del D:\222\Windows\system32\wmi.dll /f /q
del D:\222\Windows\system32\wmidcom.dll /f /q
del D:\222\Windows\system32\WmiMgmt.msc /f /q
del D:\222\Windows\system32\wmsgapi.dll /f /q
del D:\222\Windows\system32\WorkFoldersShell.dll /f /q
del D:\222\Windows\system32\wscript.exe /f /q
del D:\222\Windows\system32\wshcon.dll /f /q
del D:\222\Windows\system32\wshelper.dll /f /q
del D:\222\Windows\system32\wshext.dll /f /q
del D:\222\Windows\system32\wshhyperv.dll /f /q
rd D:\222\Windows\system32\en-US  /s /q
rd D:\222\Windows\system32\spp  /s /q
rd D:\222\Windows\system32\wbem  /s /q
rd D:\222\Windows\system32\winevt  /s /q
rd "D:\222\Windows\Microsoft.NET"  /s /q
rd "D:\222\Windows\L2Schemas"  /s /q
rd "D:\222\Windows\INF\en-US"  /s /q
rd "D:\222\Windows\INF\LSM"  /s /q
rd "D:\222\Windows\INF\RemoteAccess"  /s /q
rd "D:\222\Windows\SystemResources\Windows.UI.ShellCommon\ClockFlyoutExperience"  /s /q
rd "D:\222\Windows\SystemResources\Windows.UI.ShellCommon\SharePickerUI"  /s /q
del "D:\222\Windows\SystemResources\Windows.UI.ShellCommon\StartUI\ssets\*.png"   /f /q
pause

del_system32_3.cmd 又精減一些system32資料夾檔案。
del D:\222\Windows\system32\AppxPackaging.dll /f /q 
del D:\222\Windows\system32\C_20127.NLS /f /q 
del D:\222\Windows\system32\d3d10_1.dll /f /q 
del D:\222\Windows\system32\d3d10_1core.dll /f /q 
del D:\222\Windows\system32\FirewallAPI.dll /f /q 
del D:\222\Windows\system32\hhctrl.ocx /f /q 
del D:\222\Windows\system32\hidserv.dll /f /q 
del D:\222\Windows\system32\hspapi.dll /f /q 
del D:\222\Windows\system32\hspfw.dll /f /q 
del D:\222\Windows\system32\hwcompat.dll /f /q 
del D:\222\Windows\system32\hwcompat.txt /f /q 
del D:\222\Windows\system32\hwexclude.txt /f /q 
del D:\222\Windows\system32\makecab.exe /f /q 
del D:\222\Windows\system32\mfreadwrite.dll /f /q 
pause

windows\system32\wincorlib.dll 不要精簡,刪了會造成滑鼠在工作列上 開始 按右鍵的選單,一部分英文顯示。

4個精簡批次檔,也可以整合成一個精簡批次檔,分四個呈現,純屬紀錄逐步精簡過程。

精簡Windows\WinSxs資料夾,用WinMerge比對網友22000.3260 pe   WinSxs資料夾,點 比對結果 ,點選win11 21h2 pe 22000.3260 繁體中文無聲音無網路維修版僅有的資料夾,約可刪除10個資料夾,有zh-TW的資料夾不刪。約可精簡21.7MB。
先建立一個dlete_windows\winsxs資料夾,將winsxs要刪除的暫時移動至這個資料夾,如發生刪除後影響pe開機或應用程式執行,可從已刪除的資料夾中,找出不可刪的,予以恢復。
先建立一個dlete_windows\systemresource資料夾,將windows\systemresource資料夾刪除的檔案暫時移動至這個資料夾,如發生刪除後影響pe開機或應用程式執行,可從已刪除的資料夾中,找出不可刪的檔案,予以恢復。
按 瀏覽 切換至兩個pe要比對的winsxs資料夾。
d:\222\windows\winsxs   是繁體中文無聲音無網路維修版winsxs資料夾,顯示在比對畫面左邊。
d:\kuer22000_3260\boot\windows\winsxs 是網友22000.3260pe  windows\WinSxs資料夾,顯示在比對畫面右邊。
->compare

->按 比對結果

下圖左邊是d:\222\windows\winsxs   繁體中文無聲音無網路維修版winsxs資料夾,點選僅左邊,有...zh-tw...的的不點選,在已點選的上面按滑鼠右鍵->移動->左邊到...

將已選取的 移動 至dlete_windows\winsxs資料夾

->是

winsxs資料夾精簡完成
比對精簡Windows\SystemResources資料夾
將檔名相同,檔案大小不一樣,右邊kuer pe的檔案(有精簡過,DDORes.dll.mun精簡最多),複至到左邊。

-》是

將僅左邊的檔案,移動 到臨時資料夾dlete_windows\SystemResources

例如,移動到dlete_windows\systemresource資料夾,製作好pe,開機測試,有問題時,可以回補不能刪除的檔案。

->是

windows\systemresources資料夾精簡完成。
Windows\SystemResources\Windows.UI.ShellCommon資料夾可刪除的,執行del_system32_2.cmd時已刪除。

比對windows\syswow64資料夾,刪除僅左邊資料夾,zh-TW不刪

移動->左邊到

->dlete_windows\SysWOW64
->確定

->是

比對windows\syswow64資料夾,刪除僅左邊檔案
KBDUS.DLL檔不刪

移動->左邊到

->dlete_windows\SysWOW64
->確定

->是

StartAllBack及WinXShell精簡
StartAllBack  可適度精簡,下圖左邊是精簡過
StartAllBackCfg.exe 3426KB,用網友22000.3260pe  Program Files\StartAllBack\StartAllBackCfg.exe檔82kb替換精簡。



StartAllBack  可適度精簡,下圖左邊是精簡過 ribbon資料夾




WinXShell可適度精簡,下圖左邊是精簡過

WinXShell可適度精簡,下圖左邊是精簡過wxsui資料夾

建立pe虛擬磁碟機Y磁碟機,用以掛載工具程式wim檔。如不想建立pe虛擬磁碟機Y,這個項目可略過。
用自己製作的win11 21h2 pe 22000.3260 pe開機,匯入建立pe虛擬磁碟機註冊檔,將 Windows\System32\config\system複製出來,存入boot.wim,取代原有Windows\System32\config\system檔。
win11 21h2 pe 220003260 pe 開機。
開始->執行

regedit->確定

點選 HKEY_LOCAL_MACHINE

檔案->載入登錄區

選擇 x:\windows\system32\config\system->開啟

機碼名稱輸入 8PE_SYS->確定

滑鼠在primo_ramdisk.reg 快點二下。


->是,->確定

點選 8PE_SYS

->檔案->解除載入登錄區

->是
將x\windows\system32\config\system複製出來。存入boot.wim windows\system32\config,取代原有system 。

PEMaterial資料夾的PE 開機批次檔,建議刪除,改用網友22000.3260pe的Windows\System32\disposition。
(win1121h2downsize.cmd 會刪除PEMaterial資料夾、setup.exe)。

預先準備的精簡檔、修正檔、批次檔、reg檔、補檔。以供複製到製作的win11 21h2 pe。
建立win11_2200_3260_tw資料夾,並在其下,建立與pe對應資料夾。
Program Files
Program Files\SOFT
Program Files\SOFT\FreeVK
Program Files\StartAllBack
Program Files\WinXShell
Users
Users\Public\Desktop
Users\Default\AppData
Users\Default\AppData\Local
Users\Default\AppData\Local\Microsoft\Windows\WinX
Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Administrative Tools
Windows
Windows\Fonts
Windows\System32
Windows\System32\config
Windows\System32\disposition
Windows\System32\disposition\Post
Windows\System32\drivers
Windows\System32\orderdrv
Windows\SystemResources
Windows\SystemResources\Windows.UI.ShellCommon
Windows\SysWOW64
Windows\Web\Wallpaper\Windows
dlete_windows
dlete_windows\INF
dlete_windows\L2Schemas
dlete_windows\Microsoft.NET
dlete_windows\system32
dlete_windows\SystemResources
dlete_windows\SysWOW64
dlete_windows\winsxs

dlete_windows資料夾,存放精簡刪除的資料夾與檔案,以供pe開機後有狀況時,回存不能刪除的檔案與資料夾。
CAT工具x64.exe:CAT簽名批量檢查工具,精減*.cat檔
Program Files、Users、Windows的精簡檔、修正檔、批次檔、reg檔、補檔。以供複製到製作的win11 21h2 pe。
win1121h2downsize.cmd、del_system32_3.cmd、del_system32_2.cmd、del_other.cmd 4個精簡批次檔。
dlete_windows資料夾,存放精簡刪除的資料夾與檔案,以供pe開機後有狀況時,回存不能刪除的檔案與資料夾。

Program Files
Program Files\SOFT\FreeVK  螢幕鍵盤,從網友kuer pe複製。
Program Files\StartAllBack  本文前面已說明,精簡過的StartAllBack。
Program Files\WinXShell   本文前面已說明,精簡過的WinXShell 

Users資料夾

Users\Public\Desktop
關機 桌面捷徑。有需要在桌面建立的捷徑,放這裡。



Users\Default\AppData\Local
llftool.4.50.agreement:磁碟低階格式化程式開啟,免點agreement的設定檔。




Users\Default\AppData\Local\Microsoft\Windows\WinX
三個group捷徑,可從網友22000.3260pe擷取WinX資料夾。



Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
螢幕鍵盤捷徑及Windows 工具。




Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Administrative Tools
只保留有用且可以執行的捷徑。或新增需要的捷徑。


windows 資料夾
windows\fonts資料夾,存放已精簡過的mingliu.ttc。可從usbox  win11 pe 繁體中文擷取。
windows\system32 資料夾
擷取網友22000.3260pe內的 \Windows\System32\ExplorerFrame.dll \Windows\System32\shell32.dll,解決工作列無法釘選到問題。
觸控螢幕電腦,通過摸觸控螢幕開始選單關機無效或顯示錯誤。擷取網友22000.3260pe,boot.wim內的windows\system32\SlideToShutDown.exe檔
windows\system32\config ,存放已導入可建立虛擬光碟註冊機碼的system檔。

windows\system32\disposition資料夾。修改網友22000.3260pe內的disposition資料夾,改為合用於自己製作win 11 21h2 pe。
windows\system32\drivers 存放建立虛擬磁碟機Y的檔案fancyrd.sys、rxbsknl.sys
windows\system32\orderdrv  整理磁碟機代號。
calc-x64.exe:可以在win11 21h2 pe 正常執行的計算機程式。
icmp.dll:有應用程式執行時缺這個檔。從windows 11 22000.3260 繁體中文install.wim擷取。

md1.reg:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Msxml2.DOMDocument.3.0]
@="XML DOM Document 3.0"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Msxml2.DOMDocument.3.0\CLSID]
@="{F5078F32-C551-11D3-89B9-0000F81FE221}"
[-HKEY_LOCAL_MACHINE\PE_DEF\Control Panel\Cursors] 

PE_INI.BAT:
@echo off
set DIcon=%SystemRoot%\System32\shell32.dll,-151
set Nopad=%SystemRoot%\System32\NOTEPAD.EXE
set Pecmd=%SystemRoot%\system32\PECMD.EXE
reg add "HKEY_CLASSES_ROOT\.ini" /ve /t REG_SZ /d "PECMD" /f
reg add "HKEY_CLASSES_ROOT\PECMD" /ve /t REG_SZ /d "ini配置文件" /f
reg add "HKEY_CLASSES_ROOT\PECMD\DefaultIcon" /ve /t REG_EXPAND_SZ /d "%DIcon%" /f
reg add "HKEY_CLASSES_ROOT\PECMD\shell\open\command" /ve /t REG_EXPAND_SZ /d "%Nopad% %%1" /f
reg add "HKEY_CLASSES_ROOT\PECMD\shell\PECMD Load\command" /ve /t REG_EXPAND_SZ /d "%Pecmd% Load %%1" /f
exit

Pecmd.ini檔內的指令,用以下三行取代。刪PEMaterial資料夾,改用網友22000.3260pe內的disposition資料夾,並修改為合用於自己製作win 11 21h2 pe。
Pecmd.ini檔,請依自己需要修改
TEAM DISP W1024 H768 B32|DISP W1280 720 B32
EXEC !=x:\Windows\System32\PE_INI.BAT
load x:\Windows\System32\disposition\LoginUser.ini

poweroff.cmd:在桌面建立關機圖示,執行這個檔,將pe關機。
x:\windows\system32\shutdown.exe -s -t 1

RAMDISK.cmd:建立虛擬磁碟機Y,大小是1384MB,可依需要修改虛擬磁碟機Y大小, 其餘參數不動。
@echo off
if exist Y:\TEMP exit
start /wait /min rxprd add -n 1384 -t scsi -d Y -v -dmm=COMPACT -f ntfs -c 4KB -l RAMDisk -X -N -T -s
exit

Windows\System32\config\system
已匯入建立pe虛擬磁碟機註冊檔的system檔



rxprd.exe:建立虛擬磁碟機的主程式。本文用primo ramdisk 5.6版。
wincorlib.dll:如刪除這個檔,在工作列 開始 按滑鼠右鍵顯示的選單約有一半是顯示英文,為避免誤刪,預先擷取備著。

擷取網友22000.3260pe內的disposition資料夾,並修改為合用於自己製作win 11 21h2 pe。
修改 Windows\System32\disposition資料夾裡面的.ini檔、.bat檔以符合自製pe需求。
LoginUser.ini檔內容,請依自己需要修改。
Drvindex.exe  安裝pedriver資料夾pedriver.7z(pe開機需要的驅動程式包,請依自己需求準備載入驅動程式包的指令或程式,及準備驅動程式包,如只有一個pe,也可以用dism++將驅動程式包整合至pe內,加速開機速度,因多個pe要共用一個驅動程式包,才採用外置驅動程式包。)。安裝windows 11 24h2時,如選用預設新的安裝方式,在win11 21h2 pe會看不到windows 11 24h2安裝的分割區,SHOW -check -1:-1及執行PECMDORGI.EXE,就可以看到windows 11 24h2安裝的分割區,PECMDORGI.EXE這個檔案是網友分享的。
RAMDISK.cmd 建立Primo_Ramdisk,不建立虛擬磁碟機,可不建立及執行此檔,並刪除建立虛擬磁碟機相關指令。
工具程式檔petools.wim,請依自己需要建立及命名,並加入指令行。
將WINSNAP、trueimage、DiskGenius釘選至工作列 。
win11 21h2 pe啟動到最後加一行指令kill explorer.exe,讓pe按 開始 ,就能列出 所有程式。沒加kill explorer.exe這行指令,載pe按 開始,要再按 所有程式,才會列出 所有程式
runner.bat檔不修改
LoginUser.ini檔內容:
EXEC !wpeutil.exe InitializeNetwork
SHOW -check -1:-1
LOGO %WinDir%\web\wallpaper\Windows\img0.jpg
//TEXT 系統載入中...#0xFFFFFF L59 T39 $20*
HIDE
SHEL -sys explorer.exe
EXEC !ctfmon.exe
LOGO
EXEC !%ProgramFiles%\WinXShell\WinXShell.exe -regist -daemon
EXEC !"%WinDir%\System32\disposition\Runner.bat" Post
load \sources\pe\disc.ini
EXEC != %cdna%\win8chtxpe\pedriver\Drvindex.exe -t %cdna%\win8chtxpe\pedriver
LINK %Desktop%\notepad,%SystemRoot%\system32\notepad.exe
EXEC != %cdna%\win8chtxpe\pedriver\PECMDORGI.EXE
EXEC @%SystemRoot%\regedit.exe /s "%SystemRoot%\System32\md1.reg"
EXEC @%SystemRoot%\regedit.exe /s "%SystemRoot%\System32\win11pass.reg"
//TEXT make ramdisk #0xFFFFFF L459 T439 $20*
//TEXT                         #0xFFFFFF L459 T439 $20*
EXEC !=%SystemRoot%\System32\orderdrv\orderdrv.cmd
EXEC !=%SystemRoot%\System32\RAMDISK.cmd
IFEX ! Y:\TEMP,WAIT 4000
IFEX ! Y:\TEMP,WAIT 2000
IFEX ! Y:\TEMP,WAIT 2000
IFEX ! Y:\TEMP,WAIT 2000
load \sources\pe\disc.ini
md y:\petools
moun %cdna%\win8chtxpe\petools.wim,Y:\petools
load %cdna%\win8chtxpe\win10chtsousuo642.ini
EXEC %ProgramFiles%\WinXShell\WinXShell.exe -code "Taskbar:Pin([[Y:\petools\x86\mytools1\WINSNAP\WINSNAP.EXE]])"
EXEC %ProgramFiles%\WinXShell\WinXShell.exe -code "Taskbar:Pin([[Y:\petools\x64\tools641\ati\ATIH2017\ATILauncher_x64.exe]])"
EXEC %ProgramFiles%\WinXShell\WinXShell.exe -code "Taskbar:Pin([[Y:\petools\x64\tools641\DiskGenius\DiskGenius.exe]])"
FILE X:\Users\Default\Desktop\AOMEI_Backupper.*
WALL "X:\Windows\web\wallpaper\Windows\img0.jpg"
kill explorer.exe


Windows\System32\disposition\Post
Computer.bat:改電腦名稱為tai(電腦名稱依需要修改)
@echo off
reg add "HKLM\SYSTEM\ControlSet001\Control\ComputerName\ActiveComputerName" /f /v "ComputerName" /t REG_SZ /d "WIN11PE_tai"
reg add "HKLM\SYSTEM\ControlSet001\Control\ComputerName\ComputerName" /f /v "ComputerName" /t REG_SZ /d "WIN11PE_tai"
reg add "HKLM\SYSTEM\ControlSet001\Services\Tcpip\Parameters" /f /v "NV Hostname" /t REG_SZ /d "WIN11PE_tai"
reg add "HKLM\SYSTEM\ControlSet001\Services\Tcpip\Parameters" /f /v "Hostname" /t REG_SZ /d "WIN11PE_tai"
reg add "HKLM\SYSTEM\ControlSet001\Services\EventLog\State" /f /v "LastComputerName" /t REG_SZ /d "WIN11PE_tai" 
reg add "HKLM\SYSTEM\ControlSet001\Services\RpcSs" /f /v "ObjectName" /t REG_SZ /d "LocalSystem"
reg add "HKLM\SYSTEM\ControlSet001\Services\RpcEptMapper" /f /v "ObjectName" /t REG_SZ /d "LocalSystem"
reg delete "HKLM\SYSTEM\ControlSet001\Enum\PCI\VEN_8086&DEV_10D3&SUBSYS_07D015AD&REV_00" /f
reg delete "HKLM\SYSTEM\ControlSet001\Enum\PCI\VEN_10EC&DEV_8168&SUBSYS_E0001458&REV_0C" /f
reg delete "HKLM\SYSTEM\ControlSet001\Enum\PCI\VEN_15AD&DEV_1977&SUBSYS_197715AD&REV_09" /f
attrib +s x:\users & attrib +s x:\users\*.* /D /S 1>nul 2>nul & attrib +s +h X:\Users\Public\Libraries /D
del /a /q "X:\Users\Default\Desktop\desktop.ini"
del /a /q "X:\Users\Public\Desktop\desktop.ini"
del /a /q "%USERPROFILE%\Desktop\desktop.ini"
start WinXShell.exe -code "FolderOptions:Set('ShowAll', 1)"

exit

-ImDisk-MENU.reg 不修改

Initapp.ini:刪到只剩一行
CALL $gdi32.dll,EnableEUDC

Link.ini:改為下列5行,並修改為繁體中文
HOTK #112,PECMD.EXE `F1 pecmd
HOTK #119,kill explorer.exe `F8 刷新系統
LINK %Programs%\F1 PECMD,%SystemRoot%\system32\PECMD.exe
LINK %Programs%\F8刷新系統,pecmd.exe, kill explorer.exe,shell32.dll#238
EXEC %ProgramFiles%\WinXShell\WinXShell.exe -code "PinToTaskbar([[Explorer.exe]])"

Inidrive.bat檔刪除


Windows\SystemResources
擷取網友22000.3260pe內,精簡過的imageres.dll.mun、shell32.dll.mun檔。

Windows\SystemResources\Windows.UI.ShellCommon
擷取網友22000.3260pe內,精簡過的Windows.UI.ShellCommon.pri檔。

Windows\SysWOW64
擷取網友22000.3260pe Windows\SysWOW64內的 ExplorerFrame.dll、shell32.dll
Windows\SysWOW64\icmp.dll、Windows\SysWOW64\KBDUS.DLL,從windows 11 22000.3260 繁體中文install.wim擷取。
Windows\Web\Wallpaper\Windows
img0.jpg:win11 21h2 pe繁體中文桌面圖檔,選一個自己喜歡的jpg圖檔存至此資料夾。

預先準備的精簡檔、修正檔、批次檔、reg檔、補檔。以供複製到製作的win11 21h2 pe。至此,已說明完畢。

win11_2200_3260_tw\Program Files、win11_2200_3260_tw\Users、win11_2200_3260_tw\Windows三個資料夾複製貼上win11 21h2 pe繁體中文無聲音無網路維修版

相同檔名->取代目的地中的檔案


用 CAT簽名批量檢查工具,精減*.cat檔
按 瀏覽 選擇PE文件目錄 D:\222  (gimage mount掛載boot.wim的資料夾)。
按 瀏覽 選擇 CAT文件夾,Windows\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}
按 是。

按  檢查所有CAT文件。
CAT文件檢查完畢,按 批量移動無效CAT文件(刪除無效CAT文件)

按  是,執行完畢後,關閉 CAT簽名批量檢查工具。

刪除Windows\System32\config多餘檔案。只留COMPONENTS、DEFAULT、DRIVERS、SAM、SECURITY、SOFTWARE、SYSTEM 7個檔案。

勾選 套用到所有目前的項目->是

只留COMPONENTS、DEFAULT、DRIVERS、SAM、SECURITY、SOFTWARE、SYSTEM 7個檔案。

卸載 Unmount boot.wim
提醒:按 Unmount 之前,務必關閉 所有已開啟的檔案、資料夾。才能順利Unmount。

->close

export 最大壓縮boot.wim,匯出的檔名可以自訂,下圖是ati.wim

->close

ati.wim 256MB,差不多已接近精簡極限,再精簡可能影響pe穩定度及應用程式執行。
msjh.ttc 20.4MB,如有找到精簡檔約8MB替換,ati.wim大小可降至248MB。



win11 21h2 pe繁體中文無聲音無網路維修版。已逐一測試應用程式,可以正常執行。

製作win11 21h2 pe 無聲音無網路繁體中文維修版,因有win 11 24h2 聲音網路繁體中文版製作經驗了,精簡過程就較順利,也能判斷可以精簡檔案。網友22000.3260 pe是很好的精簡範例,透過比對精簡及二分法,快速精簡資料夾、檔案。