第一種,將工具程式用7-zip壓縮成.7z檔(例如:TOOLS.7z),PE開機後,解壓縮至X碟。
第二種,將工具程式用gimagex製成.wim檔(例如:tools641.wim),PE開機建立虛擬磁碟機Y碟,將工具程式的.wim檔掛載至Y磁碟機。網友2567288製作的 windows 10 19H2 18363.535 繁中 PE,使用這種方式。本文也是採用這種方式。
第三種,將常用必備的工具程式內置在PE X碟。
第四種,將必備的工具程式內置在PE X碟,其餘工具程式用7-zip壓縮成.7z檔PE開機後,解壓縮至X碟。網路上看到很多PE採用這種方式。
下載 Primo Ramdisk 5.6或6.6試用版存入隨身碟。Primo Ramdisk Ultimate Edition 5.6.0或PrimoRamdisk_Srv_Mui_Setup_6.6.0,經測試這二個試用版安裝後複製出來的rxprd.exe、fancyrd.sys、rxbsknl.sys可以創建Primo Ramdisk RAM虛擬磁碟機。(搭配11PE_Primo_Ramdisk.reg、RAMDISK.cmd使用)
11PE_Primo_Ramdisk.reg檔存入隨身碟(資料來源:https://inonameteam.com/ ,網友2567288)
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\11PE_SYS\ControlSet001\Services\FancyRd]
"Type"=dword:00000001
"Start"=dword:00000000
"ErrorControl"=dword:00000001
"Tag"=dword:0000000c
"ImagePath"=hex(2):53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,64,00,\
72,00,69,00,76,00,65,00,72,00,73,00,5c,00,66,00,61,00,6e,00,63,00,79,00,72,\
00,64,00,2e,00,73,00,79,00,73,00,00,00
"Group"="Boot Bus Extender"
[HKEY_LOCAL_MACHINE\11PE_SYS\ControlSet001\Services\FancyRd\Parameters]
"Scode"=hex:ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,bf,9e,79,a0,79,a0
"Data2"=hex:a9,b2,e4,dc,82,b8,37,52,2c,f8,f3,44,38,5a,b8,1e
"Data3"=hex:b8,00,00,00,a1,31,d1,04,a4,80,f8,44,0c,07,04,05,3d,fe,63,a0,53,0f,\
30,0d,37,e1,65,af,4e,f0,37,f2,2f,e9,dd,36,fc,5f,95,5d,27,d1,95,9f,7e,e0,27,\
e2,df,d9,cd,26,cc,4f,e5,4d,d6,a7,b4,05,ac,1b,81,05,13,0b,54,4c,16,8b,07,6e,\
4c,3f,17,80,c6,f5,7e,27,af,92,18,48,9d,11,c1,4f,8a,24,c0,06,fc,3c,6c,3b,d9,\
42,0c,73,c4,35,c6,cb,e2,45,15,82,83,64,e6,5b,eb,86,7d,57,77,08,15,25,ca,32,\
8f,83,b5,00,e0,73,da,ae,36,52,5b,55,69,18,41,25,30,06,ec,bc,44,00,46,28,51,\
fe,b1,29,e1,55,a0,1c,f7,32,44,73,03,b1,55,5c,6c,26,c7,d6,9a,32,cf,27,a3,e0,\
fe,1c,1e,ff,4e,44,7c,f0,69,98,83,f7
"Info"=dword:80000000
"ImHibernate"=dword:00000001
"EnableIM"=dword:00000001
[HKEY_LOCAL_MACHINE\11PE_SYS\ControlSet001\Services\FancyRd\Enum]
"0"="ROOT\\SYSTEM\\0001"
"Count"=dword:00000001
"NextInstance"=dword:00000001
[HKEY_LOCAL_MACHINE\11PE_SYS\ControlSet001\Control\Class\{4d36e97d-e325-11ce-bfc1-08002be10318}\0188]
"DriverDesc"="Primo Ramdisk Controller"
"ProviderName"="ROMEX SOFTWARE"
"DriverDateData"=hex:00,00,a4,d4,ad,37,cd,01
"DriverDate"="5-22-2012"
"DriverVersion"="5.6.0.6"
"InfSection"="FANCYRD.Device.NT"
"MatchingDeviceId"="root\\Fancy_Ramdisk"
[HKEY_LOCAL_MACHINE\11PE_SYS\ControlSet001\Enum\ROOT\SYSTEM\0001]
"ClassGUID"="{4d36e97d-e325-11ce-bfc1-08002be10318}"
"HardwareID"=hex(7):72,00,6f,00,6f,00,74,00,5c,00,46,00,61,00,6e,00,63,00,79,\
00,5f,00,52,00,61,00,6d,00,64,00,69,00,73,00,6b,00,00,00,00,00
"Service"="FancyRd"
"Driver"="{4d36e97d-e325-11ce-bfc1-08002be10318}\\0188"
"ConfigFlags"=dword:00000000
"Capabilities"=dword:00000000
"ContainerID"="{00000000-0000-0000-FFFF-FFFFFFFFFFFF}"
[HKEY_LOCAL_MACHINE\11PE_SYS\ControlSet001\Enum\ROOT\SYSTEM\0001\Device Parameters]
[HKEY_LOCAL_MACHINE\11PE_SYS\ControlSet001\Enum\ROOT\SYSTEM\0001\Device Parameters\Repository]
[HKEY_LOCAL_MACHINE\11PE_SYS\ControlSet001\Enum\ROOT\SYSTEM\0001\Properties]
[HKEY_LOCAL_MACHINE\11PE_SYS\ControlSet001\Enum\ROOT\SYSTEM\0001\Properties\{540b947e-8b40-45bc-a8a2-6a0b894cbda2}]
[HKEY_LOCAL_MACHINE\11PE_SYS\ControlSet001\Enum\ROOT\SYSTEM\0001\Properties\{540b947e-8b40-45bc-a8a2-6a0b894cbda2}\0007]
[HKEY_LOCAL_MACHINE\11PE_SYS\ControlSet001\Enum\ROOT\SYSTEM\0001\Properties\{80497100-8c73-48b9-aad9-ce387e19c56e}]
[HKEY_LOCAL_MACHINE\11PE_SYS\ControlSet001\Enum\ROOT\SYSTEM\0001\Properties\{80497100-8c73-48b9-aad9-ce387e19c56e}\0006]
@=hex(ffff0007):00,00,00,00
[HKEY_LOCAL_MACHINE\11PE_SYS\ControlSet001\Enum\ROOT\SYSTEM\0001\Properties\{83da6326-97a6-4088-9453-a1923f573b29}]
[HKEY_LOCAL_MACHINE\11PE_SYS\ControlSet001\Enum\ROOT\SYSTEM\0001\Properties\{83da6326-97a6-4088-9453-a1923f573b29}\0003]
[HKEY_LOCAL_MACHINE\11PE_SYS\ControlSet001\Enum\ROOT\SYSTEM\0001\Properties\{83da6326-97a6-4088-9453-a1923f573b29}\0007]
[HKEY_LOCAL_MACHINE\11PE_SYS\ControlSet001\Enum\ROOT\SYSTEM\0001\Properties\{83da6326-97a6-4088-9453-a1923f573b29}\0008]
[HKEY_LOCAL_MACHINE\11PE_SYS\ControlSet001\Enum\ROOT\SYSTEM\0001\Properties\{83da6326-97a6-4088-9453-a1923f573b29}\0009]
[HKEY_LOCAL_MACHINE\11PE_SYS\ControlSet001\Enum\ROOT\SYSTEM\0001\Properties\{83da6326-97a6-4088-9453-a1923f573b29}\000A]
@=hex(ffff0012):48,00,54,00,52,00,45,00,45,00,5c,00,52,00,4f,00,4f,00,54,00,5c,\
00,30,00,00,00
[HKEY_LOCAL_MACHINE\11PE_SYS\ControlSet001\Enum\ROOT\SYSTEM\0001\Properties\{83da6326-97a6-4088-9453-a1923f573b29}\000B]
[HKEY_LOCAL_MACHINE\11PE_SYS\ControlSet001\Enum\ROOT\SYSTEM\0001\Properties\{83da6326-97a6-4088-9453-a1923f573b29}\0064]
@=hex(ffff0010):50,7d,fe,17,3a,f3,ce,01
[HKEY_LOCAL_MACHINE\11PE_SYS\ControlSet001\Enum\ROOT\SYSTEM\0001\Properties\{83da6326-97a6-4088-9453-a1923f573b29}\0065]
@=hex(ffff0010):3d,3c,fc,17,3a,f3,ce,01
[HKEY_LOCAL_MACHINE\11PE_SYS\ControlSet001\Enum\ROOT\SYSTEM\0001\Properties\{83da6326-97a6-4088-9453-a1923f573b29}\0066]
@=hex(ffff0010):71,9e,fe,17,3a,f3,ce,01
[HKEY_LOCAL_MACHINE\11PE_SYS\ControlSet001\Enum\ROOT\SYSTEM\0001\Properties\{a8b865dd-2e3d-4094-ad97-e593a70c75d6}]
[HKEY_LOCAL_MACHINE\11PE_SYS\ControlSet001\Enum\ROOT\SYSTEM\0001\Properties\{a8b865dd-2e3d-4094-ad97-e593a70c75d6}\0002]
@=hex(ffff0010):00,00,a4,d4,ad,37,cd,01
[HKEY_LOCAL_MACHINE\11PE_SYS\ControlSet001\Enum\ROOT\SYSTEM\0001\Properties\{a8b865dd-2e3d-4094-ad97-e593a70c75d6}\0003]
@=hex(ffff0012):35,00,2e,00,36,00,2e,00,30,00,2e,00,36,00,00,00
[HKEY_LOCAL_MACHINE\11PE_SYS\ControlSet001\Enum\ROOT\SYSTEM\0001\Properties\{a8b865dd-2e3d-4094-ad97-e593a70c75d6}\0004]
@=hex(ffff0012):50,00,72,00,69,00,6d,00,6f,00,20,00,52,00,61,00,6d,00,64,00,69,\
00,73,00,6b,00,20,00,43,00,6f,00,6e,00,74,00,72,00,6f,00,6c,00,6c,00,65,00,\
72,00,00,00
[HKEY_LOCAL_MACHINE\11PE_SYS\ControlSet001\Enum\ROOT\SYSTEM\0001\Properties\{a8b865dd-2e3d-4094-ad97-e593a70c75d6}\0005]
[HKEY_LOCAL_MACHINE\11PE_SYS\ControlSet001\Enum\ROOT\SYSTEM\0001\Properties\{a8b865dd-2e3d-4094-ad97-e593a70c75d6}\0006]
@=hex(ffff0012):46,00,41,00,4e,00,43,00,59,00,52,00,44,00,2e,00,44,00,65,00,76,\
00,69,00,63,00,65,00,2e,00,4e,00,54,00,00,00
[HKEY_LOCAL_MACHINE\11PE_SYS\ControlSet001\Enum\ROOT\SYSTEM\0001\Properties\{a8b865dd-2e3d-4094-ad97-e593a70c75d6}\0008]
@=hex(ffff0012):72,00,6f,00,6f,00,74,00,5c,00,46,00,61,00,6e,00,63,00,79,00,5f,\
00,52,00,61,00,6d,00,64,00,69,00,73,00,6b,00,00,00
[HKEY_LOCAL_MACHINE\11PE_SYS\ControlSet001\Enum\ROOT\SYSTEM\0001\Properties\{a8b865dd-2e3d-4094-ad97-e593a70c75d6}\0009]
@=hex(ffff0012):52,00,4f,00,4d,00,45,00,58,00,20,00,53,00,4f,00,46,00,54,00,57,\
00,41,00,52,00,45,00,00,00
[HKEY_LOCAL_MACHINE\11PE_SYS\ControlSet001\Enum\ROOT\SYSTEM\0001\Properties\{a8b865dd-2e3d-4094-ad97-e593a70c75d6}\000E]
@=hex(ffff0007):00,00,ff,80
[HKEY_LOCAL_MACHINE\11PE_SYS\ControlSet001\Enum\ROOT\SYSTEM\0001\Properties\{a8b865dd-2e3d-4094-ad97-e593a70c75d6}\0017]
@=hex(ffff0011):ff
本文以修改網友Kuer win11 23H2 PE,創建Primo Ramdisk磁碟機為例
VM windows 11虛擬機,先設定使用下載的KuerPE_22631.3296_Network.Stable_240408.iso檔開機
->開始->運行
->regedit ,->確定
->輸入 11PE_SYS,->確定
11PE_SYS須與11PE_Primo_Ramdisk.reg 內的註冊碼一致。
點選 11PE_SYS
->文件->卸載配置單元
安裝PrimoRamdisk_Srv_Mui_Setup_6.6.0試用版->確定
(安裝語言也可選英文或繁體中文)
->結束
將X:\Windows\System32\drivers\fancyrd.sys 複製到隨身碟
將X:\Windows\System32\drivers\rxbsknl.sys 複製到隨身碟
將X:\Program Files\Primo Ramdisk\rxprd.exe複製到隨身碟
Gimagex 掛載 boot.wim(111資料夾預先建立)
C:\111\Program Files資料夾,刪除 7-zip、Freeime、Google、SOFT資料夾,改用自己常用工具程式。
C:\111\Users\Default\Desktop資料夾,刪除ChromeSetup捷徑,改用繁體中文版google chrome
C:\111\Users\Default\Documents\Tencent Files\All Users資料夾,刪除QQ資料夾。
C:\111\Users\Default\AppData\Roaming\Microsoft\Windows\AccountPictures資料夾,刪除User-200圖檔 (PE圖示)
rxprd.exe檔從隨身碟複製到 windows\system32資料夾
fancyrd.sys檔從隨身碟複製到 windows\system32\drivers資料夾
rxbsknl.sys檔從隨身碟複製到 windows\system32\drivers資料夾
C:\111\Windows\System32\disposition
Runner.bat不修改。
LoginUser.ini 在末端加入load %SystemRoot%\System32\Ppecmd.ini
在PE ini檔執行Wpeutil.exe加參數InitializeNetwork /NoWait,這樣在.cmd檔用pecmd moum掛載wim檔時,才能順利掛載。
ini檔Wpeutil.exe加參數InitializeNetwork /NoWait
EXEC !%SystemRoot%\System32\Wpeutil.exe InitializeNetwork /NoWait
pecmd moum掛載wim檔
pecmd moun %cdna%\win8chtxpe\tools641.wim,Y:\tools641
Ppecmd.ini 檔,建立ram磁碟機及掛載工具程式
LINK %Desktop%\notepad,%SystemRoot%\system32\notepad.exe
EXEC @%SystemRoot%\regedit.exe /s "%SystemRoot%\System32\md1.reg"
EXEC @%SystemRoot%\regedit.exe /s "%SystemRoot%\System32\win11pass.reg"
TEXT make ramdisk wait...... #0xFFFFFF L59 T39 $20*
EXEC !=%Curdir%\RAMDISK.cmd
IFEX ! Y:\TEMP,WAIT 4000
IFEX ! Y:\TEMP,WAIT 2000
IFEX ! Y:\TEMP,WAIT 2000
wait 2000
load \sources\pe\disc.ini
EXEC !=%Curdir%\sousuo.cmd
EXEC !=%Curdir%\chlabel.cmd
EXEC %ProgramFiles%\WinXShell\WinXShell.exe -code "Taskbar:Pin([[Y:\TEMP\mytools1\WINSNAP\WINSNAP.EXE]])"
EXEC %ProgramFiles%\WinXShell\WinXShell.exe -code "Taskbar:Pin([[Y:\tools641\ati\ATIH2017\ATILauncher_x64.exe]])"
EXEC %ProgramFiles%\WinXShell\WinXShell.exe -code "Taskbar:Pin([[Y:\tools641\DiskGenius\DiskGenius.exe]])"
Windows Registry Editor Version 5.00
md1.reg
[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}"
win11pass.reg
[-HKEY_LOCAL_MACHINE\PE_DEF\Control Panel\Cursors]
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig]
"BypassCPUCheck"=dword:00000001
"BypassStorageCheck"=dword:00000001
"BypassRAMCheck"=dword:00000001
"BypassTPMCheck"=dword:00000001
"BypassSecureBootCheck"=dword:00000001
"BypassUEFICheck"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\Setup\MoSetup]
"BypassCPUCheck"=dword:00000001
"BypassStorageCheck"=dword:00000001
"BypassRAMCheck"=dword:00000001
"BypassTPMCheck"=dword:00000001
"BypassSecureBootCheck"=dword:00000001
"BypassUEFICheck"=dword:00000001
"AllowUpgradesWithUnsupportedTPMOrCPU"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE]
"BypassNRO"=dword:00000001
RAMDISK.cmd
@echo off
if exist Y:\TEMP exit
rxprd add -n 1536 -t scsi -d Y -v -dmm=COMPACT -f ntfs -c 4KB -l RAMDisk -X -N -T -s
exit
disc.ini 。存於sources\pe資料夾,保存PE檔案所在的磁碟機代號。
ENVI $CDNA=%CURDRV%
ENVI $CDNA1=%CURDRV%
RUNS PECMD ENVI,ENVI
sousuo.cmd
if exist %cdna%\skpext\mytools.wim (
%cdna%
cd\win8chtxpe
win10chssousuo641.cmd
)
exit
win10chssousuo641.cmd ,因多個PE各自使用工具程式數不同,因此,依需求分成多個.wim檔
if exist %cdna%\skpext\mytools1.wim (
y:
md mytools1
pecmd moun %cdna%\skpext\mytools1.wim,Y:\mytools1
)
if exist %cdna%\win8chtxpe\tools641.wim (
y:
cd\
md tools641
pecmd moun %cdna%\win8chtxpe\tools641.wim,Y:\tools641
)
if exist %cdna%\win8chtxpe\DeviceDriver.wim (
y:
cd\
md DeviceDriver
pecmd moun %cdna%\win8chtxpe\DeviceDriver.wim,Y:\DeviceDriver
)
if exist %cdna%\win8chtxpe\drvi64.wim (
y:
cd\
md drvi64
pecmd moun %cdna%\win8chtxpe\drvi64.wim,Y:\drvi64
)
if exist %cdna%\win8chtxpe\chrome.wim (
y:
cd\
md chrome
pecmd moun %cdna%\win8chtxpe\chrome.wim,y:\chrome
)
if exist %cdna%\win8chtxpe\yong.wim (
y:
cd\
md yong
pecmd moun %cdna%\win8chtxpe\yong.wim,Y:\yong
)
echo. >> %windir%\peinit1cn.ini
FOR /F "delims=" %%i IN ('dir /b /s y:\peinit1cn.ini') Do echo LOAD %%i >> %windir%\peinit1cn.ini
echo. >> %windir%\peinit1cn.ini
pecmd load %windir%\peinit1cn.ini
pecmd wait 360
chlabel.cmd ,windows\system32資料夾補label.exe檔
x:
cd x:\windows\system32
label x:taiwin
C:\111\Windows\System32\disposition\Post
deldesktopini.ini不修改
External.ini檔, 改為註解不執行(因要改用自己的工具程式)
//FORX !\PETOOLS\PESOFT.INI,MyIni,1,LOAD %MyIni%
//LOGO
Initapp.ini檔,已刪除的工具程式,就註解不執行
CALL $gdi32.dll,EnableEUDC
//LOAD %ProgramFiles%\Freeime\install.ini
TEAM KILL ShellF5|KILL ShellR32
//EXEC !"X:\Program Files\SOFT\ShellF5\ShellF5.exe"
//EXEC !"X:\Program Files\SOFT\ShellF5\ShellR32.exe"
//LINK %Desktop%\Dism++,%ProgramFiles%\SOFT\Dism++\Dism++x64.exe
InitServer.ini 不修改
LinkStartmenu.ini,已刪除的工具程式,就註解不執行,因是簡體PE,在繁體顯示亂碼。
HOTK #112,PECMD.EXE `F1 堆翑
//HOTK #117,LOAD %SystemRoot%\System32\External.ini `F6 樓婥俋离
//HOTK #118,EXEC %ProgramFiles%\SOFT\orderdrv\orderdrv.cmd `F7 燴佼攫睫
HOTK #119,kill explorer.exe `F8 芃陔炵苀
LINK %Programs%\F1 PECMD,%SystemRoot%\system32\PECMD.exe
//LINK %Programs%\F6樓婥俋离,pecmd.exe,LOAD "%SystemRoot%\System32\External.ini",shell32.dll#277
//LINK %Programs%\F7燴佼攫睫,%ProgramFiles%\SOFT\orderdrv\orderdrv.cmd,,%ProgramFiles%\SOFT\orderdrv\orderdrv.ico
LINK %Programs%\F8芃陔炵苀,pecmd.exe, kill explorer.exe,shell32.dll#238
Mountingdriver.ini 檔已刪除的工具程式,就註解不執行
//WAIT 1000
//EXEC "%ProgramFiles%\SOFT\Drvindex\Drvindex.exe" -h -hide
EXEC =!powercfg /X /disk-timeout-ac 0
EXEC =!powercfg /X /disk-timeout-dc 0
Startup_UI_WIFI.ini 不修改
卸載修改好的boot.wim檔
沒有留言:
張貼留言