无忧启动论坛

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

怎样打造具有最少功能的Windows PE?

[复制链接]
跳转到指定楼层
1#
发表于 2007-2-8 20:42:16 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
请各位指点:

今日下载了微软的CHSsp1opk.iso,把它当作Windows PE使用了。

原本启动的外壳是个命令行窗口,我把它改成了NU2MENU.EXE。在菜单里加入了最基本的工具,其中有“激活USB设备”和“Total Cammand"。可是激活了USB设备, Total Cammand中还是不见U盘。其中HWPNP.EXE和HWPNPDLL.DLL是从深山红叶工具盘中移过来的,包括它的命令也一模一样,未改半字。但是在深山红叶工具盘中激活了USB设备后,Total Cammand中能使用U盘。问题处在哪儿?

在微软CHSsp1opk(Windows PE)中加入哪些东西能激活PPPoe服务和宽带连接?我试着从深山红叶工具盘中把相应的程序文件移植过来,但未能激活,可能有些必要的程序文件没移过来。

在微软CHSsp1opk(Windows PE)中,哪些字体文件可以删除?怎样增添自己的字体文件?

在微软CHSsp1opk(Windows PE)中,哪些无关紧要的文件可以删除?

怎样修改微软CHSsp1opk(Windows PE)中的注册表并存盘?在Windows PE中,虽然能修改它本身的注册表,但不能存盘。

虽然本论坛有许多高手制成的非常优秀的Windows PE,拿来不做任何修改就可以用了,但是我想通过自己动手来体验一下其间的辛苦。我想打造一个具有最少功能的Windows PE:一. 有资源管理器,资源管理器中能见U盘  二. 能用宽带上网  三. 没有任何个人化标记
2#
发表于 2007-2-8 21:43:00 | 只看该作者
好像论坛上大部分pe是基于bartpe的,微软的pe有很多限制。
回复

使用道具 举报

3#
发表于 2007-2-9 09:08:12 | 只看该作者
减小 Windows PE 的大小Windows PE 的非自定义版本的大小约为 160 MB。通过删除非必需的文件,可以将 Windows PE 的 32 位版本减少为一个 86 MB 的磁盘映像。

本地化的 Windows PE 版本根据语言的不同,其大小的范围在 300-370 MB 之间。

要点

从 Windows PE 中删除文件可能会导致您自定义的应用程序出现故障。使用 \Winpe 文件夹中的 Depend 工具来确定应用程序的 DLL 依存关系。
减小 Windows PE 的大小
可以从 Windows PE 映像中删除的文件伴随其描述一同列于 \Samples 文件夹的 Xpsp2-removelist.txt 和 Serversp1-removelist.txt 中。将 .txt 文件与 Windows PE 映像对应的 Windows 版本进行匹配。如果删除所有这些文件,可以将 Windows PE 的 32 位版本从大约 160 MB 减少为一个 86 MB 的磁盘映像。

可以将 Xpsp2-removelist.txt 或 Serversp1-removelist.txt 合并到一个脚本或 .cmd 文件中以自动删除这些文件。下面是一个使用 Serversp1-removelist.txt 的 .cmd 文件的代码示例:

REM 根据您的设置修改下列环境变量:
SET WinPE=c:\Winpe
SET Arch=I386
SET RemoveList=c:\serversp1-removelist.txt

cd /d %WinPE%\%Arch%
for /f "eol=;" %%i in (%RemoveList%) do del /q %%i

SERVERSP1-REMOVELIST.TXT 的内容

