Bat para liberação de portas no Firewall

Para que as soluções da CH funcionem corretamente, é necessário que sejam feitas algumas liberações de portas no Firewall do Windows. Abaixo segue código para a criação de um arquivo .bat

cacls "C:\CHSISTEMAS" /E /P Todos:F
netsh advfirewall firewall add rule name="3050 TCP" action=allow protocol=TCP dir=in localport=3050
netsh advfirewall firewall add rule name="3050 UDP" action=allow protocol=UDP dir=in localport=3050
netsh advfirewall firewall add rule name="211 TCP" action=allow protocol=TCP dir=in localport=211
netsh advfirewall firewall add rule name="211 UDP" action=allow protocol=UDP dir=in localport=211
netsh advfirewall firewall add rule name="212 TCP" action=allow protocol=TCP dir=in localport=212
netsh advfirewall firewall add rule name="212 UDP" action=allow protocol=UDP dir=in localport=212
netsh advfirewall firewall add rule name="213 TCP" action=allow protocol=TCP dir=in localport=213
netsh advfirewall firewall add rule name="213 UDP" action=allow protocol=UDP dir=in localport=213
netsh advfirewall firewall add rule name="3050 TCP" action=allow protocol=TCP dir=out localport=3050
netsh advfirewall firewall add rule name="3050 UDP" action=allow protocol=UDP dir=out localport=3050
netsh advfirewall firewall add rule name="211 TCP" action=allow protocol=TCP dir=out localport=211
netsh advfirewall firewall add rule name="211 UDP" action=allow protocol=UDP dir=out localport=211
netsh advfirewall firewall add rule name="212 TCP" action=allow protocol=TCP dir=out localport=212
netsh advfirewall firewall add rule name="212 UDP" action=allow protocol=UDP dir=out localport=212
netsh advfirewall firewall add rule name="213 TCP" action=allow protocol=TCP dir=out localport=213
netsh advfirewall firewall add rule name="213 UDP" action=allow protocol=UDP dir=out localport=213
@echo off
cls
@echo.
@echo    ***********************************************
@echo    ***                PARABENS                 ***
@echo    ***   AS PORTAS DO CH ESTAO LIBERADAS!   ***
@echo    ***                                         ***
@echo    ***********************************************
@echo.
pauseCode language: PHP (php)