How to modify the 3389 remote port and the super administrator password on Windows server

How to modify the 3389 remote port and super administrator password of Windows server

When using Windows Server, modify the default3389 remote portas well asSuper administrator passwordIt is an important step to improve system security. The default port 3389 is the standard port for remote desktop connection. Modifying it can effectively reduce the risk of brute force attacks. This tutorial will detail how to, and securely change the super administrator password. With these simple steps, you can ensure that your server's security is taken to the next level.

How to modify the 3389 remote port and the super administrator password on Windows server-1

 

1. Modify the remote desktop port 3389

Modifying port 3389 can be done by modifying the registry. The following are the detailed steps:

1.1 Open the Registry Editor
1. Press Win + R keys to open the Run window.
2. Input regedit, and then press Enter to open the Registry Editor.

1.2 Navigate to Remote Desktop Port Settings
In the Registry Editor, expand the following paths:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp

Note: Both locations above need to be changed.

1.3 Modify the port number
1. Find the PortNumber field and double-click it.
2. Change the value from 3389 to the new port you want to set (for example: 3390).
3. Click OK to save the changes.

How to modify the 3389 remote port and the super administrator password on Windows server-1

1.4 Update firewall settings
Make sure the new port is open in Windows Firewall:
1. Open Control Panel and select System and Security > Windows Defender Firewall.
2. Click Advanced Settings.
3. Select Inbound Rules on the left, and then choose New Rule.
4. Select a port and click Next.
5. Select TCP, enter a new port number (for example: 3390), and then click Next.
6. Select Allow the connection, click Next, name the rule and complete the settings.

 

How to modify the 3389 remote port and the super administrator password on Windows server-1How to modify the 3389 remote port and the super administrator password on Windows server-1

 

1.5 Restart the server
For the changes to take effect, restart your Windows server.

2. Change the super administrator password

Changing the super administrator password can be done in the following ways:

2.1 Using Computer Management
1. Right-click "Computer" or "This PC" and select "Manage".
2. In the menu on the left, locate and expand Local Users and Groups > Users.
3. Find the "Administrator" account, right-click it and select "Set Password".
4. Enter the new password in the pop-up dialog box and click OK to confirm.

2.2 Using the Command Prompt
You can also change the password through the command prompt:
1. Press Win + R and enter cmd, press Enter to open the command prompt.
2. Type the following command and press Enter:

net user Administrator new password

Replace New Password with the password you want.

3. Confirm that the setup is successful

3.1 Test remote connection
On another computer, open Remote Desktop Connection (mstsc) and enter Server IP:New Port(like 192.168.1.100:3390), test whether the connection is successful.

3.2 Confirm administrator password change
Log in with an administrator account and confirm that the new password works properly.

Through this tutorial, you have successfully modified the 3389 remote desktop port and super administrator password of the Windows server. These steps not only improve the security of the server, but also allow you to better manage the system. If you need to know more about Windows server management, please pay attention to our subsequent articles.

Win7/2008+ configuration scripts for IP, firewall, remote desktop and port, password setting, etc.

