|
我用上一个版本没有问题的,现在我把这个批处理贴出来,帮看看
PECMD TEXT 正在启用网络支持. 请稍候 ......#0xFF,L400
cd /d "%~dp0"
Set RP=RP
For %%I In (C D E F G H I J K L M N O P Q R S T U V W X Y Z) Do If Exist %%I:\BOOT\DHCP\DHCP.INI Set RP=%%I:
If %RP%==RP GOTO TCL333
start /b pecmd.exe load %RP%\BOOT\DHCP\DHCP.INI
:TCL333
7z.exe x IE6.7z -y -aos -o"%ProgramFiles%"
REM IF NOT EXIST %WinDir%\System32\PENetCfg.exe ver|find /i " 5.2">nul &&7z.exe x NET_PART03.7z -y -aos -o"%WinDir%"
REM IF NOT EXIST %WinDir%\System32\PENetCfg.exe ver|find /i " 5.1">nul &&7z.exe x NET_PART.7z -y -aos -o"%WinDir%"
7z.exe x NET_PART.7z -y -aos -o"%WinDir%"
FOR /F %%i IN ('Dir /B /A-D ^".\DRIVERS_NET*.CAB^"') DO PECMD.EXE DEVI ".\%%i"
START /Wait InfCacheBuild.exe %SystemRoot%
PECMD.EXE UPNP -pnp
PECMD.EXE PUSHD "%ProgramFiles%\INTERNET EXPLORER"
PECMD.EXE EXEC !CMD.EXE /C Call "%ProgramFiles%\INTERNET EXPLORER\INSIE6.CMD"
PECMD.EXE EXEC !CMD.EXE /C Call "%ProgramFiles%\INTERNET EXPLORER\URL.CMD"
NET START EVENTLOG
ECHO 安装网络设备...
PECMD.EXE UPNP -pnp -cn WinPE -wg WORKGROUP
REGSVR32 /S NETCFGX.DLL
REGSVR32 /S NETSHELL.DLL
REGSVR32 /S NETMAN.DLL
PECMD.EXE UPNP -c p -i MS_TCPIP
PECMD.EXE UPNP -c c -i MS_MSCLIENT
PECMD.EXE UPNP -c s -i MS_SERVER
PECMD.EXE UPNP -c p -i MS_L2TP
PECMD.EXE UPNP -c p -i MS_PPTP
PECMD.EXE UPNP -c p -i MS_PPPOE
PECMD.EXE UPNP -c p -i MS_WANARP
PECMD.EXE UPNP -c p -i MS_NDISWAN
PECMD.EXE UPNP -c s -i MS_RASCLI
PECMD.EXE UPNP -c s -i MS_RASSRV
PECMD.EXE UPNP -c s -i MS_RASMAN
PECMD.EXE UPNP -c s -i MS_STEELHEAD
PECMD.EXE UPNP -v -c p -i MS_NDISUIO
PECMD.EXE UPNP -v -c s -i MS_WZCSVC
NET START TCPIP
NET START DHCP
NET START NLA
::NET START LMHOSTS
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
NET START SERVER
NET START NETMAN
NET START TAPISRV
NET START RASMAN
NET START WZCSVC
DEL /Q %SystemRoot%\INF\*.PNF %SystemRoot%\INF\INFCACHE.1
PECMD FILE %USERPROFILE%\桌面\启用网络.LNK
REM PECMD FILE %USERPROFILE%\桌面\加载驱动程序.LNK
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 /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
NET USER Administrator WINPE
NET USER Guest /active:yes
NET USER Guest /passwordreq:no
PECMD.EXE Wait 600
START /Wait PENETCFG.EXE
PECMD.EXE Wait 600
REM PECMD.EXE LINK !%USERPROFILE%\桌面\PENETCFG网络设置,%SystemRoot%\System32\PENETCFG.exe
PECMD.EXE LINK %USERPROFILE%\桌面\ADSL连接,%SystemRoot%\SYSTEM32\RASPHONE.PBK
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
REM PECMD.EXE LINK %USERPROFILE%\「开始」菜单\程序\网络工具\设置共享文件夹,%SystemRoot%\SYSTEM32\FSMGMT.MSC
PECMD.EXE Wait 600
PECMD.EXE HOME www.kuku123.com
REM PECMD FIND Explorer.EXE,KILL EXPLORER.EXE
CALL THUNDER.CMD
PECMD TEXT
EXIT
[ 本帖最后由 TCLSHX 于 2010-10-10 20:48 编辑 ] |
|