WinPE bootdisk batch script

I have created a USB bootable drive to reload windows .wim files.

It works and I have a batch script that calls diskpart and then starts imagex and deploys my image.

I want this to automatically run from start to finish and then shutdown the computer.

Where in the winPE environment can I place my batch file to do this?

T.I.A
LVL 32
nappy_dThere are a 1000 ways to skin the technology cat.Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Adam LeinssServer SpecialistCommented:
..\windows\system32\startnet.cmd within the WinPE image.  You will need to mount the WinPE read/write and modify this file.
0
nappy_dThere are a 1000 ways to skin the technology cat.Author Commented:
I've been looking for that file, but no such file is found at that directory level :(
0
Adam LeinssServer SpecialistCommented:
What WinPE is this?  How did you create it?  Every PE disc should have it.  That is what kicks off network support for PE.
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

nappy_dThere are a 1000 ways to skin the technology cat.Author Commented:
I created it with a Windows 7 disk and Win2Flash.
0
Adam LeinssServer SpecialistCommented:
Hmm, never did it that way, however, I just booted my WinPE disc based on Windows 7  and ran regedit (within WinPE) and HKLM\Software\Microsoft\Windows\CurrentVersion\Run exists as it does in the regular operating system, so you should be able to make a string value (REG_SZ) that points to your batch file.

If the Win2Flash program creates a WIM file, you should be able to mount it with DISM from Microsoft's WAIK and then modify it and then re-save the WIM file.

Here are some tips to edit the WinPE registry as a hive from a live OS:
http://c-nergy.be/blog/?p=980 (starting from Step 2)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Adam LeinssServer SpecialistCommented:
I would delete question
0
nappy_dThere are a 1000 ways to skin the technology cat.Author Commented:
Sorry for my delayed response.  I was away on a project.  This did work.  I tested it over the weekend...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows XP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.