[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

WinPE bootdisk batch script

Posted on 2011-10-14
8
Medium Priority
?
702 Views
Last Modified: 2012-05-12
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
0
Comment
Question by:nappy_d
  • 4
  • 3
7 Comments
 
LVL 22

Expert Comment

by:Adam Leinss
ID: 36970368
..\windows\system32\startnet.cmd within the WinPE image.  You will need to mount the WinPE read/write and modify this file.
0
 
LVL 32

Author Comment

by:nappy_d
ID: 36971008
I've been looking for that file, but no such file is found at that directory level :(
0
 
LVL 22

Expert Comment

by:Adam Leinss
ID: 36971014
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 32

Author Comment

by:nappy_d
ID: 36971116
I created it with a Windows 7 disk and Win2Flash.
0
 
LVL 22

Accepted Solution

by:
Adam Leinss earned 2000 total points
ID: 36971277
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
 
LVL 22

Expert Comment

by:Adam Leinss
ID: 37087881
I would delete question
0
 
LVL 32

Author Closing Comment

by:nappy_d
ID: 37094304
Sorry for my delayed response.  I was away on a project.  This did work.  I tested it over the weekend...
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you build your web application in Visual Studio you'll get at least a few binaries, or .DLL, files in your bin folder. However, there is more compiling to be done. Normally this would happen when an ASP.NET resource within the web site is request…
Can you find a fax from a vendor you saved a decade ago in seconds? Have you ever cursed your PC under your breath during an audit because you couldn’t find the requested statement or driver history?  If you answered no to the first question or yes …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question