|
本帖最后由 sairen139 于 2021-7-4 14:03 编辑
改了一个ps2端口鼠标键盘一键生成10pe11pe批处理
copy Winre.wim BOOT.WIM /y
@echo off
set /a startS=%time:~6,2%
set /a startM=%time:~3,2%
echo %time%
%~dp0\wimlib extract BOOT.WIM 1 \Windows\System32\config\SYSTEM --dest-dir=add2wim --nullglob --no-acls
%~dp0\wimlib extract BOOT.WIM 1 \Windows\System32\config\software --dest-dir=add2wim --nullglob --no-acls
%~dp0\wimlib extract BOOT.WIM 1 \Windows\System32\config\DEFAULT --dest-dir=add2wim --nullglob --no-acls
reg load HKLM\pe-System add2wim\SYSTEM
reg load HKLM\pe-software add2wim\software
reg load HKLM\pe-DEFAULT add2wim\DEFAULT
reg import add2wim\CmdLine.reg
reg unload HKLM\pe-SYSTEM
reg unload HKLM\pe-software
reg unload HKLM\pe-DEFAULT
%~dp0\wimlib dir winre.wim | find ".">1List.TXT
%~dp0\wimlib dir winre.wim --path=windows\winsxs | find ".">winsxsList.TXT
findstr /vil "r.lnk t.lnk segoe_slboot.ttf segoen_slboot.ttf bootres.dll simsun.ttc SortDefault.nls acpi.inf disk.inf errata.inf hal.inf keyboard.inf machine.inf mshdc.inf msmouse.inf usb.inf usbport.inf volume.inf notepad.exe regedit aero.msstyles aclui.dll advapi32.dll apisetschema.dll asycfilt.dll authz.dll basesrv.dll bcdboot.exe bcrypt.dll bcryptprimitives.dll winload BOOTVID.DLL cdd.dll cfgmgr32.dll cfmifs.dll ci.dll clb.dll cmd.exe cmdext.dll driver.stl combase.dll comdlg32.dll coml2.dll conhost.exe credui.dll crypt32.dll cryptbase.dll cryptdll.dll cryptsp.dll csrsrv.dll csrss.exe C_1252.NLS C_437.NLS C_936.NLS dabapi.dll devobj.dll devrtl.dll dpapi.dll dpapisrv.dll acpi.sys acpiex.sys AppleSSD.sys atapi.sys ataport.sys CEA.sys Classpnp.sys clfs.sys ClipSp.sys cmimcext.sys cng.sys condrv.sys disk.sys dxgkrnl.sys dxgmms2.sys EhStorClass.sys fastfat.sys fbwf.sys fltMgr.sys fs_rec.sys fvevol.sys hidclass.sys hidparse.sys hidusb.sys i8042prt.sys intelide.sys isapnp.sys kbdclass.sys kbdhid.sys ksecdd.sys ksecpkg.sys mouclass.sys mouhid.sys mountmgr.sys msfs.sys msisadrv.sys msrpc.sys ndis.sys netio.sys npfs.sys npsvctrig.sys ntfs.sys ntosext.sys null.sys nvstor.sys partmgr.sys pci.sys pciide.sys pciidex.sys pcw.sys pdc.sys ramdisk.sys SleepStudyHelper.sys spaceport.sys storahci.sys stornvme.sys storport.sys tm.sys Ucx01000.sys usbccgp.sys usbd.sys usbehci.sys usbhub.sys USBHUB3.SYS usbport.sys usbohci.sys USBSTOR.SYS USBXHCI.SYS usbuhci.sys vdrvroot.sys volmgr.sys volmgrx.sys volsnap.sys volume.sys watchdog.sys Wdf01000.sys WdfLdr.sys werkernel.sys wimfsf.sys wmilib.sys WppRecorder.sys BasicDisplay BasicRender drvstore.dll dui70.dll duser.dll dwmapi.dll EventAggregation.dll fltLib.dll fmifs.dll fontdrvhost.exe format.com fsutilext.dll gdi32.dll gdi32full.dll hal.dll iertutil.dll ifsutil.dll imageres.dll imagehlp.dll imm32.dll IPHLPAPI.DLL KBDUS.DLL kd.dll kernel.appcore.dll kernel32.dll KernelBase.dll locale.nls lsasrv.dll lsaadt.dll lsass.exe lsm.dll l_intl.nls mpr.dll msasn1.dll msimg32.dll msprivs.dll msv1_0.dll msvcp_win.dll msvcrt.dll msxml3.dll msxml3r.dll nci.dll ncrypt.dll NetSetupApi.dll notepad.exe ntasn1.dll ntdll.dll ntdsapi.dll NtlmShared.dll ntmarta.dll ntoskrnl.exe ole32.dll oleacc.dll oleaccrc.dll oleaut32.dll oledlg.dll pcwum.dll powrprof.dll profapi.dll propsys.dll psapi.dll PSHED.DLL reg.exe RpcEpMap.dll rpcrt4.dll rpcss.dll rsaenh.dll rundll32.exe samsrv.dll sechost.dll secur32.dll services.exe ServicingCommon.dll setupapi.dll SHCore.dll shell32.dll shlwapi.dll smss.exe spinf.dll sspicli.dll sspisrv.dll streamci.dll svchost.exe sxs.dll sxssrv.dll sysntfy.dll SystemEventsBrokerServer.dll TextShaping.dll ucrtbase.dll ufat.dll ulib.dll untfs.dll urlmon.dll user32.dll userenv.dll utcapi.dll UXInit.dll uxtheme.dll version.dll virtdisk.dll wevtapi.dll wimgapi.dll win32k.sys win32kbase.sys win32kfull.sys win32u.dll winbrand.dll wincredui.dll Windows.FileExplorer.Common.dll windows.storage.dll WindowsCodecs.dll wininet.dll wininit.exe wininitext.dll winload.efi winload.exe winlogon.exe winmm.dll winpeshl.exe winpeshl.ini winspool.drv winsrv.dll winsrvext.dll winsta.dll wintrust.dll WinTypes.dll wkscli.dll Wldap32.dll wldp.dll wpeutil.dll wpeutil.exe ws2_32.dll wsock32.dll wtsapi32.dll xmllite.dll -Core-merged Common-Drivers-merged Package-windows-Package UnifiedBPM Group-merged SXS-Runtime-Package Winpe-Dual Foundation-merged BasicDisplay BasicRender winsxs" 1list.txt>2list.txt
findstr /v ".*_microsoft.windows.c..-controls.resources_.*_zh-cn .*_microsoft.windows.common-controls .*_microsoft.windows.gdiplus_.*_none Manifests.*_microsoft.windows.i..utomation.proxystub Manifests.*_microsoft.windows.isolationautomation Manifests.*_microsoft.windows.systemcompatible" winsxsList.TXT>>2list.txt
echo.
echo 正在增删削减winre.wim包里的文件制作pe过程中,请您稍候2秒钟。。。
Del excel.txt /f /q
Call add2wim\block.vbs
%~dp0wimlib update BOOT.WIM<excel.txt>NUL
%~dp0wimlib update BOOT.WIM<add2wim\add2wim.txt>NUL
%~dp0wimlib optimize BOOT.WIM
set /a endS=%time:~6,2%
set /a endM=%time:~3,2%
echo %time%
set /a diffS_=%endS%-%startS%
set /a diffM_=%endM%-%startM%
echo cost:%diffM_% %diffS_%
echo.
echo 感谢您的等待,现在PE已经制作完成,BOOT.WIM就是你的装机骨头版pe成品!
echo 感谢您的等待,现在PE已经制作完成,BOOT.WIM就是你的装机骨头版pe成品!
echo 感谢您的等待,现在PE已经制作完成,BOOT.WIM就是你的装机骨头版pe成品!
echo.
PAUSE
|
|