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 /MAS/Separate-Files-Version | |
| parent | 9e6f386819c5c64287e25a8229107dcdd6d91c7e (diff) | |
| download | Microsoft-Activation-Scripts-19c6612a4709694630471a3de685dbe955dbe12d.zip | |
Optimize the tests
Diffstat (limited to 'MAS/Separate-Files-Version')
| -rw-r--r-- | MAS/Separate-Files-Version/Activators/HWID_Activation.cmd | 8 |
1 files changed, 2 insertions, 6 deletions
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
)
)
|