winbom.ini
bootfix.bin
spcmdcon.sys
msagent
help
WinSxS\*gdiplus.dll
WinSxS\*winhttp.dll
Fonts\8514fix.fon
Fonts\8514oem.fon
Fonts\8514sys.fon
Fonts\ahronbd.ttf
Fonts\andlso.ttf
Fonts\angsa.ttf
Fonts\angsab.ttf
Fonts\angsai.ttf
Fonts\angsau.ttf
Fonts\angsaub.ttf
Fonts\angsaui.ttf
Fonts\angsauz.ttf
Fonts\angsaz.ttf
Fonts\app850.fon
Fonts\arialbd.ttf
Fonts\arialbi.ttf
Fonts\ariali.ttf
Fonts\ariblk.ttf
Fonts\artrbdo.ttf
Fonts\artro.ttf
Fonts\browa.ttf
Fonts\browab.ttf
Fonts\browai.ttf
Fonts\browau.ttf
Fonts\browaub.ttf
Fonts\browaui.ttf
Fonts\browauz.ttf
Fonts\browaz.ttf
Fonts\cga40850.fon
Fonts\cga40woa.fon
Fonts\cga80850.fon
Fonts\cga80woa.fon
Fonts\comic.ttf
Fonts\comicbd.ttf
Fonts\cordia.ttf
Fonts\cordiab.ttf
Fonts\cordiai.ttf
Fonts\cordiau.ttf
Fonts\cordiaub.ttf
Fonts\cordiaui.ttf
Fonts\cordiauz.ttf
Fonts\cordiaz.ttf
Fonts\cour.ttf
Fonts\courbd.ttf
Fonts\courbi.ttf
Fonts\coure.fon
Fonts\courf.fon
Fonts\couri.ttf
Fonts\david.ttf
Fonts\davidbd.ttf
Fonts\davidtr.ttf
Fonts\dosapp.fon
Fonts\ega40850.fon
Fonts\ega40woa.fon
Fonts\ega80850.fon
Fonts\ega80woa.fon
Fonts\estre.ttf
Fonts\framd.ttf
Fonts\framdit.ttf
Fonts\frank.ttf
Fonts\gautami.ttf
Fonts\georgia.ttf
Fonts\georgiab.ttf
Fonts\georgiai.ttf
Fonts\georgiaz.ttf
Fonts\impact.ttf
Fonts\l_10646.ttf
Fonts\latha.ttf
Fonts\lucon.ttf
Fonts\lvnm.ttf
Fonts\lvnmbd.ttf
Fonts\mangal.ttf
Fonts\micross.ttf
Fonts\modern.fon
Fonts\mriam.ttf
Fonts\mriamc.ttf
Fonts\mriamfx.ttf
Fonts\mriamtr.ttf
Fonts\mvboli.ttf
Fonts\nrkis.ttf
Fonts\pala.ttf
Fonts\palab.ttf
Fonts\palabi.ttf
Fonts\palai.ttf
Fonts\raavi.ttf
Fonts\rod.ttf
Fonts\rodtr.ttf
Fonts\roman.fon
Fonts\script.fon
Fonts\serife.fon
Fonts\seriff.fon
Fonts\shruti.ttf
Fonts\simpbdo.ttf
Fonts\simpfxo.ttf
Fonts\simpo.ttf
Fonts\smalle.fon
Fonts\smallf.fon
Fonts\sserife.fon
Fonts\sseriff.fon
Fonts\sylfaen.ttf
Fonts\symbol.ttf
Fonts\tahoma.ttf
Fonts\tahomabd.ttf
Fonts\times.ttf
Fonts\timesbd.ttf
Fonts\timesbi.ttf
Fonts\timesi.ttf
Fonts\tradbdo.ttf
Fonts\trado.ttf
Fonts\trebuc.ttf
Fonts\trebucbd.ttf
Fonts\trebucbi.ttf
Fonts\trebucit.ttf
Fonts\tunga.ttf
Fonts\upcdb.ttf
Fonts\upcdbi.ttf
Fonts\upcdi.ttf
Fonts\upcdl.ttf
Fonts\upceb.ttf
Fonts\upcebi.ttf
Fonts\upcei.ttf
Fonts\upcel.ttf
Fonts\upcfb.ttf
Fonts\upcfbi.ttf
Fonts\upcfi.ttf
Fonts\upcfl.ttf
Fonts\upcib.ttf
Fonts\upcibi.ttf
Fonts\upcii.ttf
Fonts\upcil.ttf
Fonts\upcjb.ttf
Fonts\upcjbi.ttf
Fonts\upcji.ttf
Fonts\upcjl.ttf
Fonts\upckb.ttf
Fonts\upckbi.ttf
Fonts\upcki.ttf
Fonts\upckl.ttf
Fonts\upclb.ttf
Fonts\upclbi.ttf
Fonts\upcli.ttf
Fonts\upcll.ttf
Fonts\verdana.ttf
Fonts\verdanab.ttf
Fonts\verdanai.ttf
Fonts\verdanaz.ttf
Fonts\vga850.fon
Fonts\vgafix.fon
Fonts\vgaoem.fon
Fonts\vgasys.fon
Fonts\webdings.ttf
Fonts\wingding.ttf
inf\net1394.inf
inf\net21x4.inf
inf\net3c556.inf
inf\net3c985.inf
inf\net5515n.inf
inf\net557.inf
inf\net575nt.inf
inf\net650d.inf
inf\net656c5.inf
inf\net656n5.inf
inf\net713.inf
inf\net83820.inf
inf\netali.inf
inf\netamd2.inf
inf\netan983.inf
inf\netana.inf
inf\netb57xp.inf
inf\netbcm4e.inf
inf\netbrdgm.inf
inf\netcb102.inf
inf\netcbe.inf
inf\netce3.inf
inf\netcem28.inf
inf\netcem33.inf
inf\netcem56.inf
inf\netclass.inf
inf\netcpqc.inf
inf\netcpqg.inf
inf\netcpqi.inf
inf\netcpqmt.inf
inf\netdefxa.inf
inf\netdf650.inf
inf\netdgdxb.inf
inf\netdm.inf
inf\nete1000.inf
inf\netel90a.inf
inf\netel90b.inf
inf\netel980.inf
inf\netel99x.inf
inf\netepvcm.inf
inf\netf56n5.inf
inf\netfa410.inf
inf\netfore.inf
inf\netforeh.inf
inf\netibm.inf
inf\netibm2.inf
inf\netlanem.inf
inf\netlm.inf
inf\netlm56.inf
inf\netloop.inf
inf\netmadge.inf
inf\netmhzn5.inf
inf\netnovel.inf
inf\netosi2c.inf
inf\netosi5.inf
inf\netpc100.inf
inf\netprism.inf
inf\netpsa.inf
inf\netrasa.inf
inf\netrndis.inf
inf\netrtpnt.inf
inf\netrtsnt.inf
inf\netrtxp.inf
inf\netsis.inf
inf\netsk98.inf
inf\netsk_fp.inf
inf\netsnip.inf
inf\nettb155.inf
inf\nettiger.inf
inf\nettun.inf
inf\netvt86.inf
inf\netw840.inf
inf\netwlan.inf
inf\netwlbsm.inf
inf\netwv48.inf
inf\netx500.inf
inf\netx56n5.inf
system32\c218tnt.cod
system32\c320tnt.cod
system32\ditrace.exe
system32\drivers\adptsf50.sys
system32\drivers\ali5261.sys
system32\drivers\an983.sys
system32\drivers\atmuni.sys
system32\drivers\b1.t4
system32\drivers\b1tr6.t4
system32\drivers\b1usa.t4
system32\drivers\b57xp32.sys
system32\drivers\bcm4e5.sys
system32\drivers\bioprime.bin
system32\drivers\cb102.sys
system32\drivers\cben5.sys
system32\drivers\ce3n5.sys
system32\drivers\cem28n5.sys
system32\drivers\cem33n5.sys
system32\drivers\cem56n5.sys
system32\drivers\cnxt1803.sys
system32\drivers\cpqtrnd5.sys
system32\drivers\dc21x4.sys
system32\drivers\defpa.sys
system32\drivers\dfe650.sys
system32\drivers\dfe650d.sys
system32\drivers\digirlpt.sys
system32\drivers\dm9pci5.sys
system32\drivers\dp83820.sys
system32\drivers\dspdload.bin
system32\drivers\dspdqsig.bin
system32\drivers\e1000325.sys
system32\drivers\e100b325.sys
system32\drivers\el556nd5.sys
system32\drivers\el575nd5.sys
system32\drivers\el656cd5.sys
system32\drivers\el656ct5.sys
system32\drivers\el656nd5.sys
system32\drivers\el656se5.sys
system32\drivers\el90xbc5.sys
system32\drivers\el90xnd5.sys
system32\drivers\el985n51.sys
system32\drivers\el98xn5.sys
system32\drivers\el99xn51.sys
system32\drivers\el99xrun.out
system32\drivers\emu10k1b.sys
system32\drivers\fa410nd5.sys
system32\drivers\fetnd5.sys
system32\drivers\forehe.sys
system32\drivers\ibmtok.sys
system32\drivers\ibmtrp.sys
system32\drivers\ip5515.sys
system32\drivers\islp2nds.sys
system32\drivers\lmndis3.sys
system32\drivers\loop.sys
system32\drivers\mdgndis5.sys
system32\drivers\mxnic.sys
system32\drivers\n1000325.sys
system32\drivers\n100325.sys
system32\drivers\ne2000.sys
system32\drivers\netwlan5.img
system32\drivers\netwlan5.sys
system32\drivers\otc06x5.sys
system32\drivers\otceth5.sys
system32\drivers\pc100nds.sys
system32\drivers\pca200e.bin
system32\drivers\pca200e.sys
system32\drivers\pcibios.bin
system32\drivers\pcifep.bin
system32\drivers\pcmlm56.sys
system32\drivers\pcntpci5.sys
system32\drivers\pcx500.sys
system32\drivers\rt8169xp.sys
system32\drivers\rtl8029.sys
system32\drivers\rtl8139.sys
system32\drivers\sdp0.2q0
system32\drivers\sdp1.2q0
system32\drivers\sisnic.sys
system32\drivers\sk98xwin.sys
system32\drivers\skfpwin.sys
system32\drivers\sonydcam.sys
system32\drivers\stlnata.sys
system32\drivers\tbatm155.sys
system32\drivers\tjisdn.sys
system32\drivers\usbcamd.sys
system32\drivers\usbcamd2.sys
system32\drivers\w840nd.sys
system32\drivers\wlluc48.sys
system32\drivers\xem336n5.sys
system32\eqndiag.exe
system32\eqnlogr.exe
system32\eqnloop.exe
system32\net.hlp
system32\odbccp32.cpl
system32\peer.exe
system32\winpe.bmp
system32\xlog.exe
system32\alrsvc.dll
system32\avmc20.dll
system32\avmcapi.dll
system32\avmenum.dll
system32\azroles.dll
system32\azroleui.dll
system32\browser.dll
system32\certcli.dll
system32\cnbjmon.dll
system32\console.dll
system32\cryptnet.dll
system32\ctmasetp.dll
system32\ctmrclas.dll
system32\dbgeng.dll
system32\dbghelp.dll
system32\dciman32.dll
system32\ddraw.dll
system32\devmgr.dll
system32\dgclass.dll
system32\dgnet.dll
system32\dgrpsetu.dll
system32\diapi2.dll
system32\diapi232.dll
system32\diapi2nt.dll
system32\disrvpp.dll
system32\disrvsu.dll
system32\dnsrslvr.dll
system32\duser.dll
system32\eqnclass.dll
system32\extmgr.dll
system32\fltlib.dll
system32\framebuf.dll
system32\gptext.dll
system32\hccoin.dll
system32\icmp.dll
system32\imgutil.dll
system32\initpki.dll
system32\io8ports.dll
system32\iologmsg.dll
system32\kbdbe.dll
system32\kbdbr.dll
system32\kbdca.dll
system32\kbdda.dll
system32\kbddv.dll
system32\kbdes.dll
system32\kbdfc.dll
system32\kbdfi.dll
system32\kbdfr.dll
system32\kbdgae.dll
system32\kbdgr.dll
system32\kbdgr1.dll
system32\kbdic.dll
system32\kbdir.dll
system32\kbdit.dll
system32\kbdit142.dll
system32\kbdla.dll
system32\kbdmac.dll
system32\kbdne.dll
system32\kbdnec.dll
system32\kbdno.dll
system32\kbdpo.dll
system32\kbdsf.dll
system32\kbdsg.dll
system32\kbdsp.dll
system32\kbdsw.dll
system32\kbduk.dll
system32\kbdusl.dll
system32\kbdusr.dll
system32\kbdusx.dll
system32\linkinfo.dll
system32\loadperf.dll
system32\localspl.dll
system32\lz32.dll
system32\mfc42.dll
system32\mobsync.dll
system32\mprui.dll
system32\msafd.dll
system32\mscat32.dll
system32\mscms.dll
system32\msgsvc.dll
system32\msimg32.dll
system32\msjet40.dll
system32\msls31.dll
system32\mssign32.dll
system32\mssip32.dll
system32\msvcirt.dll
system32\mswstr10.dll
system32\netevent.dll
system32\netui2.dll
system32\ntdsa.dll
system32\ntdsatq.dll
system32\ntdsetup.dll
system32\ntdskcc.dll
system32\nwapi32.dll
system32\nwcfg.dll
system32\nwevent.dll
system32\nwprovau.dll
system32\nwwks.dll
system32\oakley.dll
system32\odbc16gt.dll
system32\odbc32.dll
system32\odbc32gt.dll
system32\odbcbcp.dll
system32\odbcconf.dll
system32\odbccp32.dll
system32\odbccr32.dll
system32\odbccu32.dll
system32\odbcint.dll
system32\odbcji32.dll
system32\odbcjt32.dll
system32\odbcp32r.dll
system32\odbctrac.dll
system32\oleacc.dll
system32\oleaccrc.dll
system32\olecli32.dll
system32\olecnv32.dll
system32\oledlg.dll
system32\olepro32.dll
system32\olesvr.dll
system32\olesvr32.dll
system32\olethk32.dll
system32\perfctrs.dll
system32\perfnw.dll
system32\pstorec.dll
system32\query.dll
system32\rasdlg.dll
system32\rnr20.dll
system32\scecli.dll
system32\security.dll
system32\shdocvw.dll
system32\snmpapi.dll
system32\softpub.dll
system32\spdports.dll
system32\spoolss.dll
system32\spxcoins.dll
system32\spxports.dll
system32\stlnprop.dll
system32\sxports.dll
system32\tsddd.dll
system32\ureg.dll
system32\url.dll
system32\urlmon.dll
system32\utildll.dll
system32\w32topl.dll
system32\wdigest.dll
system32\win32spl.dll
system32\winrnr.dll
system32\winscard.dll
system32\wlanmon.dll
system32\wlsnp.dll
system32\wlstore.dll
system32\wshisn.dll
system32\wshqos.dll
system32\xmlprov.dll
system32\xmlprovi.dll
回复

