Download file remotely and then download requirements remotely

This commit is contained in:
2024-08-06 18:26:08 +01:00
parent 74648459f4
commit d5e4f29963
2 changed files with 18 additions and 11 deletions

View File

@ -1,5 +1,9 @@
@echo off
xcopy "%~dp0\Boot" "C:\boot\" /s /e /h /q /y
xcopy "%~dp0\boot.wim" "C:\sources\" /h /q /y
cd "%~dp0"
powershell -executionpolicy bypass -file "setuppe.ps1"
set StagingDir=%TEMP%\SRBW
set RemoteURL="https://git.mrmeeb.stream/MrMeeb/sure-recover-boot-wiper/raw/branch/main/payload"
mkdir %StagingDir%
powershell -Command Invoke-WebRequest %RemoteURL%/run.ps1 -OutFile %StagingDir%\run.ps1
powershell -ExecutionPolicy bypass -File %StagingDir%\run.ps1 %RemoteURL%