Jump to content

need some help with XPE


eplrs

Recommended Posts

have 3 ?'s

I modified the startnet.cmd to launch to a network share.

my problem is the delay in receiving a DHCP address to when my scripts kick off.

1. is there a way to create a delay for X-seconds in XPE (sleep doesn't work)?

startnet.cmd

factory -winpe

cls

@echo off

set AnswerFile=\\ap01u\dfs\SoftDist\Microsoft\Windows_XPSP1\xp_deploy\unatt.txt

set SetupFiles=\\ap01u\dfs\SoftDist\Microsoft\Windows_XPSP1\xp_deploy\I386

net use s: \\ap01u\dfs\softdist /user:?????? ?????? /persistent:no

Diskpart /s \\ap01u\dfs\SoftDist\Microsoft\Windows_XPSP1\xp_deploy\diskpart.txt

format c: /fs:NTFS /v:winxp /q /x /y

\\ap01u\dfs\SoftDist\Microsoft\Windows_XPSP1\xp_deploy\I386\winnt32 /SYSPART:C: /s:%SetupFiles% /unattend:%AnswerFile% /copysource:lang

2. after install is complete I want to assign R: to my cd drive, I want this to happen without going through diskmanager. HOW?

3.computer has 1 hard drive i have used Diskpart to create an 8gig part, and now i want to make the rest of the drive U: (NTFS, must also be a primary partition, no matter what size the drive)

diskpart.txt

select disk 0

clean

create partition primary size=8192

select partition 1

assign letter=c

active

detail disk

exit

please help

Link to comment
Share on other sites


You could try adding WSH support (using BuildOptionalComponents.vbs).. that might add enough of a delay. We do something very similar here and we don't have the issue you're talking about, but we load WSH support so it takes a little longer to get to the point when it tries to use the network share. If that's still not long enough you could launch a VBScript with a sleep command (since you'll have added WSH support).

I don't know about the rest of your questions, sorry :(

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...