mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synced 2025-04-13 19:08:23 +00:00
Update Activate.cmd
This commit is contained in:
parent
2b1a3af5a1
commit
997d493d15
@ -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
|
||||
|
||||
::========================================================================================================================================
|
||||
::========================================================================================================================================
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user