mirror of
https://github.com/pbatard/Fido.git
synced 2025-09-16 22:28:02 +02:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
aa378cad13 | ||
![]() |
3c4fafa207 |
11
Fido.ps1
11
Fido.ps1
@@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Fido v1.13 - Retail Windows ISO Downloader
|
# Fido v1.15 - Retail Windows ISO Downloader
|
||||||
# Copyright © 2019 Pete Batard <pete@akeo.ie>
|
# Copyright © 2019 Pete Batard <pete@akeo.ie>
|
||||||
# ConvertTo-ImageSource: Copyright © 2016 Chris Carter
|
# ConvertTo-ImageSource: Copyright © 2016 Chris Carter
|
||||||
#
|
#
|
||||||
@@ -75,6 +75,12 @@ $ko = 0x20000
|
|||||||
$WindowsVersions = @(
|
$WindowsVersions = @(
|
||||||
@(
|
@(
|
||||||
@("Windows 10", "Windows10ISO"),
|
@("Windows 10", "Windows10ISO"),
|
||||||
|
@(
|
||||||
|
"19H2 (Build 18363.418 - 2019.11)",
|
||||||
|
@("Windows 10 Home/Pro", 1429),
|
||||||
|
@("Windows 10 Education", 1431),
|
||||||
|
@("Windows 10 Home China ", ($zh + 1430))
|
||||||
|
),
|
||||||
@(
|
@(
|
||||||
"19H1 (Build 18362.356 - 2019.09)",
|
"19H1 (Build 18362.356 - 2019.09)",
|
||||||
@("Windows 10 Home/Pro", 1384),
|
@("Windows 10 Home/Pro", 1384),
|
||||||
@@ -631,6 +637,7 @@ $Continue.add_click({
|
|||||||
$html = $html.Replace("class=product-download-hidden", "")
|
$html = $html.Replace("class=product-download-hidden", "")
|
||||||
$html = $html.Replace("type=hidden", "")
|
$html = $html.Replace("type=hidden", "")
|
||||||
$html = $html.Replace(">", "/>")
|
$html = $html.Replace(">", "/>")
|
||||||
|
$html = $html.Replace(" ", " ")
|
||||||
$html = $html.Replace("IsoX86", """x86""")
|
$html = $html.Replace("IsoX86", """x86""")
|
||||||
$html = $html.Replace("IsoX64", """x64""")
|
$html = $html.Replace("IsoX64", """x64""")
|
||||||
$html = "<inputs>" + $html + "</inputs>"
|
$html = "<inputs>" + $html + "</inputs>"
|
||||||
@@ -646,7 +653,7 @@ $Continue.add_click({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($array.Length -eq 0) {
|
if ($array.Length -eq 0) {
|
||||||
Throw-Error -Req $r -Alt "Could not retreive ISO download links"
|
Throw-Error -Req $r -Alt "Could not retrieve ISO download links"
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
Error($_.Exception.Message)
|
Error($_.Exception.Message)
|
||||||
|
Reference in New Issue
Block a user