Wireless Zero Configuration plug-in
-
0 0Configuratie Zero WIRELESS pentru BART PE (BART mediu preinstal).
Codul pentru : WZCLITE.INF
WZCLITE.INF
CODE
;; PE Builder v3 plug-in for Wireless Zero Configuration Lite in BartPE
;; Created by WolfWare
;; http://www.g2online.co.uk
;; Email: daw@g2online.co.uk
;; Version 1.1b
[Version]
Signature= "$Windows NT$"
[PEBuilder]
Name="Wireless Zero Configuration Lite"
Enable=1
[WinntDirectories]
a=ProgramsWZCLite,2
z=PROVISIONINGSCHEMAS,0
[Strings]
;; To (optionally) enable local Error Trapping and Event Logging for the
;; services added by this plug-in, set the WZCErrorCtrl flag to numeric 1.
;; Note: To view logged events you will need to include the MMC plug-in.
WZCErrorCtrl="1"
[SourceDisksFiles]
;; 2=system32
;; 4=system32drivers
;; 20=inf
files*.*=a
;; .exe...
sc.exe=2
;; .sys...
ndisuio.sys=4
;; .inf...
ndisuio.inf=20
netmscli.inf=20
netwzc.inf=20
netrass.inf=20
netnb.inf=20
netserv.inf=20
nettcpip.inf=20
;; ras .inf...
switch.inf=7
pad.inf=7
;; Registerable .dll...
clbcatq.dll=2
dssenh.dll=2
msctf.dll=2
msxml3.dll=2
;; General .dll...
advpack.dll=2
comres.dll=2
eventlog.dll=2
kmddsp.tsp=2
msxml3r.dll=2
ntlsapi.dll=2
psbase.dll=2
raschap.dll=2
rasmans.dll=2
rasppp.dll=2
rastapi.dll=2
rastls.dll=2
sens.dll=2
tapisrv.dll=2
;; WZC Templates...
xmlp_bec.xdr=z, BASEEAPCONNECTIONPROPERTIESV1.XDR,0
xmlp_beu.xdr=z, BASEEAPUSERPROPERTIESV1.XDR,0
xmlp_bdg.xdr=z, BRANDING.XDR,0
xmlp_ecp.xdr=z, EAPCONNECTIONPROPERTIESV1.XDR,0
xmlp_ecu.xdr=z, EAPUSERPROPERTIESV1.XDR,0
xmlp_fcw.xdr=z, FLASHCONFIG.XDR,0
xmlp_fcd.xdr=z, FLASHCONFIGDEVICE.XDR,0
xmlp_hlp.xdr=z, HELP.XDR,0
xmlp_loc.xdr=z, LOCATIONS.XDR,0
xmlp_mas.xdr=z, MASTERFILE.XDR,0
xmlp_mcc.xdr=z, MSCHAPV2CONNECTIONPROPERTIESV1.XDR,0
xmlp_mcu.xdr=z, MSCHAPV2USERPROPERTIESV1.XDR,0
xmlp_mpc.xdr=z, MSPEAPCONNECTIONPROPERTIESV1.XDR,0
xmlp_mpu.xdr=z, MSPEAPUSERPROPERTIESV1.XDR,0
xmlp_reg.xdr=z, REGISTER.XDR,0
xmlp_ssd.xdr=z, SSID.XDR,0
xmlp_wp.xdr=z, WIRELESSPROFILE.XDR,0
xmlp_wiz.xdr=z, WIZARD.XDR,0
[Append]
;nu2menu.xml, wzclite_nu2menu.xml
[SetupReg.AddReg]
;; Event Log
0x1,"ControlSet001ServicesEventlog","Description","Log messages issued by Windows-based programs and components."
0x1,"ControlSet001ServicesEventlog","DisplayName","Event Log"
0x4,"ControlSet001ServicesEventlog","ErrorControl",0x0000000%WZCErrorCtrl%
0x1,"ControlSet001ServicesEventlog","Group","Event log"
0x2,"ControlSet001ServicesEventlog","ImagePath","%SystemRoot%system32services.exe"
0x1,"ControlSet001ServicesEventlog","ObjectName","LocalSystem"
0x4,"ControlSet001ServicesEventlog","PlugPlayServiceType",0x00000003
0x4,"ControlSet001ServicesEventlog","Start",0x00000002
0x4,"ControlSet001ServicesEventlog","Type",0x00000020
0x1,"ControlSet001ServicesEventlog","ComputerName","MiniXP"
0x4,"ControlSet001ServicesEventlogApplication","DisplayNameID",0x00000100
0x2,"ControlSet001ServicesEventlogApplication","File","%ramdrv%AppEvent.Evt"
0x4,"ControlSet001ServicesEventlogSystem","DisplayNameID",0x00000102
0x2,"ControlSet001ServicesEventlogSystem","File","%ramdrv%SysEvent.Evt"
;; RASMan
0x4,"ControlSet001ServicesRasMan","Type",0x00000020
0x4,"ControlSet001ServicesRasMan","Start",0x00000003
0x4,"ControlSet001ServicesRasMan","ErrorControl",0x0000000%WZCErrorCtrl%
0x2,"ControlSet001ServicesRasMan","ImagePath","%SystemRoot%system32svchost.exe -k netsvcs"
0x1,"ControlSet001ServicesRasMan","DisplayName","Remote Access Connection Manager"
0x7,"ControlSet001ServicesRasMan","DependOnService","TAPISrv"
0x1,"ControlSet001ServicesRasMan","ObjectName","LocalSystem"
0x1,"ControlSet001ServicesRasMan","Description","Creates a network connection."
0x7,"ControlSet001ServicesRasManParameters","Medias","rastapi"
0x2,"ControlSet001ServicesRasManParameters","ServiceDll","%SystemRoot%System32rasmans.dll"
0x4,"ControlSet001ServicesRasManParameters","IpOutLowWatermark",0x00000001
0x4,"ControlSet001ServicesRasM -
Codul pentru: AUTORUN_WZCLITE.INF
AUTORUN_WZCLITE.INF
CODE
;; PE Builder v3 Autorun plug-in for Wireless Zero Configuration Lite in BartPE
;; Created by WolfWare
;; http://www.g2online.co.uk
;; Email: daw@g2online.co.uk
;; Version 1.1b
[Version]
Signature= "$Windows NT$"
[PEBuilder]
Name="Wireless Zero Configuration Lite (Auto Run)"
Enable=0
[SourceDisksFiles]
filesautorun_wzclite.cmd=2 -
Codul pentru : AUTORUN_WZCLITE.CMD
AUTORUN_WZCLITE.CMD
CODE
@Echo Off
:: ------------------------------------------------------------
:: Script to launch Network and Wireless Configuration services
:: Created by WolfWare
:: http://www.g2online.co.uk
:: Email: daw@g2online.co.uk
:: Version 1.1b
:: ------------------------------------------------------------
Title Starting Network and Wireless Configuration Processes...
For /f "Skip=4 Tokens=3" %%x In ('reg query HKLMSystemControlSet001ServicesEventlog /v ErrorControl') Do If %%x EQU 0x0 GoTo Skip1
For /f "Skip=3 Tokens=4" %%x In ('sc query EventLog') Do If %%x EQU RUNNING GoTo Skip1
Echo Prerequisite service [Event Log] not started. & Echo Please investigate and resolve before running this script. & Echo. & Pause & Exit
:Skip1
Echo.
Echo Registering critical libraries...
start /wait regsvr32 /s msxml3.dll
start /wait regsvr32 /s netcfgx.dll
Echo.
Echo Registering non-critical libraries...
start /wait regsvr32 /s atl.dll
start /wait regsvr32 /s clbcatq.dll
start /wait regsvr32 /s dssenh.dll
start /wait regsvr32 /s msctf.dll
start /wait regsvr32 /s netman.dll
start /wait regsvr32 /s netshell.dll
:: For %%x in (*.dll) Do start /wait regsvr32 /s %%x
Echo.
Echo Initiating network support...
Echo.
Echo Create DHCP, IPSec, LMHosts, NetBT and TCP/IP protocols and services...
bartpe -v -c p -i ms_tcpip
Echo.
Echo Create LanManWks, NetBIOS, NetLogon clients and services...
bartpe -v -c c -i ms_msclient
Echo.
Echo Create NDIS User I/O protocol and service...
bartpe -v -c p -i ms_ndisuio
Echo.
Echo Create Remote Access Connection Mgr service...
bartpe -v -c s -i ms_rasman
Echo.
Echo Create Wireless Zero Configuration service...
bartpe -v -c s -i ms_wzcsvc
Echo.
Echo Load network devices...
bartpe -v -pnp -cn MiniXP -wg WORKGROUP
Echo.
Echo Starting services...
net start tcpip
net start nla
net start netman
net start lmhosts
net start tapisrv
net start rasman
net start ndisuio
net start wzcsvc
net start dhcp
Echo.
net start
Pause
Exit -
Codul pentru : WIFICFG.CMD
WIFICFG.CMD
CODE
@Echo Off
:: ----------------------------------------------------
:: Script to launch Apply/Remove Wireless Configuration
:: Created by WolfWare
:: http://www.g2online.co.uk
:: Email: daw@g2online.co.uk
:: Version 1.1b
:: ----------------------------------------------------
Title Apply/Remove Wireless Configuration...
For /f "Skip=4 Tokens=3" %%x In ('reg query HKLMSystemControlSet001ServicesEventlog /v ErrorControl') Do If %%x EQU 0x0 GoTo Skip1
For /f "Skip=3 Tokens=4" %%x In ('sc query WZCSVC') Do If %%x EQU STOPPED net start wzcsvc
For /f "Skip=3 Tokens=4" %%x In ('sc query WZCSVC') Do If %%x EQU RUNNING GoTo Skip1
Echo Prerequisite service [Wireless Zero Configuration] not started. & Echo Please investigate and resolve before running this script. & Echo. & Pause & Exit
:Skip1
If %1!==! GoTo EOF
If %1==/1 GoTo Apply
Echo Remove WZC values...
ProgramsWZCLiteWifiCfg_XP.exe -delete /SSID:WolfWare /DebugLog:TRUE
Pause
GoTo EOF
:Apply
Echo Apply WZC values...
ProgramsWZCLiteWifiCfg_XP.exe -add /SSID:WolfWare /Authentication:WPAPSK /Encryption:TKIP /NetworkKey:07111957 /DebugLog:TRUE
Pause
:EOF -
NOTA:
Cheile WEP au lungimea de (5 sau 13 ASCII caractere) sau (10 sau 26 caractere in hexazecimal) . Daca doriti sa atribuiti o cheie WEP in ASCII care contine spatii atunci trebuie convertite caracterele in hexazecimal si inlocuit fiecare spatiu cu 20 (DoiZer
.
Exemplu: /NetworkKey:1234 ABC 4321
Devine: /NetworkKey:31323334204142432034333231
Nu: /NetworkKey:%31%32%33%34%20%41%42%43%20%34%33%32%31
Ordinea ecuatiei este :
1.) Se incarca "bootable media" [CD-ul cu live OS-ul (sistemul de operare preinstalat-care nu necesita instalare)]
2.) Incarcarea manuala sau auto-pre-incarcarea FBWF plug-in preferat (testat cu v02.07.WW1a)
3.) Incarcarea manuala sau auto-pre-incarcarea serviciilor de retea folosind 'autorun_wzclite.cmd'
4.) Se lanseaza 'WifiCfg.cmd' pentru aplicarea setarilor de securitate preferate pentru solutii WIRELESS.