无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
查看: 8541|回复: 48
打印 上一主题 下一主题

[分享] 三秒制作完成网络骨头版pe:一键批处理增删削减winre.WIM包仅3秒制作WIN10网络骨头pe

    [复制链接]
跳转到指定楼层
1#
发表于 2021-5-29 15:22:51 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 sairen139 于 2021-5-29 16:15 编辑

三秒制作完成网络骨头版pe:一键批处理增删削减winre.WIM包仅3秒制作WIN10网络骨头pe

史上最快的网络骨头版pe制作,只需将WinRE.WIM放入解压开的文件夹里,运行批处理3秒后就能制作完成WIN10网络骨头pe!制作完成的pe成品BOOT.WIM可直接用添加pe启动项使用,或者请自行加外壳打包成ISO后使用也可以。

请下载两个附件并去掉后缀名最后的.ZIP再解压使用,制作PE的具体批处理语句如下所示:
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 3ware.inf acpi.inf acpidev.inf acpipagr.inf acpitime.inf adp80xx.inf amdgpio2.inf amdi2c.inf amdsata.inf amdsbs.inf arcsas.inf basicdisplay.inf basicrender.inf battery.inf buttonconverter.inf c_apo.inf c_avc.inf c_battery.inf c_biometric.inf c_cdrom.inf c_computeaccelerator.inf c_computer.inf c_diskdrive.inf c_display.inf c_extension.inf c_firmware.inf c_hdc.inf c_hidclass.inf c_image.inf c_keyboard.inf c_legacydriver.inf c_mcx.inf c_media.inf c_mediumchanger.inf c_memory.inf c_modem.inf c_monitor.inf c_mouse.inf c_mtd.inf c_multifunction.inf c_multiportserial.inf c_net.inf c_netdriver.inf c_netservice.inf c_nettrans.inf c_ports.inf c_processor.inf c_proximity.inf c_sbp2.inf c_scmdisk.inf c_scmvolume.inf c_scsiadapter.inf c_sdhost.inf c_smartcard.inf c_smartcardfilter.inf c_smartcardreader.inf c_smrdisk.inf c_smrvolume.inf c_sslaccel.inf c_swcomponent.inf c_swdevice.inf c_system.inf c_ucm.inf c_unknown.inf c_usb.inf c_usbdevice.inf c_usbfn.inf c_volsnap.inf c_volume.inf c_wceusbs.inf dc21x4vm.inf disk.inf dwup.inf e2xw10x64.inf ehstortcgdrv.inf errata.inf errdev.inf genericusbfn.inf hal.inf halextintclpiodma.inf halextpl080.inf hdaudbus.inf hdaudio.inf hdaudss.inf hidbatt.inf hiddigi.inf hidi2c.inf hidinterrupt.inf hidserv.inf hidspi_km.inf hidvhf.inf hpsamd.inf iagpio.inf iai2c.inf iaLPSS2i_GPIO2_BXT_P.inf iaLPSS2i_GPIO2_CNL.inf iaLPSS2i_GPIO2_GLK.inf iaLPSS2i_GPIO2_SKL.inf iaLPSS2i_I2C_BXT_P.inf iaLPSS2i_I2C_CNL.inf iaLPSS2i_I2C_GLK.inf iaLPSS2i_I2C_SKL.inf ialpssi_gpio.inf ialpssi_i2c.inf iastorav.inf iastorv.inf input.inf ipmidrv.inf ipoib6x.inf iscsi.inf ItSas35i.inf kdnic.inf keyboard.inf lltdio.inf lsi_sas.inf lsi_sas2i.inf lsi_sas3i.inf lsi_sss.inf machine.inf mausbhost.inf mchgr.inf megasas.inf megasas2i.inf megasas35i.inf megasr.inf mf.inf mlx4_bus.inf mshdc.inf msmouse.inf msports.inf mssmbios.inf mtconfig.inf mvumis.inf ndisimplatform.inf ndisimplatformmp.inf ndisuio.inf ndisvirtualbus.inf net1ix64.inf net1yx64.inf net40i68.inf net44amd.inf net7400-x64-n650.inf net7500-x64-n650f.inf net7800-x64-n650f.inf net9500-x64-n650f.inf netax88179_178a.inf netax88772.inf nete1e3e.inf nete1g3e.inf netefe3e.inf netg664.inf netimm.inf netip6.inf netjme.inf netk57a.inf netl160a.inf netl1e64.inf netl260a.inf netloop.inf netmscli.inf netmyk64.inf netnb.inf netnvma.inf netnwifi.inf netrasa.inf netrass.inf netrast.inf netrtl64.inf netserv.inf netsstpa.inf nett4x64.inf nettcpip.inf netvf63a.inf netvg63a.inf netxex64.inf netxix64.inf npsvctrig.inf nvdimm.inf nvraid.inf pci.inf percsas2i.inf percsas3i.inf pmem.inf puwk.inf qd3x64.inf ramdisk.inf rawsilo.inf rdshup.inf rspndr.inf rt640x64.inf rtux64w10.inf sbp2.inf sceregvl.inf scmbus.inf scmvolume.inf scsidev.inf sdbus.inf sdstor.inf secrecs.inf sisraid2.inf sisraid4.inf SmartSAMD.inf smrdisk.inf smrvolume.inf spaceport.inf stexstor.inf stornvme.inf storufs.inf swenum.inf uaspstor.inf uefi.inf ufxchipidea.inf ufxsynopsys.inf umbus.inf umpass.inf unknown.inf usb.inf usbhub3.inf usbnet.inf usbport.inf usbser.inf usbstor.inf usbxhci.inf vdrvroot.inf vhdmp.inf virtdisk.inf volmgr.inf volsnap.inf volume.inf vsmraid.inf vstxraid.inf wdmaudiocoresystem.inf wdmvsc.inf whyperkbd.inf wmiacpi.inf wnetvsc.inf wstorflt.inf wstorvsc.inf wvmbus.inf wvmbushid.inf wvmbusvideo.inf ykinx64.inf L2Schemas aero.msstyles regedit aclui.dll advapi32.dll aepic.dll apisetschema.dll asycfilt.dll atl.dll authz.dll basesrv.dll bcd.dll bcdboot.exe bcdedit.exe bcryptprimitives.dll BFE.DLL BOOTVID.DLL BrokerLib.dll cabinet.dll cdd.dll cfgmgr32.dll ci.dll clb.dll cmd.exe cmdext.dll combase.dll comdlg32.dll coml2.dll conhost.exe console.dll credui.dll cryptbase.dll cryptdll.dll cryptsp.dll bcrypt.dll crypt32.dll cryptsvc.dll msxml ncrypt.dll rasapi32.dll wldp.dll csrsrv.dll csrss.exe C_1252.NLS C_437.NLS C_936.NLS d2d1.dll d3d11.dll dab.dll dabapi.dll dbgcore.dll dbghelp.dll devobj.dll devrtl.dll dhcpcore.dll dhcpcore6.dll dhcpcsvc.dll dhcpcsvc6.dll diskpart.exe dllhost.exe dnsapi.dll dnsrslvr.dll dpapi.dll dpapisrv.dll drvinst.exe drvload.exe drvsetup.dll drvstore.dll dsparse.dll dsrole.dll dui70.dll duser.dll dwmapi.dll DWrite.dll dxgi.dll eappprxy.dll EventAggregation.dll feclient.dll find.exe FirewallAPI.dll fltLib.dll fmifs.dll fontdrvhost.exe format.com fsutil.exe fsutilext.dll fveapi.dll fwbase.dll fwpolicyiomgr.dll FWPUCLNT.DLL gdi32.dll gdi32full.dll gpapi.dll hal.dll hhsetup.dll iertutil.dll ifsutil.dll IKEEXT.DLL imagehlp.dll imageres.dll imapi2.dll imm32.dll ipconfig.exe IPHLPAPI.DLL joinutil.dll KBDUS.DLL kd.dll KerbClientShared.dll kerberos.dll kernel.appcore.dll kernel32.dll KernelBase.dll keyiso.dll ksuser.dll ktmw32.dll l2nacp.dll linkinfo.dll lmhsvc.dll locale.nls logoncli.dll lsasrv.dll lsass.exe lsm.dll l_intl.nls mfc42u.dll mpr.dll MPSSVC.dll msasn1.dll msctf.dll msftedit.dll msimg32.dll msports.dll msprivs.dll msv1_0.dll msvcp110_win.dll msvcp_win.dll msvcrt.dll mswsock.dll ncsi.dll net.exe net1.exe netapi32.dll netbios.dll netcfgx.dll netjoin.dll netlogon.dll netmsg.dll netprovfw.dll NetSetupApi.dll NetSetupEngine.dll NetSetupSvc.dll netshell.dll netutils.dll newdev.dll ninput.dll nlaapi.dll nlasvc.dll normaliz.dll notepad.exe nrpsrv.dll nsi.dll nsisvc.dll ntasn1.dll ntdll.dll ntdsapi.dll ntlanman.dll NtlmShared.dll ntmarta.dll ntoskrnl.exe ole32.dll oleacc.dll oleaccrc.dll oleaut32.dll oledlg.dll OneCoreCommonProxyStub.dll onex.dll osuninst.dll powrprof.dll profapi.dll propsys.dll psapi.dll PSHED.DLL rasadhlp.dll rasman.dll reg.exe regsvr32.exe RpcEpMap.dll rpcrt4.dll RpcRtRemote.dll rpcss.dll rsaenh.dll rundll32.exe samcli.dll samsrv.dll schannel.dll schema.dat sechost.dll secur32.dll services.exe setupapi.dll SHCore.dll shell32.dll shlwapi.dll shutdownux.dll slc.dll SmiEngine.dll smss.exe spfileq.dll spinf.dll sppc.dll srvcli.dll srvsvc.dll sscore.dll sspicli.dll sspisrv.dll stdole2.tlb Storprop.dll svchost.exe sxs.dll sxssrv.dll sysclass.dll sysntfy.dll SystemEventsBrokerServer.dll takeown.exe TextShaping.dll ucrtbase.dll uexfat.dll ufat.dll ulib.dll umpdc.dll umpnpmgr.dll umpo.dll unattend.dll untfs.dll urlmon.dll user32.dll userenv.dll usp10.dll UXInit.dll uxtheme.dll vds.exe vdsbas.dll vdsdyn.dll vdsldr.exe vdsutil.dll vdsvd.dll vds_ps.dll version.dll virtdisk.dll webio.dll wevtapi.dll wevtsvc.dll wimgapi.dll wimserv.exe win32k.sys win32kbase.sys win32kfull.sys win32u.dll winbrand.dll Windows.FileExplorer.Common.dll windows.storage.dll CatRoot drivers WindowsCodecs.dll winhttp.dll wininet.dll wininit.exe wininitext.dll winlogon.exe winmm.dll winmmbase.dll winnlsres.dll winnsi.dll winpeshl winspool.drv winsrv.dll winsrvext.dll winsta.dll wintrust.dll WinTypes.dll wkscli.dll wkssvc.dll wlanapi.dll wlanhlp.dll wlanmsm.dll wlansec.dll wlansvc.dll wlanutil.dll Wldap32.dll wmiclnt.dll wpeutil ws2_32.dll wshhyperv.dll wsock32.dll wtsapi32.dll xcopy.exe xmllite.dll winload driver.stl 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
call add2wim\Black.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


FDF21ECA-AFEE-4DEF-8343-38C60B41BA8E.jpeg (1.8 MB, 下载次数: 103)

FDF21ECA-AFEE-4DEF-8343-38C60B41BA8E.jpeg

A5517680-EE2B-410D-8F9B-13313AFD2FC3.jpeg (1.61 MB, 下载次数: 99)

A5517680-EE2B-410D-8F9B-13313AFD2FC3.jpeg

!一键批处理增删削减winre的WIM包3秒制作完成WIN10pe网络骨头版.zip.001.ZIP

2 MB, 下载次数: 330, 下载积分: 无忧币 -2

去掉后缀名最后的.ZIP再解压使用

!一键批处理增删削减winre的WIM包3秒制作完成WIN10pe网络骨头版.zip.002.ZIP

1.95 MB, 下载次数: 599, 下载积分: 无忧币 -2

去掉后缀名最后的.ZIP再解压使用

评分

参与人数 5无忧币 +25 收起 理由
某些人 + 5 很给力!
gtc + 5 赞一个!
bfgxp + 5 很给力!
undola + 5 3秒 这就厉害了
hlccfu + 5 赞一个!

查看全部评分

2#
 楼主| 发表于 2021-5-29 15:26:59 | 只看该作者
维护版本的装机骨头版也可以3秒制作完成!

点评

我刚制成的Win11PE_x64_23H2_25398.408,声网版(网络仅支持RNDIS),全内置常用工具后,wim 体积也就426M,按目前的硬件水平,500M以内的体积,都不算大!嘿嘿……  详情 回复 发表于 2023-9-25 16:29
等会再发维护用的装机骨头版PE的一键批处理上来  详情 回复 发表于 2021-5-29 15:28
回复

使用道具 举报

3#
 楼主| 发表于 2021-5-29 15:28:33 | 只看该作者
本帖最后由 sairen139 于 2021-5-29 15:50 编辑
sairen139 发表于 2021-5-29 15:26
维护版本的装机骨头版也可以3秒制作完成!

等会再发维护用的装机骨头版PE的一键批处理上来

3秒制作完成WIN10pe装机Core骨头版PE.zip.002.ZIP

1.69 MB, 下载次数: 136, 下载积分: 无忧币 -2

去掉后缀名002最后的.ZIP再解压使用

3秒制作完成WIN10pe装机Core骨头版PE.zip.001.ZIP

2 MB, 下载次数: 127, 下载积分: 无忧币 -2

去掉后缀名001最后的.ZIP再解压使用

点评

老大,我被你搞晕了。发了那么多骨头版的批处理,不知哪个好用?!  发表于 2023-11-12 09:27
用外接键盘需drivers文件夹增加下面2个驱动文件: kbdclass.sys kbdhid.sys  详情 回复 发表于 2021-5-31 13:59
回复