使用道具 举报

4#
发表于 2007-2-9 09:14:24 | 只看该作者
在 Windows PE 中进行永久性注册表更改对 Windows PE 注册表的任何更改都将在重新启动计算机后丢失,这使得向 Windows PE 添加需要进行注册表更改的驱动程序比较困难。但是,您可以在技术人员计算机或远程安装服务 (RIS) 服务器上对可自定义的 Windows PE 映像的 Windows PE 注册表进行永久性更改。

对 Windows PE 进行永久性注册表更改
要加载 Windows PE SYSTEM 和 SOFTWARE 配置单元,请在技术人员计算机或 RIS 服务器上使用以下命令,将 winpe\platform 替换为指向 Windows PE 映像的 platform 目录的路径,其中,platform 代表 i386、amd64 或 ia64:
reg load HKLM\WinPE-SYSTEM <winpe>\<platform>\system32\setupreg.hiv
reg load HKLM\WinPE-SOFTWARE <winpe>\<platform>\system32\config\software
例如,请键入:

reg load HKLM\WinPE-SYSTEM c:\winpe\i386\system32\setupreg.hiv

reg load HKLM\WinPE-SOFTWARE c:\winpe\i386\system32\config\software

使用 Reg.exe 或 Regedit.exe 对 HKLM\WinPE-SYSTEM 或 HKLM\WinPE-SOFTWARE 注册表项进行适当的更改。例如,请键入:
reg unload HKLM\WinPE-SYSTEM

reg unload HKLM\WinPE-SOFTWARE
回复

使用道具 举报

5#
发表于 2007-2-9 09:17:07 | 只看该作者
可以启用微软PE自带的PNP支持,在Mkimg后面跟随参数/PNP

/PNP 添加即插即用设备驱动程序检测功能。有关详细信息,请参阅将外设驱动程序添加到 Windows PE 映像。

这些内容在微软PE的帮助文件中都有。
回复

使用道具 举报

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

本版积分规则

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

闽公网安备 35020302032614号

GMT+8, 2024-9-23 01:34

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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