winutil/functions/private/Invoke-WinUtilDownloadISO.ps1

17 lines
415 B
PowerShell
Raw Normal View History

2024-08-18 23:15:06 -05:00
function Invoke-WinUtilDownloadISO {
2024-08-19 14:22:26 -05:00
param(
$rel,
$locale,
$arch
)
# Download Windows 11 ISO
# Credit: https://github.com/pbatard/Fido
2024-08-18 23:15:06 -05:00
2024-08-19 14:22:26 -05:00
$fidopath = "$env:temp\fido.ps1"
2024-08-18 23:15:06 -05:00
2024-08-19 14:22:26 -05:00
Invoke-Webrequest "https://github.com/pbatard/Fido/raw/master/Fido.ps1" -OutFile $fidopath
2024-08-18 23:15:06 -05:00
2024-08-19 14:22:26 -05:00
& $fidopath -Win "Windows 11" -Rel $rel -Locale $locale -Arch $arch
2024-08-18 23:15:06 -05:00
2024-08-19 14:22:26 -05:00
return "$workingdir\*.iso"
2024-08-18 23:15:06 -05:00
}