|
随便下一pe,在外置里有网络支持文件及启动批处理,自己研究一下。(不同的pe可能稍有不同)
这是一个的文件列表,不包括驱动
INF\NDISUIO.INF
INF\NETMSCLI.INF
INF\NETNB.INF
INF\NETRASA.INF
INF\NETRASS.INF
INF\NETRAST.INF
INF\NETRTSNT.INF
INF\NETSERV.INF
INF\NETTCPIP.INF
INF\NETWZC.INF
INF\STREAMIP.INF
System32\ACTIVEDS.DLL
System32\ADSLDPC.DLL
System32\BROWSER.DLL
System32\CLUSAPI.DLL
System32\CSCDLL.DLL
System32\DHCPCSVC.DLL
System32\DOT3API.DLL
System32\DOT3CFG.DLL
System32\DOT3DLG.DLL
System32\DOT3MSM.DLL
System32\DOT3SVC.DLL
System32\DOT3UI.DLL
System32\EAPOLQEC.DLL
System32\EAPP3HST.DLL
System32\EAPPCFG.DLL
System32\EAPPGNUI.DLL
System32\EAPPHOST.DLL
System32\EAPPPRXY.DLL
System32\EAPQEC.DLL
System32\EAPSVC.DLL
System32\ESENT.DLL
System32\EVENTLOG.DLL
System32\HANGUP.CMD
System32\HANGUP.ICO
System32\HNETCFG.DLL
System32\HOSTNAME.EXE
System32\ICMP.DLL
System32\IPCONFIG.EXE
System32\IPSECSNP.DLL
System32\IPSECSVC.DLL
System32\KMDDSP.TSP
System32\LMHSVC.DLL
System32\MPRAPI.DLL
System32\MPRMSG.DLL
System32\MSWSOCK.DLL
System32\NET.EXE
System32\NET1.EXE
System32\NETCFG.EXE
System32\NETCFGX.DLL
System32\NETEVENT.DLL
System32\NETMAN.DLL
System32\NETMSG.DLL
System32\NETPLWIZ.DLL
System32\NETSHELL.DLL
System32\NTLANMAN.DLL
System32\NTLSAPI.DLL
System32\ONEX.DLL
System32\ONEX_V1.XSD
System32\PENETCFG.EXE
System32\PING.EXE
System32\POLSTORE.DLL
System32\PSTORSVC.DLL
System32\QUTIL.DLL
System32\RASADHLP.DLL
System32\RASAPI32.DLL
System32\RASAUTO.DLL
System32\RASCHAP.DLL
System32\RASDIAL.EXE
System32\RASDLG.DLL
System32\RASMAN.DLL
System32\RASMANS.DLL
System32\RASMXS.DLL
System32\RASPHONE.EXE
System32\RASPHONE.PBK
System32\RASPPP.DLL
System32\RASSER.DLL
System32\RASTAPI.DLL
System32\RASTLS.DLL
System32\ROUTE.EXE
System32\RTUTILS.DLL
System32\SECURITY.DLL
System32\SENS.DLL
System32\SHAREPWD.CMD
System32\SRVSVC.DLL
System32\TAPI32.DLL
System32\TAPISRV.DLL
System32\TELNET.EXE
System32\URL.DLL
System32\WINHTTP.DLL
System32\WINIPSEC.DLL
System32\WINSCARD.DLL
System32\WKSSVC.DLL
System32\WSHNETBS.DLL
System32\WSHTCPIP.DLL
System32\WZCDLG.DLL
System32\WZCSAPI.DLL
System32\WZCSVC.DLL
System32\Drivers\AFD.SYS
System32\Drivers\ASYNCMAC.SYS
System32\Drivers\ATMARPC.SYS
System32\Drivers\IPINIP.SYS
System32\Drivers\IPSEC.SYS
System32\Drivers\MRXSMB.SYS
System32\Drivers\mrxsmb_xp.sys
System32\Drivers\NDISIP.SYS
System32\Drivers\NDISTAPI.SYS
System32\Drivers\NDISUIO.SYS
System32\Drivers\NDPROXY.SYS
System32\Drivers\NETBIOS.SYS
System32\Drivers\NETBT.SYS
System32\Drivers\PTILINK.SYS
System32\Drivers\RASACD.SYS
System32\Drivers\RASL2TP.SYS
System32\Drivers\RASPPPOE.SYS
System32\Drivers\RASPPTP.SYS
System32\Drivers\RASPTI.SYS
System32\Drivers\RNDISMP.SYS
System32\Drivers\RTL8139.SYS
System32\Drivers\SRV.SYS
System32\Drivers\STREAMIP.SYS
System32\Drivers\TCPIP.SYS
System32\Drivers\TDI.SYS
System32\Drivers\WANARP.SYS
开启服务批处理
@echo off
set cs=%1
PUSHD %~dp0
echo 启动网络服务安装网络组件
PECMD UPNP -pnp -cn WinPE%RANDOM% -wg WORKGROUP
REGSVR32 /S NETCFGX.DLL
REGSVR32 /S NETSHELL.DLL
REGSVR32 /S NETMAN.DLL
PECMD UPNP -c p -i MS_TCPIP
PECMD UPNP -c c -i MS_MSCLIENT
PECMD UPNP -c s -i MS_SERVER
PECMD UPNP -c p -i MS_L2TP
PECMD UPNP -c p -i MS_PPTP
PECMD UPNP -c p -i MS_PPPOE
PECMD UPNP -c p -i MS_WANARP
PECMD UPNP -c p -i MS_NDISWAN
PECMD UPNP -c s -i MS_RASCLI
PECMD UPNP -c s -i MS_RASSRV
PECMD UPNP -c s -i MS_RASMAN
PECMD UPNP -c s -i MS_STEELHEAD
PECMD UPNP -v -c p -i MS_NDISUIO
PECMD UPNP -v -c s -i MS_WZCSVC
SET K=HKLM\SYSTEM\CurrentControlSet\Services&&SET W=AutoShareServer&&SET S=AutoShareWks
REG ADD %K%\Lanmanserver\parameters /v %S% /t REG_DWORD /d 0 /f
REG ADD %K%\Lanmanserver\parameters /v %W% /t REG_DWORD /d 0 /f
REG ADD %K%\lanmanworkstation\parameters /v %S% /t REG_DWORD /d 0 /f
REG ADD %K%\lanmanworkstation\parameters /v %W% /t REG_DWORD /d 0 /f
REG ADD "HKLM\SOFTWARE\Microsoft\Driver Signing" /f /v "Policy" /t REG_BINARY /d 00
NET START EVENTLOG
NET START TCPIP
NET START DHCP
NET START NLA
NET START LMHOSTS
NET START SERVER
NET START NETMAN
NET START TAPISRV
NET START RASMAN
NET START WZCSVC
PECMD.EXE EXEC @REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /va /f
PECMD.EXE EXEC @REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /va /f
for %%i in (%systemroot%\inf\*.pnf) do del /q %%i
if exist %SystemRoot%\INF\INFCACHE.1 DEL /Q %SystemRoot%\INF\INFCACHE.1
PECMD.EXE LINK !%USERPROFILE%\「开始」菜单\程序\网络\设置\ADSL 宽带连接,%SystemRoot%\SYSTEM32\RASPHONE.PBK
PECMD.EXE LINK !%USERPROFILE%\「开始」菜单\程序\网络\设置\挂断ADSL,%SystemRoot%\System32\HANGUP.CMD,,HANGUP.ICO
PECMD.EXE LINK !%USERPROFILE%\「开始」菜单\程序\网络\设置\PENETCFG网络设置,%SystemRoot%\System32\PENETCFG.exe
PECMD.EXE LINK !%USERPROFILE%\「开始」菜单\程序\网络\设置\设置网络共享密码为123,%SystemRoot%\System32\SHAREPWD.CMD,,SHELL32.DLL#47
if *%cs%* == ** Start PENETCFG.EXE
:显示图标到任务栏
REGSVR32 /S "%windir%\system32\stobject.dll" 1>nul
FOR /F %%i IN ([email=]'@reg[/email] query "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}" /s^|find /i "Connection"') DO >nul REG ADD %%i /v ShowIcon /t REG_DWORD /d 1 /f
EXIT /B |
|