:: FC - Frente de Caixa
@echo.
@echo - FC
@echo.
:: netsh advfirewall firewall delete rule name=all protocol=tcp localport=
netsh advfirewall firewall delete rule name="FrenteCaixa"
if /I "%1"=="-D" goto :eof
if exist c:\dbsh\fc\fc.exe netsh advfirewall firewall add rule name=FrenteCaixa dir=in program=c:\dbsh\fc\fc.exe action=allow
if exist c:\dbsh\fc\fc.exe netsh advfirewall firewall add rule name=FrenteCaixa dir=out program=c:\dbsh\fc\fc.exe action=allow
if exist d:\dbsh\fc\fc.exe netsh advfirewall firewall add rule name=FrenteCaixa dir=in program=d:\dbsh\fc\fc.exe action=allow
if exist d:\dbsh\fc\fc.exe netsh advfirewall firewall add rule name=FrenteCaixa dir=out program=d:\dbsh\fc\fc.exe action=allow
if exist c:\systemone\fc\fc.exe netsh advfirewall firewall add rule name=FrenteCaixa dir=in program=c:\systemone\fc\fc.exe action=allow
if exist c:\systemone\fc\fc.exe netsh advfirewall firewall add rule name=FrenteCaixa dir=out program=c:\systemone\fc\fc.exe action=allow
if exist d:\systemone\fc\fc.exe netsh advfirewall firewall add rule name=FrenteCaixa dir=in program=d:\systemone\fc\fc.exe action=allow
if exist d:\systemone\fc\fc.exe netsh advfirewall firewall add rule name=FrenteCaixa dir=out program=d:\systemone\fc\fc.exe action=allow
Liberar porta para acesso externo
@echo.
@echo -- Banco de Dados Mysql
@echo.
netsh advfirewall firewall delete rule name=all protocol=tcp localport=3306
netsh advfirewall firewall delete rule name="MYSQL"
if /I "%1"=="-D" goto :eof
netsh advfirewall firewall add rule name=MYSQL dir=in action=allow protocol=TCP localport=3306
netsh advfirewall firewall add rule name=MYSQL dir=out action=allow protocol=TCP localport=3306
Permite ping externo no computador
@echo.
@echo -- PING
@echo.
:: netsh advfirewall firewall delete rule name=all protocol=tcp localport=
netsh advfirewall firewall delete rule name="pingv4"
netsh advfirewall firewall delete rule name="pingv6"
if /I "%1"=="-D" goto :eof
netsh advfirewall firewall add rule name=pingV4 protocol=icmpv4:8,any dir=in action=allow
netsh advfirewall firewall add rule name=pingV6 protocol=icmpv6:8,any dir=in action=allow
Desativa Permissao controle de contas de Usuário
@echo.
@echo -- Permissao controle de contas de Usuário
@echo.
C:\Windows\System32\cmd.exe /c %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
Força aplicar diretivas de grupo sem reiniciar computador
rem xcopy *.* %systemroot%\system32\grouppolicy
:: bcdedit /set hypervisorlaunchtype off
:: bcdedit /set hypervisorlaunchtype auto
gpupdate /force