mirror of
https://github.com/massgravel/get.activated.win.git
synced 2024-11-23 17:30:52 +07:00
Add Azure DevOps repo and remove Bitbucket and Codeberg repo
This commit is contained in:
parent
f281784336
commit
5f3bab9f1c
12
get
12
get
@ -5,22 +5,16 @@ $ErrorActionPreference = "Stop"
|
|||||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
||||||
|
|
||||||
$DownloadURL1 = 'https://raw.githubusercontent.com/massgravel/Microsoft-Activation-Scripts/52d4c52dba8e29a3c1fb295c8946dbe6cf2f0239/MAS/All-In-One-Version-KL/MAS_AIO.cmd'
|
$DownloadURL1 = 'https://raw.githubusercontent.com/massgravel/Microsoft-Activation-Scripts/52d4c52dba8e29a3c1fb295c8946dbe6cf2f0239/MAS/All-In-One-Version-KL/MAS_AIO.cmd'
|
||||||
$DownloadURL2 = 'https://bitbucket.org/WindowsAddict/microsoft-activation-scripts/raw/52d4c52dba8e29a3c1fb295c8946dbe6cf2f0239/MAS/All-In-One-Version-KL/MAS_AIO.cmd'
|
$DownloadURL2 = 'https://dev.azure.com/massgrave/e5e7ca26-b96c-4887-b3d8-ce10a5bdee05/_apis/git/repositories/a5c49950-3666-490e-afa6-1c2c2d29815e/items?path=%2FMAS%2FAll-In-One-Version-KL%2FMAS_AIO.cmd&versionType=Commit&version=52d4c52dba8e29a3c1fb295c8946dbe6cf2f0239&versionOptions=None'
|
||||||
$DownloadURL3 = 'https://codeberg.org/massgravel/Microsoft-Activation-Scripts/raw/commit/52d4c52dba8e29a3c1fb295c8946dbe6cf2f0239/MAS/All-In-One-Version-KL/MAS_AIO.cmd'
|
|
||||||
|
|
||||||
$URLs = @($DownloadURL1, $DownloadURL2, $DownloadURL3)
|
$URLs = @($DownloadURL1, $DownloadURL2)
|
||||||
$ShuffledURLs = $URLs | Sort-Object { Get-Random }
|
$ShuffledURLs = $URLs | Sort-Object { Get-Random }
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$response = Invoke-WebRequest -Uri $ShuffledURLs[0] -UseBasicParsing
|
$response = Invoke-WebRequest -Uri $ShuffledURLs[0] -UseBasicParsing
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
try {
|
$response = Invoke-WebRequest -Uri $ShuffledURLs[1] -UseBasicParsing
|
||||||
$response = Invoke-WebRequest -Uri $ShuffledURLs[1] -UseBasicParsing
|
|
||||||
}
|
|
||||||
catch {
|
|
||||||
$response = Invoke-WebRequest -Uri $ShuffledURLs[2] -UseBasicParsing
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Verify script integrity
|
# Verify script integrity
|
||||||
|
Loading…
Reference in New Issue
Block a user