fix fallback URL and format script

This commit is contained in:
Ave 2024-08-15 00:03:18 +00:00
parent fc2bb7be70
commit bc3143e87c

2
get
View File

@ -9,7 +9,7 @@ $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