使用道具 举报

4#
发表于 2021-5-29 15:40:12 | 只看该作者
感谢分享 正需要
回复

使用道具 举报

5#
发表于 2021-5-29 15:48:02 | 只看该作者
维护版本的装机骨头版 好
回复

使用道具 举报

6#
发表于 2021-5-29 15:52:23 | 只看该作者
围观高手啊
回复

使用道具 举报

7#
发表于 2021-5-29 16:09:09 | 只看该作者
支持一下,很厉害的工具。
回复

使用道具 举报

8#
发表于 2021-5-29 16:13:12 | 只看该作者
就喜欢这样授人以渔的楼主
回复

使用道具 举报

9#
发表于 2021-5-29 16:18:21 | 只看该作者
非常感谢楼主分享
先收藏
回复

使用道具 举报

10#
发表于 2021-5-29 16:33:23 来自手机 | 只看该作者
这个好  先顶再学习
回复

使用道具 举报

11#
发表于 2021-5-29 16:38:04 | 只看该作者
围观 不会
回复

使用道具 举报

12#
发表于 2021-5-29 17:21:26 | 只看该作者
那些收费的可咋办呀  会不会找你的麻烦呢
回复

使用道具 举报

13#
发表于 2021-5-29 17:25:22 | 只看该作者
感谢分享,学习了!
回复

使用道具 举报

14#
发表于 2021-5-29 17:41:31 | 只看该作者
感谢分享
回复

使用道具 举报

15#
发表于 2021-5-29 19:31:16 | 只看该作者
牛B  怎么加分的  +20
回复

使用道具 举报

16#
 楼主| 发表于 2021-5-31 13:59:38 | 只看该作者
本帖最后由 sairen139 于 2021-5-31 14:11 编辑
sairen139 发表于 2021-5-29 15:28
等会再发维护用的装机骨头版PE的一键批处理上来

用外接键盘需drivers文件夹增加下面2个驱动文件:
kbdclass.sys
kbdhid.sys
回复

使用道具 举报

17#
发表于 2021-5-31 15:18:57 | 只看该作者
请问大佬,如何筛选一个软件运行需要的所有驱动和dll文件,我发现做好的PE好多软件都启动不了

点评

用本论坛@黑中见白 的工具找依赖文件补充进去就可以了  详情 回复 发表于 2021-5-31 15:58
回复

使用道具 举报

18#
 楼主| 发表于 2021-5-31 15:58:16 | 只看该作者
某些人 发表于 2021-5-31 15:18
请问大佬,如何筛选一个软件运行需要的所有驱动和dll文件,我发现做好的PE好多软件都启动不了

用本论坛@黑中见白 的工具找依赖文件补充进去就可以了
回复

