diff options
| author | WindowsAddict <[email protected]> | 2025-02-02 18:25:46 +0530 |
|---|---|---|
| committer | WindowsAddict <[email protected]> | 2025-02-02 18:25:46 +0530 |
| commit | 19c6612a4709694630471a3de685dbe955dbe12d (patch) | |
| tree | aa6b423da749130cd775f0c801ef6feb6b121235 | |
| parent | 9e6f386819c5c64287e25a8229107dcdd6d91c7e (diff) | |
| download | Microsoft-Activation-Scripts-19c6612a4709694630471a3de685dbe955dbe12d.zip | |
Optimize the tests
| -rw-r--r-- | MAS/All-In-One-Version-KL/MAS_AIO.cmd | 8 | ||||
| -rw-r--r-- | MAS/Separate-Files-Version/Activators/HWID_Activation.cmd | 8 |
2 files changed, 4 insertions, 12 deletions
diff --git a/MAS/All-In-One-Version-KL/MAS_AIO.cmd b/MAS/All-In-One-Version-KL/MAS_AIO.cmd index 42c837e..cefb6f3 100644 --- a/MAS/All-In-One-Version-KL/MAS_AIO.cmd +++ b/MAS/All-In-One-Version-KL/MAS_AIO.cmd @@ -869,12 +869,8 @@ licensing.mp.microsoft.com/v7.0/licenses/content login.live.com/ppsecure/deviceaddcredential.srf
purchase.mp.microsoft.com/v7.0/users/me/orders
) do if not defined resfail (
-%psc% "try { !tls! irm https://%%# -Method POST } catch { if ($_.Exception.Response -eq $null) { exit 3 } }"
-if !errorlevel!==3 (
-echo:
-set resfail=1
-%psc% "try { !tls! irm https://%%# -Method POST } catch { Write-Host """"[%%#] $($_.Exception.Message)"""" -ForegroundColor Red -BackgroundColor Black }"
-)
+%psc% "try { !tls! irm https://%%# -Method POST } catch { if ($_.Exception.Response -eq $null) { Write-Host """"[%%#] $($_.Exception.Message)"""" -ForegroundColor Red -BackgroundColor Black; exit 3 } }"
+if !errorlevel!==3 set resfail=1
)
)
diff --git a/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd b/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd index bb33f73..49d0415 100644 --- a/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd +++ b/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd @@ -632,12 +632,8 @@ licensing.mp.microsoft.com/v7.0/licenses/content login.live.com/ppsecure/deviceaddcredential.srf
purchase.mp.microsoft.com/v7.0/users/me/orders
) do if not defined resfail (
-%psc% "try { !tls! irm https://%%# -Method POST } catch { if ($_.Exception.Response -eq $null) { exit 3 } }"
-if !errorlevel!==3 (
-echo:
-set resfail=1
-%psc% "try { !tls! irm https://%%# -Method POST } catch { Write-Host """"[%%#] $($_.Exception.Message)"""" -ForegroundColor Red -BackgroundColor Black }"
-)
+%psc% "try { !tls! irm https://%%# -Method POST } catch { if ($_.Exception.Response -eq $null) { Write-Host """"[%%#] $($_.Exception.Message)"""" -ForegroundColor Red -BackgroundColor Black; exit 3 } }"
+if !errorlevel!==3 set resfail=1
)
)
|
