Windows
Verificando as regras de firewall do perfil atual:
netsh advfirewall show currentprofileVerificando todas as regras de firewall:
netsh advfirewall firewall show rule name=allAdicionando determinado arquivo com extensão exe nas regras do firewall
netsh advfirewall firewall add rule name="<nome_regra" dir=in action=allow program="C:\{arquivo.exe}"Verificando configurações
netsh firewall show state
netsh firewall show configVerificando status
netsh advfirewall show currentprofileCaso o State do comando acima esteja ON, podemos verificar as regras de firewall
netsh advfirewall firewall show rule name=allDesabilitando firewall de todos os perfis com Powershell.
# Powershell
Set-NetFirewallProfile -Name Domain,Private,Public -Enabled False
# Prompt de Comando (netsh)
netsh advfirewall set allprofiles state offWindows Defender
Last updated
Was this helpful?