|
本帖最后由 sairen139 于 2021-5-28 00:56 编辑
一键批处理增删削减winre.WIM包5秒制作完成WIN10pe装机Core骨头版加DevManView等工具
批处理里加了可以替代设备管理器的工具和破除或跳过windows登陆密码的Password等工具,还有中文化的任务管理器。
批处理语句如下所示:
copy Winre.wim BOOT.WIM /y
@echo off
set /a startS=%time:~6,2%
set /a startM=%time:~3,2%
echo %time%
%~dp0\wimlib dir winre.wim | find ".">1List.TXT
%~dp0\wimlib dir winre.wim --path=windows\winsxs | find ".">winsxsList.TXT
findstr /vil "simsun.ttc SortDefault acpi.inf disk.inf errata.inf hal.inf keyboard.inf machine.inf mshdc.inf msmouse.inf volume.inf aero.msstyles propsys.dll.mun regedit aclui.dll advapi32.dll apisetschema.dll asycfilt.dll authz.dll basesrv.dll bcdboot.exe bcrypt.dll bcryptprimitives.dll BOOTVID.DLL cdd.dll cfgmgr32.dll ci.dll clb.dll cmd.exe cmdext.dll 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 dpapisrv.dll 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 imm32.dll IPHLPAPI.DLL KBDUS.DLL kd.dll kernel.appcore.dll kernel32.dll KernelBase.dll locale.nls lsasrv.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 ncrypt.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 RpcEpMap.dll rpcrt4.dll rpcss.dll rsaenh.dll rundll32.exe samsrv.dll sechost.dll secur32.dll services.exe setupapi.dll SHCore.dll shell32.dll shlwapi.dll smss.exe spinf.dll sspicli.dll sspisrv.dll svchost.exe sxs.dll sxssrv.dll sysntfy.dll SystemEventsBrokerServer.dll taskmgr.exe TextShaping.dll ucrtbase.dll ufat.dll ulib.dll untfs.dll urlmon.dll user32.dll userenv.dll UXInit.dll uxtheme.dll version.dll virtdisk.dll wevtapi.dll wimgapi.dll win32k.sys win32kbase.sys win32kfull.sys win32u.dll winbrand.dll Windows.FileExplorer.Common.dll windows.storage.dll WindowsCodecs.dll wininet.dll wininit.exe wininitext.dll winlogon.exe winmm.dll winspool.drv winsrv.dll winsrvext.dll winsta.dll wintrust.dll wkscli.dll Wldap32.dll wldp.dll wpeutil.dll wpeutil.exe ws2_32.dll wsock32.dll wtsapi32.dll xmllite.dll winload driver.stl 3ware.sys ACPI.sys acpiex.sys ADP80XX.SYS afd.sys amdsata.sys amdsbs.sys amdxata.sys AppleSSD.sys arcsas.sys atapi.sys ataport.SYS BATTC.SYS bfadfcoei.sys bfadi.sys bttflt.sys bxfcoe.sys bxois.sys bxvbda.sys cdrom.sys CEA.sys cht4sx64.sys CLASSPNP.SYS CLFS.SYS clipsp.sys CmBatt.sys cmimcext.sys cng.sys condrv.sys crashdmp.sys dfsc.sys disk.sys drmk.sys dxgkrnl.sys dxgmms2.sys EhStorClass.sys EhStorTcgDrv.sys elxfcoe.sys elxstor.sys evbda.sys fastfat.SYS fbwf.sys fileinfo.sys FLTMGR.SYS Fs_Rec.sys fvevol.sys fwpkclnt.sys HDAudBus.sys HdAudio.sys HIDCLASS.SYS HIDPARSE.SYS hidusb.sys HpSAMD.sys hvsocket.sys iaStorAVC.sys iaStorV.sys intelide.sys intelppm.sys isapnp.sys ItSas35i.sys ks.sys ksecdd.sys ksecpkg.sys ksthunk.sys lsi_sas.sys lsi_sas2i.sys lsi_sas3i.sys lsi_sss.sys megasas.sys MegaSas2i.sys megasas35i.sys megasr.sys mouclass.sys mouhid.sys mountmgr.sys Msfs.SYS msisadrv.sys msrpc.sys mssmbios.sys mup.sys mvumis.sys NDIS.SYS NdisVirtualBus.sys netbios.sys netbt.sys NETIO.SYS Npfs.SYS npsvctrig.sys nsiproxy.sys Ntfs.sys ntosext.sys Null.SYS nvdimm.sys nvraid.sys nvstor.sys partmgr.sys pci.sys pciide.sys PCIIDEX.SYS pcmcia.sys pcw.sys pdc.sys percsas2i.sys percsas3i.sys pmem.sys portcls.sys qefcoe.sys qeois.sys qevbda.sys ql2300i.sys ql40xx2i.sys qlfcoei.sys ramdisk.sys rdbss.sys ReFS.sys ReFSv1.sys sbp2port.sys scmbus.sys sdbus.sys sdstor.sys SiSRaid2.sys sisraid4.sys SleepStudyHelper.sys SmartSAMD.sys spaceport.sys stexstor.sys storahci.sys stornvme.sys storport.sys storufs.sys storvsc.sys tcpip.sys TDI.SYS tdx.sys tm.sys uaspstor.sys ucx01000.sys usbccgp.sys USBD.SYS usbehci.sys usbhub.sys UsbHub3.sys USBPORT.SYS USBSTOR.SYS USBXHCI.SYS vdrvroot.sys vmbkmcl.sys vmbus.sys vmstorfl.sys volmgr.sys volmgrx.sys volsnap.sys volume.sys vsmraid.sys vstxraid.sys vwififlt.sys watchdog.sys Wdf01000.sys WDFLDR.SYS werkernel.sys WimFsf.sys winhv.sys winpeshl.exe WMILIB.SYS Wof.sys WppRecorder.sys CatRoot 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过程中,请您稍微等待。。。
del excel.txt /f /q
for /f "delims=" %%i in (2list.txt) do ( echo delete --force --recursive "%%i">>excel.txt )
%~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
|
评分
-
查看全部评分
|