Help - Search - Members - Calendar
Full Version: How to use WinPe for Network Unattend Install?
MSFN Forums > Unattended Windows Discussion & Support > Windows PE

   
Google Internet Forums Unattended CD/DVD Guide
odopey
Hey,
I've been reading a lot of the threads but haven't really found what I'm looking to do. I'd like to create a WinPE cd that is bootable and will connect to my server and then start a Window XP Pro SP 2 Unattended install.

I'm sure it can be done just not sure how to go about it.

Can someone point me in the right direction.

Thanks,
likuidkewl
Just look in the OPK.chm or the Winpe.chm depending on version. It is well documented
edg21
Once you have network support enabled, you can use this. Maps network drive, starts services needed by diskpart, partitions the hdd, formats the hdd, copies i386 folder from network to local hdd, then starts the install from the hdd.

CODE
net use u: \\bender\unattend
net start dmserver
net start dmadmin
diskpart /s diskpart.cfg
format c: /fs:NTFS /v:"" /Q /Y
xcopy u:\cabs\xp\vlk c:\i386 /E /I
c:\i386\winnt32.exe /s:c:\i386 /unattend:u:\config\xp\vlk\unattend.txt /syspart:C: /NOREBOOT
TheWave
can you post your diskpart's configuration script?
Jotnar
You could use something like this:

CODE
select disk 0
clean
create partition primary size=20480
select partition 1
active
assign letter=c


Cheers
edg21
QUOTE (TheWave @ Sep 28 2004, 06:56 AM)
can you post your diskpart's configuration script?

CODE
Select Disk 0
Clean
Create Partition primary
Active
Assign Letter=c
exit
TheWave
thanks.
I have bartspe and tried to run xp's install from it and it just exit the setup after few minutes without any notice. The copy\diskpart works file i tried to run it manually (no unattend script) too it i have the same problem. Any ideas? Should i try winpe?
Jotnar
I've run 2K/XP setup before in BartPE, so thats not the problem. Try it with just the /s and /syspart .

Cheers
TheWave
Same s***. It goes on as usuall for few minutes then the setup just disapears leaving two folders at c:\. Is there a log file or something else i could do to find out whats wrong?
edg21
QUOTE (TheWave @ Sep 29 2004, 10:42 AM)
Same s***. It goes on as usuall for few minutes then the setup just disapears leaving two folders at c:\. Is there a log file or something else i could do to find out whats wrong?

hmmmm... I changed mine around a bit, the following is from my os_install.cmd. I will post the entire thing when I'm done.

Variable Values:
CODE
UNATTEND_SHARE=\\bender\unattend
NTFS=/fs:NTFS /v:"" /Q /Y
DISKPART_CFG=u:\config\winxp\vlk\diskpart.cfg
FORMAT_CFG=%NTFS%
CAB_LOCATION=u:\cabs\xp\vlk\i386
UA_FILE=u:\config\winxp\vlk\unattend.txt
SETUP_COMMAND=winnt32.exe /s:%CAB_LOCATION% /unattend:%UA_FILE% /syspart:C: /tempdrive:C: /NOREBOOT


Commands Used:
CODE
net use u: %UNATTEND_SHARE%
net start dmserver
net start dmadmin
diskpart /s %DISKPART_CFG%
format c: %FORMAT_CFG%
%CAB_LOCATION%\%SETUP_COMMAND%
piro
TheWave,

QUOTE
It goes on as usuall for few minutes then the setup just disapears leaving two folders at c:\

that's normal man, the winnt32 process copied the setup files ($win_nt$.~bt & $win_nt$.~ls) and prepared the c: drive and just existed (trying to restart computer but it's not possible in winpe).

all you have to do now is restart your computer yourself, and the setup will start auomatically. (don't expect to install windows completely from winpe).

piro
TheWave
Stupid me... yea it works i just had to restart. Thank you. I have one more question though, how can i restart using batch file in bartspe with xpe?
Metzen
QUOTE (TheWave @ Sep 30 2004, 08:38 AM)
Stupid me... yea it works i just had to restart. Thank you. I have one more question though, how can i restart using batch file in bartspe with xpe?

Use the following line at the end of your script:

EXIT

I am assuming that your install script is the STARTNET.CMD file. If it's not, you'll have to find a way to get your batch file to terminate STARTNET.CMD to reboot automatically.
TheWave
exit just exit the current batch doesn't it? and where is this "startnet.cmd" i couldn't find it. my install script it standalone script that exist on another computer.
etorbenson
QUOTE (Metzen @ Sep 30 2004, 09:53 AM)
Use the following line at the end of your script:

EXIT

I am assuming that your install script is the STARTNET.CMD file.  If it's not, you'll have to find a way to get your batch file to terminate STARTNET.CMD to reboot automatically.

Is there any way to force WinPE closed? My setup routine relies on an HTA, so once MSHTA runs, I lose control of the STARTNET.CMD file. The standard WinXP SHUTDOWN.EXE doesn't work; it just says "The device is not ready." Has anyone gotten WinPE to successfully reboot after executing a command other than "exit"?
mbouchard
In one form or another I use the following to reboot PE from both HTA's and VBS'

Mike
CODE
Do'Reboot PC.  Close Up to 5 open CMD windows
 Do While Counter < 5
Counter = Counter + 1
If Counter = 6 Then
  Check = False
Exit Do
End If
WshShell.AppActivate "cmd"
WshShell.sendkeys "exit"
WshShell.sendkeys "~"
  Loop
Loop Until Check = False
Jotnar
You could also you pskill or something similar and kill the command window.

Cheers
likuidkewl
Another option to this is PEShutdown.exe, use google to find it, then write a script that will call it. It also has a reboot switch to which is useful, for example when I install windows, I do it from a script with the "START /wait" command, then the next line in the batch will not execute until the preceeding line is complete. Just a suggestion.
genmud
yea start /wait is the shiz! i love that... i think "start /wait", "if", and "set" are the most usefull commands(imo)
Metzen
QUOTE (genmud @ Oct 1 2004, 04:47 PM)
yea start /wait is the shiz! i love that... i think "start /wait", "if", and "set" are the most usefull commands(imo)

I use an AutoIt Script that terminates all *.cmd windows, this forces a reboot.
crossgrid
Hi,

Been following this thread and i have mine reboot but then it goes into windows XP profession Setup window. I thought it should just go through with the setup but its asking me what partition to install and then it errors out with setup was unable to verify drive c:.

Your computer may not have enough memory to examine the drives, or your windows xp cd may contain some corrupted files.

why is this happening?

please help

TIA
KMFM$
I am suffering from the same problem as crossgrid stated above. I am assuming that having the partition selected in the text setup is a winnt.sif thing. I am just wondering if the error message is in result of VMWare settings, or if the install is corrupt.
Just for reference
Winnt.sif
CODE
;SetupMgrTag
[Data]
   AutoPartition=0
   MsDosInitiated="0"
   UnattendedInstall="Yes"

[Unattended]
   UnattendMode=FullUnattended
   OemSkipEula=Yes
   OemPreinstall=Yes
   TargetPath=\WINDOWS
   UnattendSwitch="Yes"
   WaitForReboot="No"
   FileSystem=*
   OemPnPDriversPath="Drivers\L\R\1;Drivers\S\C;Drivers\U\V2_0;Drivers\M\763;Drivers\G\9500"
   DriverSigningPolicy=Ignore
   NonDriverSigningPolicy=Ignore
   ProgramFilesDir="D:"
   CommonProgramFilesDir="D:\Common"

[SystemFileProtection]
   SFCQuota = 0

[GuiUnattended]
   AdminPassword="**********"
   EncryptedAdminPassword=NO
   AutoLogon=Yes
   AutoLogonCount=1
   OEMSkipRegional=1
   TimeZone=35
   OemSkipWelcome=1
   ProfilesDir="E:"
   
[UserData]
   ProductID=***************************
   FullName="Samus Aran"
   OrgName="Organization"
   ComputerName=MINERVA

[Display]
   BitsPerPel=32
   Xresolution=1280
   YResolution=1024
   Vrefresh=60
   AutoConfirm=1
   ConfigureAtLogon=1

[Branding]
   BrandIEUsingUnattended=Yes

[Proxy]
   Proxy_Enable=0
   Use_Same_Proxy=1

[GuiRunOnce]

[Identification]
   JoinWorkgroup=HIVE001

[Networking]
   InstallDefaultComponents=Yes


TIA
biggrin.gif
ribond
It's prompting for what partition to install to because your Unattend file is telling it to. smile.gif

Change this:

CODE
[Data]
  AutoPartition=0

to this:
CODE
[Data]
  AutoPartition=1

And it will stop asking you questions.

Hey Edge -- Why are you manually starting services for Diskpart?
KMFM$
D'oh... It's always the small things. Thanks.
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.