|
原帖由 yh_tl 于 2009-11-10 12:49 发表
:),我看错了,H大用的是虚拟机,我还以为是U盘启动呢
难道,NF3,845G有这么慢吗?
为了在相似的硬件环境中测试因此选用了虚拟机。实机肯定要快,测试了一些较新的机器,驱动有线也是几秒钟。现在只把PPPOE单独需要的文件另行打包,其他的就没有再细分了。以下的是我的ini文件:
_SUB PPPOE
IFEX %SystemRoot%\SYSTEM32\RASPHONE.PBK,!EXEC [email==@7z.exe]=@7z.exe[/email] x "PPPOE%BootOS%.7z" -y -aos -o"%SystemRoot%\SYSTEM32"
UPNP -c p -i MS_L2TP
UPNP -c p -i MS_PPTP
UPNP -c p -i MS_PPPOE
EXEC $%SystemRoot%\SYSTEM32\RASPHONE.PBK
UPNP -c p -i MS_WANARP
UPNP -c p -i MS_NDISWAN
UPNP -c s -i MS_RASCLI
UPNP -c s -i MS_RASSRV
UPNP -c s -i MS_RASMAN
UPNP -c s -i MS_STEELHEAD
SERV TAPISRV
SERV RASMAN
SERV NETMAN
LINK %Desktop%\宽带连接,%SystemRoot%\SYSTEM32\RASPHONE.PBK
LINK %StartMenu%\程序\网络设置\宽带连接,%SystemRoot%\SYSTEM32\RASPHONE.PBK
LINK !%StartMenu%\程序\网络设置\挂断ADSL,%SystemRoot%\System32\HANGUP.CMD,,HANGUP.ICO
FILE "%StartMenu%\程序\网络设置\启用宽带连接.LNK"
_END
_SUB WLAN
UPNP -v -c p -i MS_NDISUIO
UPNP -v -c s -i MS_WZCSVC
SERV EVENTLOG
SERV WZCSVC
FILE %StartMenu%\程序\网络设置\启用无线网络.LNK
_END
_SUB BASIC_SET
REGI HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu\{208D2C60-3AEA-1069-A2D7-08002B30309D}=#0
REGI HKLM\SYSTEM\CurrentControlSet\Services\Lanmanserver\parameters\AutoShareWks=#0
REGI HKLM\SYSTEM\CurrentControlSet\Services\Lanmanserver\parameters\AutoShareServer=#0
REGI HKLM\SYSTEM\CurrentControlSet\Services\lanmanworkstation\parameters\AutoShareWks=#0
REGI HKLM\SYSTEM\CurrentControlSet\Services\lanmanworkstation\parameters\AutoShareServer=#0
EXEC !NET USER Administrator hhh333
EXEC !NET USER Guest /active:yes
EXEC !NET USER Guest /passwordreq:no
IFEX %IniDir%\IPSET.INI,TEAM TEXT 正在根据%IniDir%\ipset.ini的值设置网卡IP……|EXEC @%CurDir%\SETIP.CMD !EXEC PENETCFG.EXE
FILE "%Desktop%\启用网络支持.LNK"
LINK %Desktop%\PENETCFG 网络设置,%SystemRoot%\SYSTEM32\PENETCFG.EXE
LINK %StartMenu%\程序\网络设置\PENETCFG 网络设置,%SystemRoot%\SYSTEM32\PENETCFG.EXE
`LINK !%StartMenu%\程序\网络设置\启用基本网络,%CurDir%\START_NET.CMD,,%CurDir%\NET_PART.ICO
LINK !%StartMenu%\程序\网络设置\启用宽带连接,%CurDir%\START_NET.CMD,PPPOE,%CurDir%\PPPOE.ICO
LINK !%StartMenu%\程序\网络设置\启用无线网络,%CurDir%\START_NET.CMD,WLAN,XPSP2RES.dll#19
LINK !%StartMenu%\程序\网络设置\安装 HaneWin 网启服务,%CurDir%\START_NET.CMD,DHCP,%CurDir%\dhcp.ico
LINK !%StartMenu%\程序\网络设置\安装 TFTPD32 网启服务,%IniDir%\..\TFTP\settftp.cmd,,%IniDir%\..\TFTP\tftpd32.exe
LINK !%StartMenu%\程序\网络设置\安装 iSCSI Initiator,%CurDir%\iSCSI_Initiator.exe
FILE %SystemRoot%\INF\*.PNF
_END
_SUB UNZIP_DRV
EXEC [email==@7z.exe]=@7z.exe[/email] x "NET_PART%BootOS%.7z" -y -aos -o"%WinDir%"
_END
_SUB BASIC_DRV
IFEX %SystemRoot%\SYSTEM32\PENETCFG.EXE,!CALL UNZIP_DRV
FIND $%CM_NET%=2,DEVI DRIVERS_NET_WIRELESS.CAB !DEVI DRIVERS_NET.CAB
EXEC %CurDir%\..\InfCacheBuild.exe %SystemRoot%
UPNP -pnp -cn WINPE -wg WORKGROUP
UPNP -c p -i MS_TCPIP
UPNP -c c -i MS_MSCLIENT
UPNP -c s -i MS_SERVER
SERV TCPIP
SERV DHCP
SERV NLA
`SERV LMHOSTS
`SERV SERVER
FIND $%CM_NET%=2,CALL WLAN
SERV lanmanserver
FIND $%CM_NET%<2,CALL BASIC_SET
_END
TEXT 正在驱动网卡(可能要数分钟)……
FIND $%BootOS%=03,!ENVI $BootOS=
IFEX %TEMP%\WLAN,ENVI $CM_NET=2
IFEX %TEMP%\PPPOE,CALL PPPOE!CALL BASIC_DRV
TEXT
配套的CMD文件:
@ECHO OFF
PUSHD %~dp0
IF "%1"=="DHCP" GOTO DHCP
IF NOT "%1"=="" MD "%TEMP%\%1"
PECMD.EXE LOAD START_NET.INI
IF NOT "%1"=="" RD "%TEMP%\%1"
GOTO END
:DHCP
REM 设置HAneWin DHCP-----------------
IF NOT EXIST %IniDrv%\pxelinux.0 GOTO END
IF NOT EXIST %WinDir%\System32\dhcpsrv.cpl 7z.exe x DHCP.7z -y -aos -o"%WinDir%\System32"
setlocal
for /f "usebackq tokens=2 delims=[]" %%i in (`ping /n 1 %Computername%`) do set myip=%%i
for /f "tokens=1-3,4 delims=." %%i in ("%myip%") do set mynet=%%i.%%j.%%k
>%WinDir%\System32\DHCPsrv.ini echo.[License]
>>%WinDir%\System32\DHCPsrv.ini echo.Key=BBLZ26803UBBCAT9
>>%WinDir%\System32\DHCPsrv.ini echo.Name=Free User
>>%WinDir%\System32\DHCPsrv.ini echo.[DHCPsrv]
>>%WinDir%\System32\DHCPsrv.ini echo.Profile0=本地连接
>>%WinDir%\System32\DHCPsrv.ini echo.Include=%myip%
>>%WinDir%\System32\DHCPsrv.ini echo.TFTPDirectory=%IniDrv%\
>>%WinDir%\System32\DHCPsrv.ini echo.Multicast=0
>>%WinDir%\System32\DHCPsrv.ini echo.TestIP=1
>>%WinDir%\System32\DHCPsrv.ini echo.TFTPEnable=1
>>%WinDir%\System32\DHCPsrv.ini echo.TFTPMode=0
>>%WinDir%\System32\DHCPsrv.ini echo.Log=0
>>%WinDir%\System32\DHCPsrv.ini echo.[本地连接]
>>%WinDir%\System32\DHCPsrv.ini echo.SubnetMask=255.255.255.0
>>%WinDir%\System32\DHCPsrv.ini echo.BaseIP=%mynet%.100
>>%WinDir%\System32\DHCPsrv.ini echo.Range=101
>>%WinDir%\System32\DHCPsrv.ini echo.NextIP=%myip%
>>%WinDir%\System32\DHCPsrv.ini echo.BootFile=pxelinux.0
rem >>%WinDir%\System32\DHCPsrv.ini echo.RootPath=%computername%
>>%WinDir%\System32\DHCPsrv.ini echo.RootPath=iscsi:%myip%::3268::H3PE
>>%WinDir%\System32\DHCPsrv.ini echo.UseOpt=1
>>%WinDir%\System32\DHCPsrv.ini echo.DNSUpdate=0
>>%WinDir%\System32\DHCPsrv.ini echo.InterfaceIP=%myip%
dhcp4nt.exe -install
endlocal
PECMD LINK %USERPROFILE%\「开始」菜单\程序\HaneWin 网启工具\HaneWin 网启服务端,dhcpsrv.cpl,,dhcp.ico
PECMD LINK %USERPROFILE%\「开始」菜单\程序\HaneWin 网启工具\中止 HaneWin 网启服务,dhcp4nt.exe,-remove,shell32.dll#95
PECMD LINK %USERPROFILE%\「开始」菜单\程序\HaneWin 网启工具\开启 HaneWin 网启服务,dhcp4nt.exe,-install,shell32.dll#98
PECMD LINK %USERPROFILE%\桌面\HaneWin 网启服务端,dhcpsrv.cpl,,dhcp.ico
DEL /Q "%USERPROFILE%\「开始」菜单\程序\网络设置\安装 HaneWin 网启服务.LNK"
net share PEROOT /d
net share PEROOT=%IniDrv%\ /unlimited
:END
EXIT
[ 本帖最后由 hhh333 于 2009-11-10 13:36 编辑 ] |
|