close Ports by Batch

0

You can close all these ports using .Bat

0-79,81-8079,8081-30799,30801-30809,30810-65535

bone

0 al 79,81 al 8079,8081 al 30799,30801 al 30809,30810 al 65535

I understand this source code opens them I want to close them with this

@echo off
netsh.exe firewall add portopening TCP 3389 "Remote Desktop"
advfirewall firewall add portopening TCP 3389 "Remote Desktop"
advfirewall add portopening TCP 3389 "Remote Desktop"
pause
timeout /t 1
cls
GOTO inicio

I would close ALL the ports, what would be the opposite option to close?

    
asked by Juan Carlos Villamizar Alvarez 06.06.2018 в 07:31
source

0 answers