使用道具 举报

19#
发表于 2021-5-31 16:35:31 | 只看该作者
发现货吧。
回复

使用道具 举报

20#
发表于 2021-5-31 17:02:55 | 只看该作者
期待维护用的装机骨头版PE的一键批处理

点评

!一键批处理3秒增删削减WinRe.WIM制作完成WIN10pe装机骨头版.zip 批处理奉上,请下载两个附件去掉后缀名里最后的.ZIP后解压使用即可! 装机骨头版pe成品大概八十多mb大小!想继续精简请搜索我以前的帖子自行精简!  详情 回复 发表于 2021-5-31 19:37
回复

使用道具 举报

21#
 楼主| 发表于 2021-5-31 19:37:12 | 只看该作者
qrd8008 发表于 2021-5-31 17:02
期待维护用的装机骨头版PE的一键批处理

!一键批处理3秒增删削减WinRe.WIM制作完成WIN10pe装机骨头版.zip
批处理奉上,请下载两个附件去掉后缀名里最后的.ZIP后解压使用即可!
装机骨头版pe成品大概八十多mb大小!想继续精简请搜索我以前的帖子自行精简!

!一键批处理3秒增删削减WinRe.WIM制作完成WIN10pe装机骨头版.zip.002.ZIP

1.5 MB, 下载次数: 43, 下载积分: 无忧币 -2

去掉后缀名里最后的.ZIP后解压使用即可!

!一键批处理3秒增删削减WinRe.WIM制作完成WIN10pe装机骨头版.zip.001.ZIP

2 MB, 下载次数: 45, 下载积分: 无忧币 -2

去掉后缀名里最后的.ZIP后解压使用即可!

回复

使用道具 举报

22#
发表于 2021-6-5 16:05:36 | 只看该作者
Mark,看反馈情况再说。。。
回复

使用道具 举报

23#
发表于 2021-6-10 12:40:47 | 只看该作者
回复

使用道具 举报

24#
发表于 2021-6-11 08:22:50 | 只看该作者
学习一下
回复

使用道具 举报

25#
发表于 2021-6-11 08:34:07 | 只看该作者
感谢楼主分享
回复

使用道具 举报

26#
发表于 2021-7-8 22:30:45 | 只看该作者
这个兼容性怎么样
回复

使用道具 举报

27#
 楼主| 发表于 2021-11-2 09:50:31 | 只看该作者
修改开机共享pe的X盘出去的批处理
require 'winapi'

ICP_TIMER_ID = 10001 -- init control panel timer

cmd_line = app:info('cmdline')
app_path = app:info('path')
win_ver = app:info('winver')
is_x = (os.getenv("SystemDrive") == 'X:')
is_pe = (app:info('iswinpe') == 1)                              -- Windows Preinstallation Environment
is_wes = (string.find(cmd_line, '-wes') and true or false)      -- Windows Embedded Standard
is_win = (string.find(cmd_line, '-windows') and true or false)  -- Normal Windows

-- 'auto', 'ui_systemInfo', 'system', '' or nil
handle_system_property = 'auto'

--[[ add one more '-' to be '---', will enable this function
function do_ocf(lnkfile, realfile) -- handle open containing folder menu
  -- local path = realfile:match('(.+)\\')
  -- app:run('cmd', '/k echo ' .. path)

  -- totalcmd
  app:run('X:\\Progra~1\\TotalCommander\\TOTALCMD64.exe', '/O /T /A \"' .. realfile .. '\"')
  -- XYplorer
  app:run('X:\\Progra~1\\XYplorer\\XYplorer.exe', '/select=\"' .. realfile .. '\"')
end
--]]

function onload()
  -- app:call('run', 'notepad.exe')
  -- app:run('notepad.exe')
  app:print('WinXShell.exe loading...')
  app:print('CommandLine:' .. cmd_line)
  app:print('WINPE:'.. tostring(is_pe))
  app:print('WES:' .. tostring(is_wes))
end

function ondaemon()
  regist_shortcut_ocf()
  regist_system_property()
  regist_protocols()
end

function onshell()
  regist_folder_shell()
  regist_shortcut_ocf()
  regist_system_property()
  regist_protocols()

  -- wxsUI('UI_WIFI', 'main.jcfg', '-notrayicon -hidewindow')
  -- wxsUI('UI_Volume', 'main.jcfg', '-notrayicon -hidewindow')
