diff options
| author | WindowsAddict | 2024-08-15 00:05:56 +0000 |
|---|---|---|
| committer | WindowsAddict | 2024-08-15 00:05:56 +0000 |
| commit | de6bdbf67f257b650eb616c241b5542f2d2625ff (patch) | |
| tree | f71fa1fbd973b20743eb35e1ef2d6468d51e2413 | |
| parent | fc2bb7be709537f059b819bbcac04e49c474b9c7 (diff) | |
| download | massgravel.github.io-de6bdbf67f257b650eb616c241b5542f2d2625ff.zip | |
Fix $RandomURL2
| -rw-r--r-- | get | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -9,13 +9,13 @@ $DownloadURL2 = 'https://bitbucket.org/WindowsAddict/microsoft-activation-script $URLs = @($DownloadURL1, $DownloadURL2)
$RandomURL1 = Get-Random -InputObject $URLs
-$RandomURL2 = $URLs -ne $RandomURL1
+$RandomURL2 = ($URLs -ne $RandomURL1)[0]
try {
$response = Invoke-WebRequest -Uri $RandomURL1 -UseBasicParsing
}
catch {
- $response = Invoke-WebRequest -Uri $RandomURL2 -UseBasicParsing
+ $response = Invoke-WebRequest -Uri $RandomURL2 -UseBasicParsing
}
$rand = [Guid]::NewGuid().Guid
|
