Update Activate.cmd

This commit is contained in:
l198881 2021-05-13 13:07:02 -03:00 committed by GitHub
parent 2b1a3af5a1
commit 997d493d15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -486,7 +486,7 @@ goto :testserv
:testserv
set /a server_num+=1
%_psc% "$t = New-Object Net.Sockets.TcpClient;try{$t.Connect("""%KMS_IP%""", 1688)}catch{};$t.Connected" | findstr /i true 1>nul
pathping -h 1 -n -p 1 -q 1 -w 1 %KMS_IP% 1>nul Net.Sockets.TcpClient;try{$t.Connect("""%KMS_IP%""", 1688)}catch{};$t.Connected" | findstr /i true 1>nul
if %errorlevel% NEQ 0 (
goto :server
) else (
@ -2384,4 +2384,5 @@ if %Unattend% EQU 0 echo Press any key to exit.
%_Pause%
exit /b 0
::========================================================================================================================================
::========================================================================================================================================