Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

WDS boot image

- - - - -

  • Please log in to reply
9 replies to this topic

#1
MarkAtWag

MarkAtWag

    Newbie

  • Member
  • 10 posts
  • Joined 13-February 09
After we switched vendors for laptops, the new ones have some sort of hidden oem partition that goofs up the boot manager after imaging (<Root Windows>\system32\hal.dll is missing or corrupt).

I found a great fix that can be run in WDS before imaging and it makes the rest seamless.
http://social.techne...a5-db8af038fb0c

What I would like to do is integrate the commands into a new boot.wim. So ideally when we PXE boot to wds, it will allow me to select Dell or HP; just like it does when we enable the capture boot wim. Since I didnt create the original boot wims im a little stumped. I see there is just one boot.wim and the rest (including our capture) is boot.wim.bcd . Any pointers on how to create a new boot option that can run a script before logon would be helpful!

If im going about this all wrong let me know too ) Thanks again MSFN!


How to remove advertisement from MSFN

#2
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,791 posts
  • Joined 28-April 06
  • OS:Windows 7 x86
  • Country: Country Flag

Donator

This is actually very easy to do. You will kick yourself, I know I did!

Open up WDS, and right click on the Boot Images container, and add new image. When you select your file, and hit next, you get to a part where you can change the description/name of the image. Type what you want in there and when its done, hit finish. You will then have two images in Boot Images.

When you PXE from a client, it will go to a menu, and the descriptions you typed in will appear as the selections.

My test WDS has 4 boot images, so the clients on there see 4 items:
Win PE v2.1 (x86)
Win PE v3.0 (x64)
Vista x86 Setup
Server 2008 x64 Setup

:sneaky:
MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
tpxmsfn1_zps393339c1.jpg

#3
MarkAtWag

MarkAtWag

    Newbie

  • Member
  • 10 posts
  • Joined 13-February 09
Sweet, yeah that was easy to make another instance.

Now, I can AIK mount that wim to edit it to make the changes that I need. However, i just cant wrap my head around how i can force that script to run. It will boot to the deployment screen, but i want to force the following to run before we log in to deploy an image.

DISKPART
SELECT DISK 0
CLEAN
CREATE PARTITION PRIMARY
EXIT
EXIT


*Edit - essentially i want to run an autoexec.bat when the boot image loads.. but dont know where to put it.

Edited by MarkAtWag, 26 August 2009 - 02:21 PM.


#4
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,791 posts
  • Joined 28-April 06
  • OS:Windows 7 x86
  • Country: Country Flag

Donator

Look in the help file about STARNET.CMD and/or WINPESHL.INI. Both can launch commands. Use one or the other tho. If you have stuff in your startnet.cmd AND winpeshl.ini, it will ignore the CMD and only use the INI file. I have PE images that use either of the options. Basically, use the startnet.cmd if just starting. the winpeshl.ini is best used if you don't want your end users to have access to the command prompt. Also note that startnet.cmd uses standard .Bat syntax, but the INI is a bit different.
MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
tpxmsfn1_zps393339c1.jpg

#5
MarkAtWag

MarkAtWag

    Newbie

  • Member
  • 10 posts
  • Joined 13-February 09
Thanks for the help, I seem to be getting closer.

I tried with just the startnet.cmd , putting

wpeinit
DISKPART /S X:\windows\system32\deploy.txt


deploy.txt has SELECT DISK 0 ,CLEAN, EXIT.

I never saw the command prompt come up, and I can tell it didnt run.
--

I tried the winpeshl.ini way, (cleared out startnet.cmd except for wpeinit)

So in winpeshl.ini i have
[LaunchApp]

[LaunchApps]
X:\Windows\System32\deploy.cmd


same thing, didnt run.

If I Shift+F10 and search under windows\system32 I do not see my files , yet if i unmount the image and browse it I see them all. - i know im booting and mounting to the correct ones.

I'll bake a pie for anyone who leads me to solve this =)

#6
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,791 posts
  • Joined 28-April 06
  • OS:Windows 7 x86
  • Country: Country Flag

Donator

winpeshl works a lot different.

try using

x:\windows\system32\DISKPART.exe "/S X:\windows\system32\deploy.txt"

MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
tpxmsfn1_zps393339c1.jpg

#7
MarkAtWag

MarkAtWag

    Newbie

  • Member
  • 10 posts
  • Joined 13-February 09
I tested this with the following in my windows\system32\winpeshl.ini

[LaunchApp]

[LaunchApps]
x:\windows\system32\DISKPART.exe "/S X:\windows\system32\deploy.txt"

but not luck. I'm wondering if somehow the WDS part of my WinPE is loading first (Install Windows screen) even though i have winpeshl file in system32.

#8
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,791 posts
  • Joined 28-April 06
  • OS:Windows 7 x86
  • Country: Country Flag

Donator

Oh, are you saying your Boot Image has is an Windows Setup? or a WDS Capture image?
MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
tpxmsfn1_zps393339c1.jpg

#9
MarkAtWag

MarkAtWag

    Newbie

  • Member
  • 10 posts
  • Joined 13-February 09
Yes, this boot image is for windows setup in WDS, not my capture image.

Edit: side note, i also thought that i might need to install some packages, like
peimg /install=WinPE-Scripting-Package D:\winpe_x86\mount\Windows
i get the 0x80070002 error - only thing i could think it because its mounted on D, and AIK installed on C - just a thought

Edited by MarkAtWag, 28 August 2009 - 01:59 PM.


#10
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,791 posts
  • Joined 28-April 06
  • OS:Windows 7 x86
  • Country: Country Flag

Donator

These are uncharted waters for me then. I have not modified a standard BOOT.WIM besides injecting NIC and Mass Storage Drivers. All other modifications are via unattend file, or for me WDSClientUnattend.xml.
MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
tpxmsfn1_zps393339c1.jpg




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users