summaryrefslogtreecommitdiff
path: root/MAS/Separate-Files-Version
diff options
context:
space:
mode:
authorWindowsAddict <[email protected]>2025-02-02 18:25:46 +0530
committerWindowsAddict <[email protected]>2025-02-02 18:25:46 +0530
commit19c6612a4709694630471a3de685dbe955dbe12d (patch)
treeaa6b423da749130cd775f0c801ef6feb6b121235 /MAS/Separate-Files-Version
parent9e6f386819c5c64287e25a8229107dcdd6d91c7e (diff)
downloadMicrosoft-Activation-Scripts-19c6612a4709694630471a3de685dbe955dbe12d.zip
Optimize the tests
Diffstat (limited to 'MAS/Separate-Files-Version')
-rw-r--r--MAS/Separate-Files-Version/Activators/HWID_Activation.cmd8
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
)
)