MSFN Forum: Winpeshl.ini help - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Winpeshl.ini help Rate Topic: -----

#1 User is offline   madpro 

  • Group: Members
  • Posts: 4
  • Joined: 17-May 11
  • OS:Windows 7 x86

Posted 13 November 2012 - 09:40 AM

I have a batch file that kicks off diskpart to ready a drive for installation, then it goes on to copy a wim from one network location to another, than applies that wim

This process works manually, so I can boot winpe, then I change drive to D: and kick of the batch file from here, diskpart runs, then closes and the wim copies over and is applied to the HDD, on reboot it boots to windows

I want to automate this process using winpeshl.ini, so so far I have

created winpeshl.ini and copied it to windows\system32 on the boot.wim
copied the batch file and diskpart text file to same folder

Now what happens is diskpart runs ok but then the process falls over at the stage where I am maping the network location, it says it cant start the workstation service

Can anyone assist please?


#2 User is online   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,676
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 13 November 2012 - 09:54 AM

I'd recommend doing your automation testing with startnet.cmd, and after you get all your commands down, switch it over to winpeshl.ini. The syntax is different for winpeshl.ini. Can you post the contents of it? (obfusicate things like server names, usernames, passwords). Also what version of WinPE are you using and what packages did you add during the build process?

#3 User is offline   madpro 

  • Group: Members
  • Posts: 4
  • Joined: 17-May 11
  • OS:Windows 7 x86

Posted 14 November 2012 - 09:40 AM

Hi Tripredacus

I am using PE 3.0 and I havent added any packages, it is just a basic PE used to boot a machine and copy over a wim from a network location

bat file

diskpart /s d:\*.txt
net use p: \\share address
p:
copy *.wim m:

txt file

select disk 0
clean
create partition primary size=512
select partition 1
format fs=ntfs label=system quick
assign letter=c
active
create partition primary
select partition 2
format fs=ntfs label=win7 quick
assign letter=m
exit

winpeshl.ini

[LaunchApp]
AppPath = %SYSTEMDRIVE%\windows\system32\*.bat

So I need the txt file to prepare the hard drive for the image, then copy the wim from one location to another and apply it to the HDD

#4 User is online   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,676
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 14 November 2012 - 10:51 AM

Map your drive before running diskpart.

#5 User is offline   madpro 

  • Group: Members
  • Posts: 4
  • Joined: 17-May 11
  • OS:Windows 7 x86

Posted 14 November 2012 - 12:38 PM

I tried mapping the drive first, but get an error about workstation service not being started

I added this to the batch file but get another error saying the servbice cant be started

I assume it is because winpe hasnt fully loaded when the mapping is trying to run

The reason I say this is cause if the batch and txt file are just at the root of the winpe folder and I dont use winpeshl, when winpe has loaded it is at an x prompt, I can then do D: and run the batch file from there and it all works fine

#6 User is online   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,676
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 15 November 2012 - 09:28 AM

Try using a startnet.cmd (blank out your winpeshl.ini for this test) and have this at first:

wpeinit
wpeutil initializenetwork
ping 127.0.0.1 -n 16 -w 1000>null
net use z: \\7SERVER\images password /user:kdineen


I personally do not use winpeshl.ini for any boot images that connect to the internet. Note, the InitializeNetwork command may or may not be required. The ping is in place because not all NICs are immediately usable after being enumerated.

#7 User is offline   madpro 

  • Group: Members
  • Posts: 4
  • Joined: 17-May 11
  • OS:Windows 7 x86

Posted 16 November 2012 - 04:40 AM

Thanks Tripredacus

I'll try that and let you know :thumbup

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy