The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 807 - File: showthread.php PHP 7.3.15 (Linux)
File Line Function
/showthread.php 807 errorHandler->error





Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WinPE reboot when using script
2019-01-22, 08:05 (This post was last modified: 2019-01-22 08:55 by geri005.)
Post: #1
WinPE reboot when using script
Hey guys!

Using iPXE I'm able to boot to WinPE, mount my network drive and install Windows just fine.

However, I wanted to automount my network share, and start setup.exe automatically.

This is how my boot.ipxe looks like:

Code:
#!ipxe

  kernel wimboot
  initrd install.bat install.bat
  initrd winpeshl.ini winpeshl.ini
  initrd bootmgr bootmgr
  initrd boot/BCD         BCD
  initrd boot/boot.sdi    boot.sdi
  initrd sources/boot.wim boot.wim
  boot

And this is the install.bat:
Code:
wpeinit
net use \\192.168.1.99\SZERVER /user:myuser mypwd
\\192.168.1.99\SZERVER\iso\setup.exe

And finally the winpeshl.ini:
Code:
[LaunchApps]
  "install.bat"

Using this, WinPE boots up, then right after wpeinit, it reboots the computer.

What am I doing wrong here? Any help is much appreciated.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
WinPE reboot when using script - geri005 - 2019-01-22 08:05



User(s) browsing this thread: 1 Guest(s)