mirror of
https://github.com/massgravel/get.activated.win.git
synced 2024-12-28 21:18:57 +01:00
Add codeberg mirror
This commit is contained in:
parent
81182013c0
commit
47bec55293
1 changed files with 10 additions and 5 deletions
15
get
15
get
|
@ -6,16 +6,21 @@ $ErrorActionPreference = "Stop"
|
||||||
|
|
||||||
$DownloadURL1 = 'https://raw.githubusercontent.com/massgravel/Microsoft-Activation-Scripts/35e044ddc85eed60b27b37c48371bd19cdc678b7/MAS/All-In-One-Version/MAS_AIO-CRC32_8C3AA7E0.cmd'
|
$DownloadURL1 = 'https://raw.githubusercontent.com/massgravel/Microsoft-Activation-Scripts/35e044ddc85eed60b27b37c48371bd19cdc678b7/MAS/All-In-One-Version/MAS_AIO-CRC32_8C3AA7E0.cmd'
|
||||||
$DownloadURL2 = 'https://bitbucket.org/WindowsAddict/microsoft-activation-scripts/raw/35e044ddc85eed60b27b37c48371bd19cdc678b7/MAS/All-In-One-Version/MAS_AIO-CRC32_8C3AA7E0.cmd'
|
$DownloadURL2 = 'https://bitbucket.org/WindowsAddict/microsoft-activation-scripts/raw/35e044ddc85eed60b27b37c48371bd19cdc678b7/MAS/All-In-One-Version/MAS_AIO-CRC32_8C3AA7E0.cmd'
|
||||||
|
$DownloadURL3 = 'https://codeberg.org/massgravel/Microsoft-Activation-Scripts/raw/commit/35e044ddc85eed60b27b37c48371bd19cdc678b7/MAS/All-In-One-Version/MAS_AIO-CRC32_8C3AA7E0.cmd'
|
||||||
|
|
||||||
$URLs = @($DownloadURL1, $DownloadURL2)
|
$URLs = @($DownloadURL1, $DownloadURL2, $DownloadURL3)
|
||||||
$RandomURL1 = Get-Random -InputObject $URLs
|
$ShuffledURLs = $URLs | Sort-Object { Get-Random }
|
||||||
$RandomURL2 = ($URLs -ne $RandomURL1)[0]
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$response = Invoke-WebRequest -Uri $RandomURL1 -UseBasicParsing
|
$response = Invoke-WebRequest -Uri $ShuffledURLs[0] -UseBasicParsing
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
$response = Invoke-WebRequest -Uri $RandomURL2 -UseBasicParsing
|
try {
|
||||||
|
$response = Invoke-WebRequest -Uri $ShuffledURLs[1] -UseBasicParsing
|
||||||
|
}
|
||||||
|
catch {
|
||||||
|
$response = Invoke-WebRequest -Uri $ShuffledURLs[2] -UseBasicParsing
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Verify script integrity
|
# Verify script integrity
|
||||||
|
|
Loading…
Reference in a new issue