mirror of
				https://github.com/massgravel/Microsoft-Activation-Scripts.git
				synced 2025-10-30 08:01:39 +00:00 
			
		
		
		
	show error info on screen when unable to connect to licensing servers
This commit is contained in:
		
							parent
							
								
									75c34cbf50
								
							
						
					
					
						commit
						de812acdc5
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -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.Content.ReadAsStringAsync().GetAwaiter().GetResult()" | ||||
| %psc% "!tls! !d1!" %nul2% | findstr /i "PurchaseFD DeviceAddResponse" %nul1% || set resfail=1 | ||||
| if defined resfail %psc% "!tls! !d1!" | ||||
| ) | ||||
| 
 | ||||
| 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 | ||||
| if defined resfail %psc% "!tls! irm https://licensing.mp.microsoft.com/v7.0/licenses/content -Method POST" | ||||
| ) | ||||
| 
 | ||||
| if defined resfail ( | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 WindowsAddict
						WindowsAddict