mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synced 2025-02-22 13:57:18 -05:00
show error info on screen when unable to connect to licensing servers
This commit is contained in:
parent
75c34cbf50
commit
de812acdc5
@ -636,10 +636,12 @@ set "d1=!d1! $client = [System.Net.Http.HttpClient]::new();"
|
|||||||
set "d1=!d1! $response = $client.GetAsync('https://%%#').GetAwaiter().GetResult();"
|
set "d1=!d1! $response = $client.GetAsync('https://%%#').GetAwaiter().GetResult();"
|
||||||
set "d1=!d1! $response.Content.ReadAsStringAsync().GetAwaiter().GetResult()"
|
set "d1=!d1! $response.Content.ReadAsStringAsync().GetAwaiter().GetResult()"
|
||||||
%psc% "!tls! !d1!" %nul2% | findstr /i "PurchaseFD DeviceAddResponse" %nul1% || set resfail=1
|
%psc% "!tls! !d1!" %nul2% | findstr /i "PurchaseFD DeviceAddResponse" %nul1% || set resfail=1
|
||||||
|
if defined resfail %psc% "!tls! !d1!"
|
||||||
)
|
)
|
||||||
|
|
||||||
if not defined resfail (
|
if not defined resfail (
|
||||||
%psc% "!tls! irm https://licensing.mp.microsoft.com/v7.0/licenses/content -Method POST" | find /i "traceId" %nul1% || set resfail=1
|
%psc% "!tls! irm https://licensing.mp.microsoft.com/v7.0/licenses/content -Method POST" | find /i "traceId" %nul1% || set resfail=1
|
||||||
|
if defined resfail %psc% "!tls! irm https://licensing.mp.microsoft.com/v7.0/licenses/content -Method POST"
|
||||||
)
|
)
|
||||||
|
|
||||||
if defined resfail (
|
if defined resfail (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user