Fix $RandomURL2 and formatting

This commit is contained in:
WindowsAddict 2024-08-15 06:09:59 +05:30
parent 0441728f12
commit 6b6d52cc29

View File

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