mirror of
https://github.com/massgravel/get.activated.win.git
synced 2024-12-28 21:18:57 +01:00
Fix $RandomURL2
This commit is contained in:
parent
fc2bb7be70
commit
de6bdbf67f
1 changed files with 2 additions and 2 deletions
4
get
4
get
|
@ -9,13 +9,13 @@ $DownloadURL2 = 'https://bitbucket.org/WindowsAddict/microsoft-activation-script
|
||||||
|
|
||||||
$URLs = @($DownloadURL1, $DownloadURL2)
|
$URLs = @($DownloadURL1, $DownloadURL2)
|
||||||
$RandomURL1 = Get-Random -InputObject $URLs
|
$RandomURL1 = Get-Random -InputObject $URLs
|
||||||
$RandomURL2 = $URLs -ne $RandomURL1
|
$RandomURL2 = ($URLs -ne $RandomURL1)[0]
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$response = Invoke-WebRequest -Uri $RandomURL1 -UseBasicParsing
|
$response = Invoke-WebRequest -Uri $RandomURL1 -UseBasicParsing
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
$response = Invoke-WebRequest -Uri $RandomURL2 -UseBasicParsing
|
$response = Invoke-WebRequest -Uri $RandomURL2 -UseBasicParsing
|
||||||
}
|
}
|
||||||
|
|
||||||
$rand = [Guid]::NewGuid().Guid
|
$rand = [Guid]::NewGuid().Guid
|
||||||
|
|
Loading…
Reference in a new issue