@echo off & color 0A setlocal enabledelayedexpansion mode con cols=100 lines=50 :: ************************************************************************** :: ** Author : Saiwa :: ** Email : 93959@163.com :: ** Create Time : 2019-06-06 15:20 :: ** Last modified : 2022-12-28 13:29 :: ** Filename : windows_tools.cmd :: ** Description : Win7/2008+Configure IP, firewall, remote desktop and port, set passwords, etc. :: ********************************************************************************* :: chcp 437 :: Determine the system language through the active code page, display Chinese if Chinese, and English if non-Chinese for /f "tokens=1-2 delims= " %%a in ('chcp ^| findstr "936"') do ( set "code=%%b" ) if defined code ( goto cn ) else goto en :cn :: Title title WinTools Applicable to win7/2008 and above systems--By Saiwa :: Global variables, set DNS set dns1=8.8.8.8 set dns2=8.8.4.4 set "input_error=Input is incorrect, please re-enter..." set "port_error=Input is incorrect, range: 1024-65535 Please re-enter..." set ver=V2.6 :: Enter the menu goto menu :: ============================================================================================================================ :: Menu:menu cls echo. echo Windows System Configuration Tool[!ver!] By Saiwa echo ------------------------------------------ echo 1 Add consecutive IP echo 2 Add a whole segment of IP echo 3 Configure the main IP echo 4 Set the IP acquisition method to DHCP echo 5 View and modify the remote desktop port number echo 6 Set the administrator's password echo 7 Set the firewall to allow the specified port number echo 8 Block high-risk ports and enable remote desktop echo 9 Use speedtest_cli command line speed test echo a Use iperf3 command line speed test, optional node echo q Press Enter to exit echo ------------------------------------------ echo Instructions for use: echo 1. In any input waiting interface, enter 0 to return to this menu echo 2. IP configuration is only applicable when the gateway is the last available IP in the IP segment: rechoice echo. set choice=init set /p choice=Please select your operation: if "%choice%"=="0" goto menu if "%choice%"=="cmd" cmd echo;%choice%|findstr "^[1-9aq]$">nul || echo.&&echo !input_error!&&goto rechoice echo;%choice%|findstr "^[1-4]$">nul && goto getname if "%choice%"=="5" goto setremoveport if "%choice%"=="6" goto resetpass if "%choice%"=="7" goto allowport if "%choice%"=="8" goto secset if "%choice%"=="9" goto speedtest_cli if "%choice%"=="a" goto iperf3_test if "%choice%"=="q" exit :: =================================================================================================================== :: Get the name of the network card configured with IP:getname cls echo. set i=1 for /f "tokens=3*" %%a in ('netsh interface show interface ^| findstr "Connected"') do ( set "ethname!i!=%%b" set /a i+=1 ) set /ai=%i%-1 if defined ethname1 ( if !i! == 1 ( echo The only network card currently connected is:!ethname1! set "ethname=!ethname1!" goto inputbegin ) echo The network cards currently connected are: for /l %%j in (1,1,!i!) do ( echo %%j. !ethname%%j! ) ) else echo No network card is connected, please check... Press any key to return to the main menu&& pause >nul 2>nul & goto menu set nic=init set /p nic=Please select the network card name to be configured[1-!i!]: if "%nic%"=="0" goto menu echo;%nic%|findstr "^[1-!i!]$">nul || (cls&&echo.&&echo !input_error! && goto getname) set "ethname=!ethname%nic%!" echo.&echo The network card you selected is "!ethname!" :inputbegin if "%choice%"=="1" goto inputipm if "%choice%"=="2" goto inputipd if "%choice%"=="3" goto inputips if "%choice%"=="4" goto ipbydhcp :: ==================================================================================================== :: Configure the primary IP :inputips echo. echo Primary IP input format example: 108.186.1.1/27 set "ips=init" set /p ips=Enter the IP you want to configure: if %ips% == 0 goto menu for /f "tokens=1-5* delims=./ " %%a in ("!ips!") do ( set x1=%%a set x2=%%b set x3=%%c set x4=%%d set x5=%%e ) for %%i in (!x1! !x2! !x3! !x4! !x5!) do ( set /a %%i 2>nul || (echo !input_error! & goto inputips) ) if !x1! geq 1 if !x1! leq 255 if !x2! geq 0 if !x2! leq 255 ^ if !x3! geq 0 if !x3! leq 255 if !x4! geq 0 if !x4! leq 255 ^ if! !input_error! & goto inputips :inputok if !x5! == 29 ( set x6=248 set /an=!x4!/8 set /am=!n!*8 set /a x7=!m!+6 ) if! 27 ( set x6=224 set /an=!x4!/32 set /am=!n!*32 set /a x7=!m!+30 ) if !x5! == 26 ( set x6=192 set /an=!x4!/64 set /am=!n!*64 set /a x7=!m!+62 ) if !x5! == 25 ( set x6=128 set /an=!x4!/128 set /am=!n!*128 set /a x7=!m!+126 ) if !x5! == 24 ( set x6=0 set m=0 set x7=254 ) if !x4! leq !m! echo !input_error! && goto inputips if !x4! geq !x7! echo !input_error! && goto inputips set addr=!x1!.!x2!.!x3!.!x4! set netmask=255.255.255.!x6! set gateway=!x1!.!x2!.!x3!.!x7! echo. echo The IP information you want to configure is as follows: echo Server IP:! addr! !dns2! echo. set tip=init set /p tip=After confirmation, please press Enter to start configuration... if "%tip%"=="0" goto menu echo Configuring the primary IP... netsh interface ip set address name="!ethname!" source=static addr=!addr! mask=!netmask! gateway=!gateway! 1 netsh interface ip set dns name="!ethname!" source=static addr=!dns1! >/nul netsh interface ip add dns "!ethname!" addr=!dns2! index=2 >/nul ping 127.1 -n 5 >nul echo Primary IP configuration completed echo. ping baidu.com ::echo. ::ping baidu.com >nul && (echo can PING Baidu!!) || (echo cannot PING Baidu!!) :configmore echo. set next=init set /p next=1. Add consecutive IPs, 2. Add a whole range of IPs, others return to the menu: if "%next%"=="0" goto menu if !next! == 1 goto inputipm if !next! == 2 goto inputipd goto menu :: ============================================================================================================ :: Add consecutive IPs :inputipm echo. echo For example, the configuration is: 108.186.1.1/27-108.186.1.10/27 echo Then please enter: 108.186.1.1-10/27 echo. set ipm=init set /p ipm=Enter the consecutive IP you want to configure: if "%ipm%" == "0" goto menu echo. for /f "tokens=1-6* delims=./- " %%a in ("!ipm!") do ( set x1=%%a set x2=%%b set x3=%%c set x4=%%d set x5=%%e set x6=%%f for %%i in (!x1! !x2! !x3! !x4! !x5!) do ( echo;%%i|findstr "^[0-9]$">nul || echo;%%i|findstr "^[1-9][0-9]$">nul || ^ echo;%%i|findstr "^[1][0-9][0-9]$">nul || echo;%%i|findstr "^[2][0-4][0-9]$">nul || ^ echo;%%i|findstr "^[2][5][0-5]$">nul || echo !input_error! && goto inputipm ) echo;!x6!|findstr "^[2][4-9]$">nul || echo !input_error! && goto inputipm if !x6! == 29 ( set x6=248 set /an=!x4!/8 set /am=!n!*8 set /a x7=!m!+6 ) if !x6! == 28 ( set x6=240 set /an=!x4!/16 set /am=!n!*16 set /a x7=!m!+14 ) if !x6! == 27 ( set x6=224 set /an=!x4!/32 set /am=!n!*32 set /a x7=!m!+30 ) if !x6! == 26 ( set x6=192 set /an=!x4!/64 set /am=!n!*64 set /a x7=!m!+62 ) if !x6! == 25 ( set x6=128 set /an=!x4!/128 set /am=!n!*128 set /a x7=!m!+126 ) if !x6! == 24 ( set x6=0 set m=0 set x7=254 ) if !x4! leq !m! (echo !input_error! & goto inputipm) if !x4! geq !x7! (echo !input_error! & goto inputipm) if !x5! lss !x4! (echo !input_error! & goto inputipm) if !x5! geq !x7! (echo !input_error! & goto inputipm) ) :start_configure set start_ip=!x1!.!x2!.!x3!.!x4! set end_ip=!x1!.!x2!.!x3!.!x5! set netmask=255.255.255.!x6! set gateway=!x1!.!x2!.!x3!.!x7! echo. echo The IP information you want to configure is as follows: echo start IP: !start_ip! echo end IP: !end_ip! echo Gateway IP: !gateway! echo Subnet mask: !netmask! set net=!x1!.!x2!.!x3! echo. set tip=init set /p tip=Please press Enter to start configuration after confirmation... if "%tip%"=="0" goto menu echo. for /l %%i in (!x4!,1,!x5!) do netsh interface ip add address "!ethname!" !net!.%%i !netmask! >nul && (echo !net!.%%i has been added to "!ethname!") netsh interface ip add address "!ethname!" gateway=!gateway! gwmetric=2 >/nul netsh interface ip set dns name="!ethname!" source=static addr=!dns1! >/nul netsh interface ip add dns "!ethname!" addr=!dns2! index=2 >/nul echo. ping baidu.com >nul && (echo can PING through Baidu!!) || (echo cannot PING through Baidu!!) goto configmore :: ============================================================================================================= :: Add a whole IP segment :inputipd echo. echo only supports /24,/25,/26,/27,/28,/29 whole IP segment configuration echo whole IP segment format input example: 108.186.1.0/24 echo. set ipd=init set /p ipd=Please enter the IP segment you want to configure: if "%ipd%" == "0" goto menu for /f "tokens=1-5* delims=./ " %%a in ("!ipd!") do ( set x1=%%a set x2=%%b set x3=%%c set x4=%%d set x6=%%e for %%i in (!x1! !x2! !x3! !x4!) do ( echo;%%i|findstr "^[0-9]$">nul || echo;%%i|findstr "^[1-9][0-9]$">nul || ^ echo;%%i|findstr "^[1][0-9][0-9]$">nul || echo;%%i|findstr "^[2][0-4][0-9]$">nul || ^ echo;%%i|findstr "^[2][5][0-5]$">nul || echo !input_error! && goto inputipd ) echo;!x6!|findstr "^[2][4-9]$">nul || echo !input_error! && goto inputipd if !x6! == 29 ( set /an=!x4! %% 8 if !n! neq 0 echo !input_error! && goto inputipd set /a x4=!x4!+1 set /a x5=!x4!+4 set /a x7=x5+1 set x6=248) if! 27 ( set /an=!x4! %% 32 if !n! neq 0 echo !input_error! && goto inputipd set /a x4=!x4!+1 set /a x5=!x4!+28 set /a x7=x5+1 set x6=224) if !x6! == 26 ( set /an=!x4! %% 64 if !n!neq 0 echo !input_error! && goto inputipd set /a x4=!x4!+1 set /a x5=!x4!+60 set /a x7=x5+1 set x6=192) if !x6! == 25 ( set /an=!x4! %% 128 if !n! neq 0 echo !input_error! && goto inputipd set /a x4=!x4!+1 set /a x5=!x4!+124 set /a x7=x5+1 set x6=128) if! x6! == 24 ( if !x4! neq 0 echo !input_error! && goto inputipd set /a x4=!x4!+1 set /a x5=!x4!+252 set /a x6=0) ) goto start_configure :: ===================================================================================================== :: Set the network card to obtain IP through DHCP :ipbydhcp netsh interface ip set address name="!ethname!" source=DHCP >nul 2>nul netsh interface ip set dns name="!ethname!" source=DHCP >nul 2>nul echo.&echo !ethname! Has been set to obtain IP through DHCP. Please press any key to return to the main menu&& pause >nul 2>nul & goto menu :: ============================================================================================================== :: Set the administrator password: resetpass cls echo. echo Set the password of the administrator user administrator: inputpwd echo. set "var1=This script does not support ^!^#^^^&^|^"^<^> These characters! " set "var2=If there are the above characters, the user password will be invalid! " echo !var1! echo !var2! echo !var2! echo !var2! echo. set "chars=^^! ^^# ^^ ^^& ^^| ^^" ^< ^>" set pwd=0 set /p "pwd=Please enter the password to be set: " if %pwd% == 0 goto menu for %%i in (!chars!) do set pwd=!pwd:^%%i=! echo. net user administrator %pwd% >nul 2>nul && (echo Password setting successful) || (echo Password does not meet the requirements of the password policy, please re-enter... && goto inputpwd ) echo. echo Please press any key to return to the main menu&& pause >nul 2>nul & goto menu :: =================================================================================================== :: Modify the remote desktop port number: setremoveport cls echo. set n=1 for /f "tokens=1-3 delims= " %%i in ('tasklist /svc ^| findstr "TermService"') do ( set pid=%%j set /a n+=1 ) set /an=!n!-1 if !n! == 1 ( for /f "tokens=1-3 delims=: " %%a in ('netstat -p tcp -ano ^| findstr ="!pid!"') do (set "removeport=%%c") echo. echo The current remote port number of the system is: !removeport! ) else echo Remote Desktop service is not enabled, press any key to return to the main menu&& pause >nul 2>nul && goto menu echo. echo Remote Desktop port number range: 1024-65535 cannot conflict with other ports: resetremoveport echo. set port=init set /p port=Please enter the port number to be set: if %port% == 0 goto menu echo. set /a %port% 2>nul || (echo !port_error! & goto resetremoveport) if !port! geq 1024 if !port! leq 65535 goto portok echo !port_error! & goto resetremoveport :portok netsh advfirewall firewall delete rule name="Allow %port%" >nul 2>nul netsh advfirewall firewall add rule name="Allow %port%" protocol=TCP dir=in localport=%port% action=allow >nul && (echo firewall allows %port% port) echo Setting the remote port number... reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp" /v PortNumber /t reg_dword /d %port% /f >nul reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v PortNumber /t reg_dword /d %port% /f >nul ping 127.1 -n 2 >nul echo Remote port number setting completed echo Restarting Remote Desktop Service... net stop UmRdpService >nul 2>nul net stop TermService >nul 2>nul ping 127.1 -n 5 >nul 2>nul net start TermService >nul 2>nul ping 127.1 -n 2 >nul echo Remote Desktop Service restart completed echo. echo Please press any key to return to the main menu&& pause >nul 2>nul & goto menu :: ======================================================================================================== :: Firewall allows the specified port number: allowport cls echo. set port=init set /p port=Please enter the port number to be allowed: if %port% == 0 goto menu set /a %port% 2>nul || (echo !port_error! & goto allowport) echo. if !port! geq 1024 if !port! leq 65535 goto portok2 echo !port_error! & goto allowport :portok2 netsh advfirewall firewall delete rule name="Allow %port%" >nul 2>nul netsh advfirewall firewall add rule name="Allow %port%" protocol=TCP dir=in localport=%port% action=allow >nul && (echo firewall allows %port% port) echo. echo Please press any key to return to the main menu&& pause >nul 2>nul & goto menu :: ================================================================================================== :: Configure the firewall and enable remote desktop: secset cls echo. set tip=init echo Set the firewall to block TCP and UDP ports 135\137\138\139\445 set /p tip=Allow PING, enable remote desktop, press Enter to confirm to start configuration... if %tip% == 0 goto menu echo Configuring the firewall, allowing PING, enabling remote:: Disable all inbound rules netsh advfirewall firewall set rule name=all dir=in new enable=no >nul 2>nul :: Add ports that block TCP and UDP connections (135\137\138\139\445) netsh advfirewall firewall delete rule name="DENY tcp 135" >nul 2>nul netsh advfirewall firewall add rule name="DENY tcp 135" protocol=TCP dir=in localport=135 action=block >nul && (echo DENY tcp 135) netsh advfirewall firewall delete rule name="DENY udp 135" >nul 2>nul netsh advfirewall firewall add rule name="DENY udp 135" protocol=UDP dir=in localport=135 action=block >nul && (echo DENY udp 135) netsh advfirewall firewall delete rule name="DENY tcp 137" >nul 2>nul netsh advfirewall firewall add rule name="DENY tcp 137" protocol=TCP dir=in localport=137 action=block >nul && (echo DENY tcp 137) netsh advfirewall firewall delete rule name="DENY udp 137" >nul 2>nul netsh advfirewall firewall add rule name="DENY udp 137" protocol=UDP dir=in localport=137 action=block >nul && (echo DENY udp 137) netsh advfirewall firewall delete rule name="DENY tcp 138" >nul 2>nul netsh advfirewall firewall add rule name="DENY tcp 138" protocol=TCP dir=in localport=138 action=block >nul && (echo DENY tcp 138) netsh advfirewall firewall delete rule name="DENY udp 138" >nul 2>nul netsh advfirewall firewall add rule name="DENY udp 138" protocol=UDP dir=in localport=138 action=block >nul && (echo DENY udp 138) netsh advfirewall firewall delete rule name="DENY tcp 139" >nul 2>nul netsh advfirewall firewall add rule name="DENY tcp 139" protocol=TCP dir=in localport=139 action=block >nul && (echo DENY tcp 139) netsh advfirewall firewall delete rule name="DENY udp 139" >nul 2>nul netsh advfirewall firewall add rule name="DENY udp 139" protocol=UDP dir=in localport=139 action=block >nul && (echo DENY udp 139) netsh advfirewall firewall delete rule name="DENY tcp 445" >nul 2>nul netsh advfirewall firewall add rule name="DENY tcp 445" protocol=TCP dir=in localport=445 action=block >nul && (echo DENY tcp 445) netsh advfirewall firewall delete rule name="DENY udp 445" >nul 2>nul netsh advfirewall firewall add rule name="DENY udp 445" protocol=UDP dir=in localport=445 action=block >nul && (echo DENY udp 445) :: ALLOW PING netsh advfirewall firewall set rule name="File and Printer Sharing (Echo Request - ICMPv4-In)" dir=in new enable=yes >nul && (echo ALLOW PING) netsh advfirewall firewall set rule name="File and Printer Sharing (Echo Request - ICMPv6-In)" dir=in new enable=yes >nul 2>nul :: Enable Remote Desktopreg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f >nul && (echo enable Remote Desktop) :: Firewall allows remote connectionsnetsh advfirewall firewall set rule name="Remote Desktop(TCP-In)" dir=in new enable=yes >nul && (echo firewall allows Remote Desktop) || ^ netsh advfirewall firewall set rule name="Remote Desktop- User Mode(TCP-In)" dir=in new enable=yes >nul && (echo firewall allows Remote Desktop) netsh advfirewall firewall set rule name="Remote Desktop- User Mode(UDP-In)" dir=in new enable=yes >nul 2>nul netsh advfirewall firewall set rule name="Remote Desktop- Remote Monitoring(TCP-In)" dir=in new enable=yes >nul 2>nul netsh advfirewall firewall set rule name="Remote Desktop - RemoteFX (TCP-In)" dir=in new enable=yes >nul 2>nul :: Remote Desktop security authentication 0 is to allow any connection 1 is to allow only secure connections reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v "UserAuthentication" /t REG_DWORD /d "0" /f >nul 2>nul :: Turn off disk self-test reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager" /v BootExecute /t reg_multi_sz /d "" /f >nul 2>nul :: Turn off unexpected reboot into repair mode bcdedit /set {default} bootstatuspolicy ignoreallfailures >nul 2>nul bcdedit /set {current} recoveryenabled No >nul 2>nul :: sync with time.windows.com sc config w32time start= auto >nul 2>nul net stop w32time >nul 2>nul net start w32time >nul 2>nul net time \\127.0.0.1 >nul 2>nul reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\W32Time\Config" /v MaxNegPhaseCorrection /t REG_DWORD /d "0xFFFFFFFF" /f >nul 2>nul reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\W32Time\Config" /v MaxPosPhaseCorrection /t REG_DWORD /d "0xFFFFFFFF" /f >nul 2>nul :: sync with time.windows.com sc config w32time start= auto >nul 2>nul net stop w32time >nul 2>nul net start w32time >nul 2>nul net time \\127.0.0.1 /setsntp:time.windows.com >nul 2>nul w32tm /config /manualpeerlist:time.windows.com,0x8 /syncfromflags:MANUAL >nul 2>nul w32tm /resync >nul 2>nul :: Turn off IE ESC yes to turn off no to turn on reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" /v "Enable Browser Extensions" /d "yes" /t REG_SZ /f >nul 2>nul reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" /v "Play_Animations" /d "yes" /t REG_SZ /f >nul 2>nul reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" /v "Play_Background_Sounds" /d "yes" /t REG_SZ /f >nul 2>nul :: Turn on the firewall netsh advfirewall set allprofiles state on >nul 2>nul && (echo Firewall is turned on) echo. echo Setting is complete, please press any key to return to the main menu&& pause >nul 2>nul & goto menu :speedtest_cli set speedtestfile=C:\Windows\System32\speedtest.exe if not exist !speedtestfile! ( powershell Invoke-WebRequest -Uri "http://198.200.51.51/speedtest.exe" -OutFile "C:\Windows\System32\speedtest.exe" speedtest.exe --accept-license 2>null ) else ( speedtest.exe --accept-license 2>null ) echo. echo Please press any key to return to the main menu&& pause >nul 2>nul & goto menu :iperf3_test cls set "SV2_SERVER=142.4.97.233" set "SV6_SERVER=107.148.199.113" set "LA2_SERVER=107.148.135.25" set iperf3file=C:\Windows\System32\iperf3.exe if not exist !iperf3file! ( echo.&&echo Downloading iperf3... powershell Invoke-WebRequest -Uri "http://198.200.51.51/iperf3/cygwin1.dll" -OutFile "C:\Windows\System32\cygwin1.dll" powershell Invoke-WebRequest -Uri "http://198.200.51.51/iperf3/iperf3.exe" -OutFile "C:\Windows\System32\iperf3.exe" ) else ( echo.&&echo iperf3 has been downloaded... ) :choice_SERVER echo optional iperf3 speed test node echo 1 SV2 echo 2 SV6 echo 3 LA2 set choice=init set /p choice=Please select the speed test node ID [1-3]: if "%choice%"=="0" goto menu if "%choice%"=="cmd" cmd if "%choice%"=="1" ( echo.&&echo Test the upload bandwidth from the local machine to the SV2 node... iperf3 -c !SV2_SERVER! echo.&&echo Test the download bandwidth from the local machine to the SV2 node... iperf3 -c !SV2_SERVER! -R echo Please press any key to return to the main menu&& pause >nul 2>nul & goto menu) if "%choice%"=="2" ( echo.&&echo Test the upload bandwidth from the local machine to the SV6 node... iperf3 -c !SV6_SERVER! echo.&&echo Test the download bandwidth from this machine to the SV6 node... iperf3 -c !SV6_SERVER! -R echo Please press any key to return to the main menu&& pause >nul 2>nul & goto menu) if "%choice%"=="3" ( echo.&&echo Test the upload bandwidth from this machine to the LA2 node... iperf3 -c !LA2_SERVER! echo.&&echo Test the download bandwidth from this machine to the LA2 node... iperf3 -c !LA2_SERVER! -R echo Please press any key to return to the main menu&& pause >nul 2>nul & goto menu) echo !input_error! && goto choice_SERVER :: ####################### ####################### ####################### ####################### :en :: Title title WinTools Applicable to win7/2008+ system --By Shihua :: Global variable,DNS set dns1=8.8.8.8 set dns2=8.8.4.4 set "input_error=Input error,please retype..." set "port_error=Input error,range:1024-65535 please retype..." set ver=2.6 :: init goto menu_en :: ============================================================================================== :: menu_en :menu_en cls echo. echo Windows system tools [!ver!] --By Saiwa echo ---------------------------------------------------------- echo 1 Configure continuous IP echo 2 Configure a subnet IP echo 3 Configure the man IP echo 4 Set get IP by DHCP echo 5 Show^&Set RDP port echo 6 Set administrator's pwd echo 7 Set firewall allow your port echo 8 Enable RDP and close unsafe port echo 9 Download and run speedtest_cli echo a Download and run iperf3_cli echo q Exit echo -------------------------------------------------------- echo Instructions: echo 1. Any waiting for input, input "0" return the menu echo 2. All IP configurations only applies if the gateway echo is the last available IP of the subnet :rechoice_en echo. set choice=init set /p choice=Pls input: if "%choice%"=="0" goto menu_en if "%choice%"=="cmd" cmd echo;%choice%|findstr "^[1-9aq]$">nul || echo.&&echo !input_error!&&goto rechoice_en echo;%choice%|findstr "^[1-4]$">nul && goto getname_en if "%choice%"=="5" goto setremoveport_en if "%choice%"=="6" goto resetpass_en if "%choice%"=="7" goto allowport_en if "%choice%"=="8" goto secset_en if "%choice%"=="9" goto speedtest_cli_en if "%choice%"=="a" goto iperf3_en if "%choice%"=="q" exit :: ============================================================================================== :: Get Connected NIC :getname_en cls echo. set i=1 for /f "tokens=3*" %%a in ('netsh interface show interface ^| findstr "Connected"') do ( set "ethname!i!=%%b" set /a i+=1 ) set /ai=%i%-1 if defined ethname1 ( if !i! == 1 ( echo The connected NIC only: !ethname1! set "ethname=!ethname1!" goto inputbegin_en ) echo The connected NIC as follows: for /l %%j in (1,1,!i!) do ( echo %%j. !ethname%%j! ) ) else echo No available NIC... Press any key to return menu. && pause >nul 2>nul & goto menu_en set nic=init set /p nic=Pls select NIC [1-!i!]: if "%nic%"=="0" goto menu_en echo;%nic%|findstr "^[1-!i!]$">nul || (cls&&echo.&&echo !input_error! && goto getname_en) set "ethname=!ethname%nic%!" echo.&echo The IP will be configured on the "!ethname!" :inputbegin_en if "%choice%"=="1" goto inputipm_en if "%choice%"=="2" goto inputipd_en if "%choice%"=="3" goto inputips_en if "%choice%"=="4" goto ipbydhcp_en :: ============================================================================================== :: Configure the man IP :inputips_en echo. echo Man IP example: 108.186.1.1/27 set "ips=init" set /p ips=Pls input man IP: if %ips% == 0 goto menu_en for /f "tokens=1-5* delims=./ " %%a in ("!ips!") do ( set x1=%%a set x2=%%b set x3=%%c set x4=%%d set x5=%%e ) for %%i in (!x1! !x2! !x3! !x4! !x5!) do ( set /a %%i 2>nul || (echo !input_error! & goto inputips_en) ) if !x1! geq 1 if !x1! leq 255 if !x2! geq 0 if !x2! leq 255 ^ if !x3! geq 0 if !x3! leq 255 if !x4! geq 0 if !x4! leq 255 ^ if !x5! geq 24 if !x5! leq 29 goto inputok_en cls echo.echo !input_error! == 29 ( set x6=248 set /an=!x4!/8 set /am=!n!*8 set /a x7=!m!+6 ) if !x5! == 28 ( set x6=240 set /an=!x4!/16 set /am=!n!*16 set /a x7=!m!+14 ) if !x5! == 27 ( set x6=224 set /an=!x4!/32 set /am=!n!*32 set /a x7=!m!+30 ) if !x5! == 26 ( set x6=192 set /an=!x4!/64 set /am=!n!*64 set /a x7=!m!+62 ) if !x5! == 25 ( set x6=128 set /an=!x4!/128 set /am=!n!*128 set /a x7=!m!+126 ) if !x5! == 24 ( set x6=0 set m=0 set x7=254 ) if !x4! leq !m! echo !input_error! && goto inputips_en if !x4! geq !x7! echo !input_error! && goto inputips_en set addr=!x1!.!x2!.!x3!.!x4! set netmask=255.255.255.!x6! set gateway=!x1!.!x2!.!x3!.!x7! echo. echo The IP details as follows: echo. echo Man IP: !addr! echo NetMask: !netmask! echo Gateway: !gateway! echo DNS1: !dns1! echo DNS2: !dns2! echo. set tip=init set /p tip=Please confirm then press Enter... if "%tip%"=="0" goto menu_en echo Configuring the man IP... netsh interface ip set address name="!ethname!" source=static addr=!addr! mask=!netmask! gateway=!gateway! 1 netsh interface ip set dns name="!ethname!" source=static addr=!dns1! >/nul netsh interface ip add dns "!ethname!" addr=!dns2! index=2 >/nul ping 127.1 -n 5 >nul echo Configuration done echo. ping www.baidu.com ::echo. ::ping www.baidu.com >nul && (echo The network is ok.) || (echo The network is bad) :configmore_en echo. set next=init set /p next=1.Configure continuous IP; 2.Configure a subnet IP; Else return menu: if "%next%"=="0" goto menu_en if !next! == 1 goto inputipm_en if !next! == 2 goto inputipd_en goto menu_en :: ============================================================================================ :: Configure continuous IP :inputipm_en echo. echo Example: 108.186.1.1/27-108.186.1.10/27 echo Pls input: 108.186.1.1-10/27 echo. set ipm=init set /p ipm=Pls input continuous IP: if "%ipm%" == "0" goto menu_en echo. for /f "tokens=1-6* delims=./- " %%a in ("!ipm!") do ( set x1=%%a set x2=%%b set x3=%%c set x4=%%d set x5=%%e set x6=%%f for %%i in (!x1! !x2! !x3! !x4! !x5!) do ( echo;%%i|findstr "^[0-9]$">nul || echo;%%i|findstr "^[1-9][0-9]$">nul || ^ echo;%%i|findstr "^[1][0-9][0-9]$">nul || echo;%%i|findstr "^[2][0-4][0-9]$">nul || ^ echo;%%i|findstr "^[2][5][0-5]$">nul || echo !input_error! && goto inputipm_en ) echo;!x6!|findstr "^[2][4-9]$">nul || echo !input_error! && goto inputipm_en if !x6! == 29 ( set x6=248 set /an=!x4!/8 set /am=!n!*8 set /a x7=!m!+6 ) if! 27 (set x6=224 set /an=!x4!/32 set /am=!n!*32 set /a x7=!m!+30 ) if !x6! == 26 ( set x6=192 set /an=!x4!/64 set /am=!n!*64 set /a x7=!m!+62 ) if !x6! == 25 ( set x6=128 set /an=!x4!/128 set /am=!n!*128 set /a x7=!m!+126 ) if !x6! == 24 ( set x6=0 set m=0 set x7=254 ) if !x4! leq !m! (echo !input_error! & goto inputipm_en) if !x4! geq! if !x5! lss !x4! (echo !input_error! & goto inputipm_en) if !x5! geq !x7! (echo !input_error! & goto inputipm_en) ) :start_configure_en set start_ip=!x1!.!x2!.!x3!.!x4! set end_ip=!x1!.!x2!.!x3!.!x5! set netmask=255.255.255.!x6! set gateway=!x1!.!x2!.!x3!.!x7! echo. echo The continuous IP details as follows: echo. echo Start IP: !start_ip! echo End IP: !end_ip! echo Gateway : !gateway! echo Netmask : !netmask! set net=!x1!.!x2!.!x3! echo. set tip=init set /p tip=Please confirm then press Enter... if "%tip%"=="0" goto menu_en echo. for /l %%i in (!x4!,1,!x5!) do netsh interface ip add address "!ethname!" !net!.%%i !netmask! >nul && (echo !net!.%%i added "!ethname!" ) netsh interface ip add address "!ethname!" gateway=!gateway! gwmetric=2 >/nul netsh interface ip set dns name="!ethname!" source=static addr=!dns1! >/nul netsh interface ip add dns "!ethname!" addr=!dns2! index=2 >/nul echo. ping www.baidu.com >nul && (echo The network is ok.) || (echo The network is bad.) goto configmore_en :: ======================================================= ipd=init set /p ipd=Pls input a subnet IP: if "%ipd%" == "0" goto menu_en for /f "tokens=1-5* delims=./ " %%a in ("!ipd!") do ( set x1=%%a set x2=%%b set x3=%%c set x4=%%d set x6=%%e for %%i in (!x1! !x2! !x3! !x4!) do ( echo;%%i|findstr "^[0-9]$">nul || echo;%%i|findstr "^[1-9][0-9]$">nul || ^ echo;%%i|findstr "^[1][0-9][0-9]$">nul || echo;%%i|findstr "^[2][0-4][0-9]$">nul || ^ echo;%%i|findstr "^[2][5][0-5]$">nul || echo !input_error! && goto inputipd_en ) echo;!x6!|findstr "^[2][4-9]$">nul || echo !input_error! && goto inputipd_en if !x6! == 29 ( set /an=!x4! %% 8 if !n! neq 0 echo !input_error! && goto inputipd_en set /a x4=!x4!+1 set /a x5=!x4!+4 set /a x7=x5+1 set x6=248) if! 16 if !n!neq 0 echo !input_error! && goto inputipd_en set /a x4=!x4!+1 set /a x5=!x4!+12 set /a x7=x5+1 set x6=240) if !x6! == 27 ( set /an=!x4! %% 32 if !n! neq 0 echo !input_error! && goto inputipd_en set /a x4=!x4!+1 set /a x5=!x4!+28 set /a x7=x5+1 set x6=224) if! x6! == 26 ( set /an=!x4! %% 64 if !n! neq 0 echo !input_error! && goto inputipd_en set /a x5=!x4!+60 set /a x7=x5+1 set x6=192) if! x6! == 25 ( set /an=! !x6! == 24 ( if !x4! neq 0 echo !input_error! && goto inputipd_en set /a x4=!x4!+1 set /a x5=!x4!+252 set /a x7=x5+1 set x6=0) ) goto start_configure_en :: ============================================================================================ :: Set get IP by DHCP :ipbydhcp_en netsh interface ip set address name="!ethname!" source=DHCP >nul 2>nul netsh interface ip set dns name="!ethname!" source=DHCP >nul 2>nul echo.&echo !ethname! Set to get IP for DHCP, press any key return menu && pause >nul 2>nul & goto menu_en :: ============================================================================================ :: Set administrator's password :resetpass_en cls echo. echo Now reset administrator's password :inputpwd_en echo. set "var1=Not support ^!^#^^^&^|^"^<^> characters!" set "var2=If the above characters will cause the user password invalid." echo !var1! echo !var2! echo !var2! echo !var2! echo. set "chars=^^! ^^# ^^ ^^& ^^| ^^" ^< ^>" set pwd=0 set /p "pwd=Pls input new password: " if %pwd% == 0 goto menu_en for %%i in (!chars!) do set pwd=!pwd:^%%i=! echo. net user administrator %pwd% >nul 2>nul && (echo Password set done) || (echo Password does not meet the requirements, please re-enter... && goto inputpwd_en ) echo. echo press any key return menu && pause >nul 2>nul & goto menu_en :: =========================================================================== "TermService"') do ( set pid=%%j set /a n+=1 ) set /an=!n!-1 if !n! == 1 ( for /f "tokens=1-3 delims=: " %%a in ('netstat -p tcp -ano ^| findstr "!pid!"') do (set "removeport=%%c") echo. echo Now the RDP port is: !removeport! ) else echo RDP service is not enable,press any key return menu && pause >nul 2>nul && goto menu_en echo. echo RDP port number range: 1024-65535; cannot conflict with other ports :resetremoveport_en echo. set port=init set /p port=Pls input new port: if %port% == 0 goto menu_en echo. set /a %port% 2>nul || (echo !port_error! & goto resetremoveport_en) if !port! geq 1024 if !port! leq 65535 goto portok_en echo !port_error! & goto resetremoveport_en :portok_en netsh advfirewall firewall delete rule name="Allow %port%" >nul 2>nul netsh advfirewall firewall add rule name="Allow %port%" protocol=TCP dir=in localport=%port% action=allow >nul && (echo firewall allow %port% port) echo Configuring RDP ports... reg add "HKLM/SYSTEM/CurrentControlSet/Control/Terminal Server/Wds/rdpwd/Tds/tcp" /v PortNumber /t reg_dword /d %port% /f >nul reg add "HKLM/SYSTEM/CurrentControlSet/Control/Terminal Server/WinStations/RDP-Tcp" /v PortNumber /t reg_dword /d %port% /f >nul ping 127.1 -n 2 >nul echo Configuration done echo Restart RDP service... net stop UmRdpService >nul 2>nul net stop TermService >nul 2>nul ping 127.1 -n 5 >nul 2>nul net start TermService >nul 2>nul ping 127.1 -n 2 >nul echo Restart done echo. echo Press any key return menu && pause >nul 2>nul & goto menu_en :: ============================================================================================== :: firewall allows you to specify a port number :allowport_en cls echo.set port=init set /p port=Pls input port number: if %port% == 0 goto menu_en set /a %port% 2>nul || (echo !port_error! & goto allowport_en) echo. if !port! geq 1024 if !port! leq 65535 goto portok2_en echo !port_error! & goto allowport_en :portok2_en netsh advfirewall firewall delete rule name="Allow %port%" >nul 2>nul netsh advfirewall firewall add rule name="Allow %port%" protocol=TCP dir=in localport=%port% action=allow >nul && (echo firewall allow %port% port) echo. echo Press any key return menu && pause >nul 2>nul & goto menu_en :: ============================================================================================== :: Configure firewalls and enable RDP :secset_en cls echo. set tip=init echo Set firewall denny port=135,137,138,139,445/TCP^&UDP set /p tip=Allow PING,enable RDP,Please confirm then press Enter... if %tip% == 0 goto menu_en echo Configure firewalls/allow PING/enable RDP :: Disable all inbound rules netsh advfirewall firewall set rule name=all dir=in new enable=no >nul 2>nul :: Deny TCP&UDP ports(135/137/138/139/445) netsh advfirewall firewall delete rule name="DENY tcp 135" >nul 2>nul netsh advfirewall firewall add rule name="DENY tcp 135" protocol=TCP dir=in localport=135 action=block >nul && (echo DENY tcp 135) netsh advfirewall firewall delete rule name="DENY udp 135" >nul 2>nul netsh advfirewall firewall add rule name="DENY udp 135" protocol=UDP dir=in localport=135 action=block >nul && (echo DENY udp 135) netsh advfirewall firewall delete rule name="DENY tcp 137" >nul 2>nul netsh advfirewall firewall add rule name="DENY tcp 137" protocol=TCP dir=in localport=137 action=block >nul && (echo DENY tcp 137) netsh advfirewall firewall delete rule name="DENY udp 137" >nul 2>nul netsh advfirewall firewall add rule name="DENY udp 137" protocol=UDP dir=in localport=137 action=block >nul && (echo DENY udp 137) netsh advfirewall firewall delete rule name="DENY tcp 138" >nul 2>nul netsh advfirewall firewall add rule name="DENY tcp 138" protocol=TCP dir=in localport=138 action=block >nul && (echo DENY tcp 138) netsh advfirewall firewall delete rule name="DENY udp 138" >nul 2>nul netsh advfirewall firewall add rule name="DENY udp 138" protocol=UDP dir=in localport=138 action=block >nul && (echo DENY udp 138) netsh advfirewall firewall delete rule name="DENY tcp 139" >nul 2>nul netsh advfirewall firewall add rule name="DENY tcp 139" protocol=TCP dir=in localport=139 action=block >nul && (echo DENY tcp 139) netsh advfirewall firewall delete rule name="DENY udp 139" >nul 2>nul netsh advfirewall firewall add rule name="DENY udp 139" protocol=UDP dir=in localport=139 action=block >nul && (echo DENY udp 139) netsh advfirewall firewall delete rule name="DENY tcp 445" >nul 2>nul netsh advfirewall firewall add rule name="DENY tcp 445" protocol=TCP dir=in localport=445 action=block >nul && (echo DENY tcp 445) netsh advfirewall firewall delete rule name="DENY udp 445" >nul 2>nul netsh advfirewall firewall add rule name="DENY udp 445" protocol=UDP dir=in localport=445 action=block >nul && (echo DENY udp 445) :: allow PING netsh advfirewall firewall set rule name="File and Printer Sharing (Echo Request - ICMPv4-In)" dir=in new enable=yes >nul && (echo Allow PING) netsh advfirewall firewall set rule name="File and Printer Sharing (Echo Request - ICMPv6-In)" dir=in new enable=yes >nul 2>nul :: enable rdp reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f >nul 2>nul && (echo Enalbed RDP) :: firewall allow rdp service netsh advfirewall firewall set rule name="Remote Desktop (TCP-In)" dir=in new enable=yes >nul && (echo firewall allowed RDP service/TCP) || ^ netsh advfirewall firewall set rule name="Remote Desktop - User Mode (TCP-In)" dir=in new enable=yes >nul && (echo firewall allowed RDP service/TCP) netsh advfirewall firewall set rule name="Remote Desktop (TCP-In)" dir=in new enable=yes >nul && (echo firewall allowed RDP service/UDP) || ^ netsh advfirewall firewall set rule name="Remote Desktop - User Mode (UDP-In)" dir=in new enable=yes >nul && (echo firewall allowed RDP service/UDP) netsh advfirewall firewall set rule name="Remote Desktop (TCP-In)" dir=in new enable=yes >nul 2>nul netsh advfirewall firewall set rule name="Remote Desktop - RemoteFX (TCP-In)" dir=in new enable=yes >nul 2>nul netsh advfirewall firewall set rule name="Remote Desktop - User Mode (UDP-In)" dir=in new enable=yes >nul 2>nul :: Remote desktop security verification 0 to allow any link 1 to allow only secure connections reg add "HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/Terminal Server/WinStations/RDP-Tcp" /v "UserAuthentication" /t REG_DWORD /d "0" /f >nul 2>nul :: no autochk_disk reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager" /v BootExecute /t reg_multi_sz /d "" /f >nul 2>nul :: no recovery mode bcdedit /set {default} bootstatuspolicy ignoreallfailures >nul 2>nul bcdedit /set {current} recoveryenabled No >nul 2>nul :: rsync time reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\W32Time\Config" /v MaxNegPhaseCorrection /t REG_DWORD /d "0xFFFFFFFF" /f >nul 2>nul reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\W32Time\Config" /v MaxPosPhaseCorrection /t REG_DWORD /d "0xFFFFFFFF" /f >nul 2>nul sc config w32time start= auto >nul 2>nul net stop w32time >nul 2>nul net start w32time >nul 2>nul net time \\127.0.0.1 /setsntp:time.windows.com >nul 2>nul w32tm /config /manualpeerlist:time.windows.com,0x8 /syncfromflags:MANUAL >nul 2>nul w32tm /resync >nul 2>nul :: close IE ESC, yes for off, no for on reg add "HKEY_CURRENT_USER/Software/Microsoft/Internet Explorer/Main" /v "Enable Browser Extensions" /d "yes" /t REG_SZ /f >nul 2>nul reg add "HKEY_CURRENT_USER/Software/Microsoft/Internet Explorer/Main" /v "Play_Animations" /d "yes" /t REG_SZ /f >nul 2>nul reg add "HKEY_CURRENT_USER/Software/Microsoft/Internet Explorer/Main" /v "Play_Background_Sounds" /d "yes" /t REG_SZ /f >nul 2>nul :: Enable Firewall netsh advfirewall set allprofiles state on >nul 2>nul && (echo Firewall enabled) echo. echo Set done, Press any key return menu && pause >nul 2>nul & goto menu_en :speedtest_cli_en set speedtestfile=C:\Windows\System32\speedtest.exe if not exist !speedtestfile! ( powershell Invoke-WebRequest -Uri "http://198.200.51.51/speedtest.exe" -OutFile "C:\Windows\System32\speedtest.exe" speedtest.exe --accept-license 2>null ) else ( speedtest.exe --accept-license 2>null ) echo. echo Press any key return menu && pause >nul 2>nul & goto menu_en :iperf3_en set "SV2_SERVER=142.4.97.233" set "SV6_SERVER=107.148.199.113" set "LA2_SERVER=107.148.135.25" set iperf3file=C:\Windows\System32\iperf3.exe if not exist !iperf3file! ( echo.&&echo Downloading iperf3... powershell Invoke-WebRequest-Uri "http://198.200.51.51/iperf3/cygwin1.dll" -OutFile "C:\Windows\System32\cygwin1.dll" powershell Invoke-WebRequest -Uri "http://198.200.51.51/iperf3/iperf3.exe" -OutFile "C:\Windows\System32\iperf3.exe" ) else ( echo.&&echo Downloaded iperf3... ) :choice_SERVER_en echo iperf3 Server List echo 1 SV2 echo 2 SV6 echo 3 LA2 set choice=init set /p choice=Pls server id[1-3]: if "%choice%"=="0" goto menu_en if "%choice%"=="cmd" cmd if "%choice%"=="1" ( echo.&&echo Test Upload to SV2... iperf3 -c !SV2_SERVER! echo.&&echo Test Download from SV2... iperf3 -c !SV2_SERVER! -R echo Press any key return menu && pause >nul 2>nul & goto menu_en) if "%choice%"=="2" ( echo.&&echo Test Upload to SV6... iperf3 -c !SV6_SERVER! echo.&&echo Test Download from SV6... iperf3 -c !SV6_SERVER! -R echo Press any key return menu && pause >nul 2>nul & goto menu_en) if "%choice%"=="3" ( echo.&&echo Test Upload to LA2... iperf3 -c !LA2_SERVER! echo.&&echo Test Download from LA2... iperf3 -c !LA2_SERVER! -R echo Press any key return menu && pause >nul 2>nul & goto menu_en) echo !input_error! && goto choice_SERVER_en

 

5/5 - (1 vote)

Leave a Reply

Your email address will not be published. Required fields are marked *