Compare commits
No commits in common. "59ec83c10a635b18ac581f279f04f1a0930ee4ff" and "62bbdb728eb0ad5d21d41ea8e220d7d9132b9c05" have entirely different histories.
59ec83c10a
...
62bbdb728e
@ -33,7 +33,6 @@ set StagingDir=%TEMP%\SRBW
|
|||||||
set RemoteURL="https://git.mrmeeb.stream/MrMeeb/sure-recover-boot-wiper/raw/branch/main/payload"
|
set RemoteURL="https://git.mrmeeb.stream/MrMeeb/sure-recover-boot-wiper/raw/branch/main/payload"
|
||||||
|
|
||||||
mkdir %StagingDir%
|
mkdir %StagingDir%
|
||||||
mkdir C:\Sources
|
|
||||||
|
|
||||||
powershell -Command Invoke-WebRequest %RemoteURL%/run.ps1 -OutFile %StagingDir%\run.ps1
|
powershell -Command Invoke-WebRequest %RemoteURL%/run.ps1 -OutFile %StagingDir%\run.ps1
|
||||||
|
|
||||||
|
@ -7,14 +7,13 @@ $StagingDir = $PSScriptRoot
|
|||||||
$ProgressPreference = 'SilentlyContinue'
|
$ProgressPreference = 'SilentlyContinue'
|
||||||
|
|
||||||
# Download compressed boot dir to Staging Dir
|
# Download compressed boot dir to Staging Dir
|
||||||
Write-Host "Downloading boot.zip"
|
|
||||||
Invoke-WebRequest -Uri $RemoteURL/boot.zip -OutFile $StagingDir\boot.zip
|
Invoke-WebRequest -Uri $RemoteURL/boot.zip -OutFile $StagingDir\boot.zip
|
||||||
|
|
||||||
# Expand boot.zip to C:\Boot
|
# Expand boot.zip to C:\Boot
|
||||||
Expand-Archive -Path $StagingDir\boot.zip -DestinationPath C:\ -Force
|
Expand-Archive -Path $StagingDir\boot.zip -DestinationPath C:\ -Force
|
||||||
|
|
||||||
# Download WinPE wim to C:\Sources\boot.wim
|
# Download WinPE wim to C:\Sources\boot.wim
|
||||||
Write-Host "Downloading boot.wim"
|
New-Item -ItemType "Directory" -Path C:\Sources -Force
|
||||||
Invoke-WebRequest -Uri $RemoteURL/boot.wim -OutFile C:\Sources\boot.wim
|
Invoke-WebRequest -Uri $RemoteURL/boot.wim -OutFile C:\Sources\boot.wim
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user