mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synced 2025-04-15 03:38:22 +00:00
Update Activate.cmd
This commit is contained in:
parent
2b1a3af5a1
commit
997d493d15
@ -486,7 +486,7 @@ goto :testserv
|
|||||||
|
|
||||||
:testserv
|
:testserv
|
||||||
set /a server_num+=1
|
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 (
|
if %errorlevel% NEQ 0 (
|
||||||
goto :server
|
goto :server
|
||||||
) else (
|
) else (
|
||||||
@ -2384,4 +2384,5 @@ if %Unattend% EQU 0 echo Press any key to exit.
|
|||||||
%_Pause%
|
%_Pause%
|
||||||
exit /b 0
|
exit /b 0
|
||||||
|
|
||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user