end

-- return the resource id for startmenu logo
function startmenu_logoid()
  local map = {
    ["none"] = 0, ["windows"] = 1, ["winpe"] = 2,
    ["custom1"] = 11, ["custom2"] = 12, ["custom3"] = 13,
    ["default"] = 1
  }
  -- use next line for custom (remove "--" and change "none" to what you like)
  -- if true then return map["none"] end
  if is_pe then return map["winpe"] end
  return map["windows"]
end

-- 如果你想自定义时钟区域的显示信息,
-- 请将这个函数名变更为update_clock_text()。
-- 自定义显示示例:
--[[
    |  22:00 星期六  |
    |   2019-9-14    |
]]
-- FYI:https://www.lua.org/pil/22.1.html
function update_clock_text_sample()
  local wd_name = {'日', '一', '二', '三', '四', '五', '六'}
  local now_time = os.time()
  local wd_disname =  ' 星期' .. wd_name[os.date('%w', now_time) + 1]
  local clocktext = os.date('%H:%M' .. wd_disname .. '\r\n%Y-%m-%d', now_time)
  app:call('SetVar', 'ClockText', clocktext)
end

function onfirstrun()
  exec('cmd.exe /c net share X=X: /grant:everyone,full')
  exec('/hide', 'X:\\Progra~1\\Yong\\W64\\YONG.EXE')
  -- VERSTR = reg_read([[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion]], 'CurrentVersion')
  if is_wes then
    if win_ver == '6.2' or win_ver == '6.3' then -- only Windows 8, 8.1
      app:call('SetTimer', ICP_TIMER_ID, 200) -- use timer to make main shell running
    end
  end
end

function onclick(ctrl)
  if ctrl == 'startmenu_reboot' then
    return onclick_startmenu_reboot()
  elseif ctrl == 'startmenu_shutdown' then
    return onclick_startmenu_shutdown()
  elseif ctrl == 'startmenu_controlpanel' then
    return onclick_startmenu_controlpanel()
  elseif ctrl == 'tray_clockarea' then
    return onclick_tray_clockarea()
  elseif ctrl == 'tray_clockarea(double)' then
    return onclick_tray_clockarea(true)
  end
  return 1 -- continue shell action
end

function onclick_startmenu_reboot()
  -- restart computer directly
  exec('/hide', 'wpeutil.exe Reboot')
  return 0
end

function onclick_startmenu_shutdown()
  -- shutdown computer directly
  exec('/hide', 'wpeutil.exe Shutdown')
  return 0
end

function onclick_startmenu_controlpanel()
  if is_wes then
    app:run('control.exe')
    return 0
  end
  return 1
end

function onclick_tray_clockarea(isdouble)
  if isdouble then
    app:run('control.exe', 'timedate.cpl')
  else
    wxsUI('UI_Calendar', 'Calendar.jcfg')
  end
  return 0
end


function ontimer(tid)
  if tid == ICP_TIMER_ID then
    initcontrolpanel(win_ver)
    app:call('KillTimer', tid)
  end
end

-- ======================================================================================
function initcontrolpanel(ver)
  --  4161    Control Panel
  local ctrlpanel_title = app:call('resstr', '#{@shell32.dll,4161}')
  app:run('control.exe')
  app:call('sleep', 500)
  if CloseWindow('CabinetWClass', ctrlpanel_title) == 0 then
    -- 32012    All Control Panel Items
    ctrlpanel_title = app:call('resstr', '#{@shell32.dll,32012}')
    CloseWindow('CabinetWClass', ctrlpanel_title)
  end
end

!一键批处理增删削减winre的WIM包3秒制作完成WIN10pe网络骨头版.zip

3.97 MB, 下载次数: 68, 下载积分: 无忧币 -2

回复

使用道具 举报

28#
发表于 2021-11-2 11:19:32 | 只看该作者
感谢分享
回复

使用道具 举报

29#
发表于 2022-2-7 16:33:33 | 只看该作者
包下了解压提示文件已损坏,方不方便重传下
回复

使用道具 举报

30#
发表于 2023-9-8 12:58:02 来自手机 | 只看该作者
这个牛
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-6-27 07:54

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表