Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WinPE reboot when using script
2020-09-22, 18:56
Post: #7
RE: WinPE reboot when using script
I had the same problem, my solution:

Add powershell cab to boot.wim:

https://docs.microsoft.com/nl-nl/windows...windows-pe

winpeshl.ini
Code:
[LaunchApps]
wpeinit
powershell, -NoLogo -NoExit -ExecutionPolicy Bypass -File .\startup.ps1

and

startup.ps1
Code:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$ProgressPreference = 'SilentlyContinue'

Start-Sleep -s 15

CMD /C VER

net use s: \\192.168.2.13\boot password /user:boot

Write-Output (Get-Date)

Start-Sleep -s 15

Start-Process -FilePath "S:\iso\windows10\setup.exe" -Wait

boot.wim = new created with powershell!
boot.ipxe
Code:
:winpe_win10

  cpuid --ext 29 && set arch amd64 || set arch x86

  kernel http://${ipxe_server_ip}/ipxe/wimboot
  initrd http://${ipxe_server_ip}/boot/win10/winpeshl.ini                                        winpeshl.ini
  initrd http://${ipxe_server_ip}/boot/win10/startup.ps1                                         startup.ps1
  initrd http://${ipxe_server_ip}/iso/extracted/clean/winpe/${arch}/media/Boot/BCD               BCD
  initrd http://${ipxe_server_ip}/iso/extracted/clean/winpe/${arch}/media/Boot/boot.sdi          boot.sdi
  initrd http://${ipxe_server_ip}/iso/extracted/clean/winpe/${arch}/media/sources/boot.wim       boot.wim
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: WinPE reboot when using script - Opvolger - 2020-09-22 18:56



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