dkreifus Posted May 25, 2007 Share Posted May 25, 2007 For some reason, I can't get an IP and connect to a network drive.Here is my batch file while makes the boot disk, and then my startnet.cmd@echo offsetlocalTITLE Making BootDisk 2.0set winpe=C:\BootDisk\PE2.0\winpe2.0set Petools=C:\Program Files\Windows AIK\Tools\PEToolsset BootDisk=C:\BootDisk\PE2.0echo Updating path to include peimg, oscdimg, imagexecho.echo %petools%echo %petools%..\%PROCESSOR_ARCHITECTURE%echo.set PATH=%PATH%;%petools%;%petools%..\%PROCESSOR_ARCHITECTURE%CALL copype.cmd x86 "%winpe%"imagex /mountrw %winpe%\winpe.wim 1 %winpe%\mountECHO deleting unneeded directoriesrd /s /q %winpe%\mount\Windows\System32\ar-SA rd /s /q %winpe%\mount\Windows\System32\bg-BG rd /s /q %winpe%\mount\Windows\System32\cs-CZ rd /s /q %winpe%\mount\Windows\System32\da-DK rd /s /q %winpe%\mount\Windows\System32\de-DE rd /s /q %winpe%\mount\Windows\System32\el-GR rd /s /q %winpe%\mount\Windows\System32\es-ES rd /s /q %winpe%\mount\Windows\System32\et-EE rd /s /q %winpe%\mount\Windows\System32\fi-FI rd /s /q %winpe%\mount\Windows\System32\fr-FR rd /s /q %winpe%\mount\Windows\System32\he-IL rd /s /q %winpe%\mount\Windows\System32\hr-HR rd /s /q %winpe%\mount\Windows\System32\hu-HU rd /s /q %winpe%\mount\Windows\System32\it-IT rd /s /q %winpe%\mount\Windows\System32\ja-JP rd /s /q %winpe%\mount\Windows\System32\ko-KR rd /s /q %winpe%\mount\Windows\System32\lt-LT rd /s /q %winpe%\mount\Windows\System32\lv-LV rd /s /q %winpe%\mount\Windows\System32\nb-NO rd /s /q %winpe%\mount\Windows\System32\nl-NL rd /s /q %winpe%\mount\Windows\System32\pl-PL rd /s /q %winpe%\mount\Windows\System32\pt-BR rd /s /q %winpe%\mount\Windows\System32\pt-PT rd /s /q %winpe%\mount\Windows\System32\ro-RO rd /s /q %winpe%\mount\Windows\System32\ru-RU rd /s /q %winpe%\mount\Windows\System32\sk-SK rd /s /q %winpe%\mount\Windows\System32\sl-SI rd /s /q %winpe%\mount\Windows\System32\sv-SE rd /s /q %winpe%\mount\Windows\System32\th-TH rd /s /q %winpe%\mount\Windows\System32\tr-TR rd /s /q %winpe%\mount\Windows\System32\uk-UA rd /s /q %winpe%\mount\Windows\System32\zh-CN rd /s /q %winpe%\mount\Windows\System32\zh-TW rd /s /q %winpe%\mount\Windows\System32\zh-HKrd /s /q %winpe%\mount\Windows\System32\sr-Latn-CSrd /s /q %winpe%\ISO\boot\fontsrd /s /q %winpe%\ISO\EFI\microsoft\boot\fontsdel /s /q %winpe%\mount\Windows\System32\diskraid.exedel /s /q %winpe%\mount\Windows\System32\dpapimig.exedel /s /q %winpe%\mount\Windows\System32\doskey.exedel /s /q %winpe%\mount\Windows\System32\esentutl.exedel /s /q %winpe%\mount\Windows\System32\esent.dlldel /s /q %winpe%\mount\Windows\System32\ftp.exedel /s /q %winpe%\mount\Windows\System32\notepad.exedel /s /q %winpe%\mount\Windows\System32\ntprint.exedel /s /q %winpe%\mount\Windows\System32\ntprint.dlldel /s /q %winpe%\mount\Windows\System32\print.exedel /s /q %winpe%\mount\Windows\System32\printui.dlldel /s /q %winpe%\mount\Windows\System32\robocopy.exedel /s /q %winpe%\mount\Windows\System32\taskmgr.exedel /s /q %winpe%\mount\Windows\System32\wbengine.exedel /s /q %winpe%\mount\Windows\System32\wbadmin.exedel /s /q %winpe%\mount\Windows\System32\wdscapture.exedel /s /q %winpe%\mount\Windows\System32\wdscapture.infECHO Copying add on filescopy /y %bootdisk%\addon\*.* %winpe%\mount\Windows\System32imagex /unmount %winpe%\mount /commitcopy %winpe%\winpe.wim %winpe%\ISO\sources\boot.wimoscdimg -n -b%winpe%\etfsboot.com %winpe%\ISO "%bootdisk%\Boot CD 2.0.iso"endlocalexitStartNet.CMD@echo offTITLE Boot CD v 2.1wpeinitregsvr32 /s netcfgx.dllnetcfg -v -winpenet start dhcpnet start nla:MenuCLSipconfigECHO.ECHO Please choose your action:Echo A)Image ComputerEcho B)Run GhostEcho C)Ghost w/ net driveEcho D)Format C: driveECHO E)Go back a stepECHO F)Exitchoice /c:ABCDEFG /N if errorlevel 7 GOTO makeimageif errorlevel 6 GOTO exitif errorlevel 5 GOTO menuif errorlevel 4 GOTO wipeif errorlevel 3 GOTO netghostif errorlevel 2 GOTO toolif errorlevel 1 GOTO comp:compECHO.ECHO. ECHO Please choose your model:ECHO.Echo A)DX2000,DC5000,DC5100,DC5700Echo B)T43,T60,500(M)Echo C)T40,T41,T42,ECHO D)510 (EVO 51)Echo E)A30,A31,R40Echo F)D5pM,X40ECHO G)HP NC4400ECHO H)Go back to beginningchoice /c:ABCDEFGH /N if errorlevel 8 GOTO menuif errorlevel 7 set model=nc4400if errorlevel 6 set model=T42if errorlevel 5 set model=T42if errorlevel 4 set model=T60if errorlevel 3 set model=T42if errorlevel 2 set model=T60if errorlevel 1 set model=T60GOTO ghost:toolghost32.exeGOTO exit:netghostECHO.ECHO Please enter your domain:Set /P domain=ECHO.ECHO Please enter your username:set /p username=net use T: \\server\currentimage\temp * /USER:%domain%\%username%if errorlevel 1 GOTO netghostfailif errorlevel 0 GOTO netghostpass:netghostpassghost32.exeGOTO exit:netghostfailECHO.ECHO Your login failed. Please try againPausegoto netghost:wipenet start dmservernet start dmadminDISKPART /s diskpart.txtformat c: /q /fs:ntfs /v:"" yGOTO exit:ghostECHO.ECHO.ECHO Please confirm your choiceEcho A)ExitEcho B)Image DriveECHO --=====--ECHO C)Go back to beginningchoice /c:ABC /N if errorlevel 3 GOTO menuif errorlevel 2 GOTO imageif errorlevel 1 GOTO exit:imageECHO.ECHO Please enter your domain:Set /P domain=ECHO.ECHO Please enter your username:set /p username=ECHO.ECHO.REM ECHO Please disregard the foldername below. It is internal use only.ECHO.net use S: \\server\currentimage\%model% * /USER:%domain%\%username%if errorlevel 1 GOTO imagefailif errorlevel 0 GOTO imagepassECHO.:imagefailECHO.ECHO Your login failed. Please try againPausegoto image:imagepassECHO You will now be imaging a computer. Any data on that computer will be destroyed. When you are ready,PAUSEghost32.exe -clone,mode=load,src=S:\CSIimage.gho,dst=1 -sure -quiet -auto -fxGOTO exit:makeimageECHO Please enter your domain:Set /P domain=ECHO.ECHO Please enter your username:set /p username=net use T: \\server\currentimage * /USER:%domain%\%username%if errorlevel 1 GOTO makeimagefailif errorlevel 0 GOTO makeimagepass:makeimagepassghost32.exeGOTO exit:makeimagefailECHO.ECHO Your login failed. Please try againPausegoto makeimage:exitexit Link to comment Share on other sites More sharing options...
Fodder Posted July 19, 2007 Share Posted July 19, 2007 Hi There, I don't know about your script but I was having the same Workstation service error on my build and have found the culprit. I was loading WinPE 2.0 through VMWare and only had 256mbs of RAM allocated to the session. Once I bumped that up 512mbs, ipso facto presto chango, it worked!Hope this helps,Fodder Link to comment Share on other sites More sharing options...
zorphnog Posted July 19, 2007 Share Posted July 19, 2007 You could be missing the network drivers for whatever machine you are trying to boot it on. Use devcon.exe to check the status of the NIC. Try something like: devcon status pci* Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now