vishyc88 Posted April 6, 2011 Share Posted April 6, 2011 Hi friends, Is it possible to automatically run a bat script after the winpe environment has been created? Im trying to do this to automatically kickoff of the windows 7 installation from windows pe environment. Following are the commands i wish to execute: > net use z: \\172.16.255.254\win7 jet-123 /user:student >z:\setup.exePlease Please help!Thanks Link to comment Share on other sites More sharing options...
Tripredacus Posted April 6, 2011 Share Posted April 6, 2011 Sure. There is a bat file already that starts WinPE, it is startnet.cmd. Make sure your winpeshl.ini is blank or it will ignore the startnet.cmd. Here is one of my old startnet.cmd files:wpeinitwpeutil initializenetworkping 127.0.0.1 -n 16 -w 1000>nullnet use z: \\7SERVER\images ZarleyZalapski33 /user:kdineenregsvr32 /s misc/gimagex_com.dllmshta.exe x:\windows\system32\imagex.htaSo you probably just need wpeinit as the first option, then your other two commands right afterwards. This file is located in x:\windows\system32 Link to comment Share on other sites More sharing options...
vishyc88 Posted April 6, 2011 Author Share Posted April 6, 2011 Thanks Tripredacus. Link to comment Share on other sites More sharing options...
vishyc88 Posted April 6, 2011 Author Share Posted April 6, 2011 Hi, I am not able to find the winpeshl.ini file in the image. where is it located? Please let me knowThanks Link to comment Share on other sites More sharing options...
phaeton Posted April 6, 2011 Share Posted April 6, 2011 Hi, I am not able to find the winpeshl.ini file in the image. where is it located? Please let me knowThanksI should be in the *Winperoot*\windows\system32\winpeshl.ini Link to comment Share on other sites More sharing options...
vishyc88 Posted April 7, 2011 Author Share Posted April 7, 2011 Hi ...im back! Im able to start the installation, everything's fine but the time taken to load wpeinit is too much. It takes atleast 5 - 10 mins just to load wpeinit. Otherwise everything's working like charm. I dont understand.Im using winpe 2.0. Will upgrading to winPE 3.0 improve the speed? Please lemme know Link to comment Share on other sites More sharing options...
Tripredacus Posted April 8, 2011 Share Posted April 8, 2011 Im using winpe 2.0. Will upgrading to winPE 3.0 improve the speed? Please lemme know 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